Sunday, 2026-05-17

nightishamanyep its stopping before the kernel modules00:05
nightishamanI did one after loadkernelmodules00:05
malnightishaman: so reboot before load modules works but not after it?00:16
nightishamani gotta try00:19
nightishamanit instantly reboots00:28
malok, so what is happening in module loading then00:31
malwhy does it get stuck there00:31
nightishamanwe could get funny creative, check if /dev/fb0 works, draw 50 different images and push a different based on how many modules loaded00:34
malheh00:36
malI don't think framebuffer usually works in android kernel00:38
nightishamanalternatively, does this device have ramps?00:38
nightishamanramoops?00:38
malusually pstore can be read00:40
nightishamanim booting into recovery and will check it out00:40
malyeah, causing a kernel panic and then reading pstore in recovery it should contain kernel logs00:41
nightishamanwhen I tried to port the Sony Xperia 5 IV, I had used that to find a bug in a driver00:41
nightishamanto ubuntu touch00:41
nightishamanpstore might not be enabled00:42
malbut debugging with that is a bit difficult also since we can't know which module loading is causing the issue00:42
nightishamanwhat do you suggest?00:44
malnot sure really, other than very slow test of incrementally loading modules one by one and seeing when it hangs00:45
nightishamanoof00:45
malso first loading the first module in modules.load list, then two and so on00:45
nightishamanbetter idea, binary searching00:45
malsure00:45
nightishamancut half the modules and try again00:45
malfaster that way probably00:46
nightishamani just gotta figure out where the modules.load is defined00:46
malyou don't need to know that00:47
maljust edit the init-script load function to have a counter and set the limit number in each test00:47
mallike load 20 first modules and break the loop once counter is 2000:48
nightishamanmy bash skills arent that good, or lets say almost 000:49
malbtw how long does that make hybris-init_boot take for you?00:49
nightishamanapproximately 20 seconds00:49
malok, then that is not a problem00:49
nightishamanthe most part is android soong before starting ninja00:50
malI just thought if the whole make is slow then there are other ways to edit the init_boot image00:50
nightishamani got a ryzen 5800x3d and its on an nvme00:51
nightishamanrunning fedora linux00:52
nightishamani got this now: https://pastebin.com/Za2hryk201:00
nightishamanthe module seems to be in the first half01:05
nightishamanfirst quarter01:09
nightishamanthe module is in the 2nd eigth01:13
nightishamanabove 25, less than 5101:13
nightishamanabove 25, less than 3701:15
nightishamanabove 25, less than 3101:19
Solrac[m]1This is slightly off topic, but I wanted to ask, [@_oftc_mal:matrix.org](https://matrix.to/#/@_oftc_mal:matrix.org) do you have fp4 Hailium source? Do you think I can use it to test droidian?01:19
nightishamanSolrac[m]1 ask in the ubuntu touch telegram group, halium is their system01:21
nightishamanabove 25, less than 2801:21
nightishamanim gonna do -1 steps now01:21
Solrac[m]1nightishaman: Their Hailium is based on a much older Hailium, for some, some networks do not work proper. I tired the official a11 and then flashed sfos, and had no connectivity,any version older than ofw was, didn't have this issue. I've yet to try e/OS for Hailium instead01:23
nightishamansailfishos uses hybris01:24
malSolrac[m]1: is a11 the latest official for fp4?01:25
malSolrac[m]1: I didn't quite understand what the problem is01:25
nightishamani think they want to use the boot system of halium for other os or somehow port it01:26
nightishamanmal: its module at index 26, max 26 it hangs, max 25 it doesnt01:26
nightishaman0 indexed01:26
malnightishaman: what is number 26?01:26
nightishamanmal: extra/private/google-modules/soc/gs/drivers/soc/google/debug/exynos-coresight-etm.ko01:29
malnightishaman: ok, I suspected that when you said above 25, less than 2801:29
malso as a test add a hacky condition to the loop to skip that01:30
Solrac[m]1nightishaman: That's pretty much it. Basically, I can't use Ubuntu Touch Helium because it requires a much older version of Android and 11 specifically, and the latest build had some issues with some carriers on mine included. So, I figured, instead of using that old version, maybe I could use the Helium version that's used for sfos and try porting Droidian.01:32
Solrac[m]1Since Mobian and Postmarket OS are using a kernel that is not feature complete yet.01:32
malSolrac[m]1: sailfish on fp4 doesn't use halium01:33
nightishamanwhile ubuntu touch uses the same base, their init system is different to Sailfish OS, you can't use that01:33
malnightishaman: some sailfish ports use halium but not many01:33
Solrac[m]1mal: Wait what, really?01:34
malSolrac[m]1: I use the sailfish way of porting meaning building patched parts of android and so on01:34
Solrac[m]1nightishaman: The problem with helium is that it's very dependent on the version of Android that you're using, and in my case, Android 11 gives sobre carrier issues01:34
malSolrac[m]1: which android version is ok for you?01:35
Solrac[m]1mal: Part in my ignorance since I haven't tried porting this OS to a device yet. Is this similar to what pmOS is doing? as in apply the relevant patches to a seemingly mainline kernel?01:36
malSolrac[m]1: no, we use android hal for some things like graphics and other hw features01:36
malSolrac[m]1: so you had issues when you tried sailfish os? you know before you install sailfish you can have android 14 or maybe even newer one on the device01:37
malthe fp4 sailfish port is actually using android 14 as base for the hardware parts01:39
nightishamanmal: I'll look into enabling pstore, because for some reason, it doesnt reboot at 25 anymore01:44
Solrac[m]1mal: Do you might remember that I had some network issues, but that was when I flashed the first time. When I flashed it the next time I had no network issues at all. That was because I was using the wrong Android version the first time02:01
Solrac[m]1s/Do/You/, s/you//02:02
malyeah, to that second time you probably had some newer android on the device before sailfish02:02
Solrac[m]1mal: Also, do part in my ignorance. I have only tried porting via Hailium once before. My understanding is that haleum uses whatever system and then bridges it to whatever kernel to boot. But how does hal work?02:03
malsailfish on fp4 doesn't care that much about the android version since it only use some firmware etc from the android that was there before02:03
Solrac[m]1mal: I had used official Android 11 and the second time I used eOS with Android 14.02:03
Solrac[m]1mal: Ahh02:04
nightishaman2mal: ok bad thing, my znc host is down02:04
nightishaman2pstore is enabled and unfortunately emtpy02:04
malSolrac[m]1: have you tried some halium installation but without reflashing everything from a11 for example, only flashing super partition content (system, vendor etc), I assume it probably needs those but the other parts probably can be from newer android version02:06
nightishamanmal: do you know which syntax the sh interpreter that is running the init script supports?02:09
nightishamanbecause maybe my counter is bugged or not interpreted correctly, although i find it weird that it rebooted one time02:09
malnot fully sure but maybe avoid bash stuff02:13
nightishamanmal: ok it fails even loading the first module02:35
nightishamanwhich is zsmalloc02:35
Solrac[m]1mal: I used boot.img only, but the reason why I asked was to try porting Mobian, if it needs a custom setup, I imagine its better off starting from scratch02:37
malnightishaman: very odd02:41
nightishamanshould i try disabling module signature check?02:43
malmaybe02:44
malbut how would that cause modprobe to hang02:44
malI need some sleep again02:45
nightishamanim gonna go soon too02:45
nightishamanclaude says modules without signature cant access modules with signature02:45
nightishamanCONFIG_MODULE_SIG=y02:46
nightishamanCONFIG_MODULE_SIG_PROTECT=y02:46
nightishamanmal: im gonna test this hypothesis tomorrow, but it might be that when i flashed the kernel with additional flags, i didnt flash vendor_kernel_boot and the kernel is rejecting the modules. no idea why it hangs then tho03:43
*** Nokius7 is now known as Nokius03:55
T42<elros34> you should try with clean kernel without any sfos related changes10:15
T42<elros34> also same question did you check check_kernel_config function? Did you format /data and you are 100% sure there is no encyption there?10:27
rinigusmal and b100dian : I wrote down eSIM case as an issue: https://forum.sailfishos.org/t/enabling-esim-modem-prevents-lipstick-login/29652 . Sorry for long text, but I hope it has sufficient details to trace the origin.15:22
rinigusit seems to me that lipstick and PinQueryAgent interaction together with minimal ofono dbus properties for eSIM leads to such case15:23
rinigusI've included dbus data as well as results of tracing this bug in lipstick. unfortunately, I've hit closed-source wall and need someone behind it to check it out :)15:23
malrinigus: thanks, I'll check that15:48
rinigusmal: thanks!15:48
T42<b100dian> rinigus: wow! thanks for the thoroughness:)16:02
malrinigus: in settings it shows the esim slot as if there is sim present all the time16:13
rinigusmal: is this a question or statement? in my case, I have to disable under multisim settings the second sim. then I can boot16:18
malstatement16:20
malrinigus: that is observable when UI is up and then enabling the second slot16:21
rinigusmal: yes, if I enable in settings, SIM card 2 it is shown in as just enabled under Multisim, I can choose it for calls and messages. but not for mobile data16:24
malrinigus: you have esim active on the device?16:25
malI mean a functioning esim profile installed16:26
rinigusno, I don't have profile installed. testing without any profile as it is the first stage during install16:26
rinigus(have to leave for 20-30 mins, sorry)16:27
malyeah, same here, no esim profile16:29
T42<b100dian> I have an eSIM profile (or more) and that's why I didn't notice this bug (on the sister device)16:32
mal@b100dian so if there active esim profile then device boots fine?16:37
T42<b100dian> Yes, like it would be a 2nd phisical sim16:37
malok, good to know16:38
riniguswould be good to get over this bump. one option would be to automatically disable sim2 on boot if it does not have a profile. I guess there is a way we can check for that while booting. but its more of a workaround than proper fix17:16
malrinigus: I think I now what specific condition in PinQueryAgent is the problem17:19
malnot sure yet what is the best way to fix it17:20
malI wonder how android shows esim slot where are no profiles17:21
nightishaman@elros34 data is formatted as ext4, i did that manually in recovery and pushed the sailfishos rootfs there, also we already tested and it hangs at the load_kernel_modules function, a reboot before the function happens, a reboot after it doesnt17:36
nightishamani could flash the lineageos kernel but that would yield no results since it doesnt have rndis enabled17:38
rinigusmal: no access for me for such device. hmm, maybe there is some demo online.17:38
nightishamanrinigus what device do you need17:39
rinigusnightishaman: see question by mal above (I wonder how android shows esim slot where are no profiles)17:40
nightishamanur working on the sony nagara port, right?17:40
rinigusyes. not working much - mainly using it :)17:41
nightishamani have the sony xperia 5 iv lying around here because im currently on porting the pixel 7 to sfos, i used it to try and port ubuntu touch to it, but that one got stuck wlan firmware issues, so if you need anything, maybe i can flash lineageos back on17:43
rinigusnightishaman: good to know. we use LOS21 as a base on that. it hasn't been released via lineage, just available as a download on our SFOS repo.17:46
rinigusgood luck with pixel 717:46
nightishamani know, i tried flashing it but got stuck there too17:48
nightishamansfos i mean, the port u did17:49
malrinigus: as you suspected it's the Present value sim sim manager that is the problem, in esim it's false even if sim is claimed to be present17:51
rinigusmal: great! now we will have to wait for a fix...17:52
malI'm flashing android to one device to see how it shows there17:52
rinigus... meanwhile, we can test esim profiles and other aspects.17:53
maldoes it show the second slot or not17:53
rinigusmal: one example - https://esim-on.com/installing-esim-on-android-devices-2/17:57
rinigusbut there are many android variants - some UI differences could be there17:57
malrinigus: yeah and those can be from device with two physical slots and esim support17:58
malbut we'll see soon once the device I have is flashed17:58
nightishamanhow good is the esim support in sfos, because i only use esims here in germany17:59
rinigusnightishaman: esim - baby steps right now. b100dian has been testing; see https://forum.sailfishos.org/t/esim-provider-and-hardware-support/2952018:03
rinigusb100dian: do we have lpac at OBS?18:03
rinigus... and SimPro?18:04
*** Nokius5 is now known as Nokius18:04
nightishamanim gonna try and flash both the kernel and kernel modules from the same build18:04
malrinigus: sony has a bit different sim UI, without sim it directly asks if I want to add some esim18:09
malin about phone page in android it does show two slots18:10
nightishamanmal: we got a reboot, which means the first kernel module loaded successfully18:23
rinigusmal: showing slots makes sense, even if one is empty. just status should probably reflect it, similar to empty sim slot in sfos18:25
nightishamanall kernel modules loaded successfully18:26
malnightishaman: using which kernel build?18:33
malhybris patched or lineage?18:33
nightishamansfos kernel the same as yesterday just vendor_kernel_boot from the same build18:33
nightishamanwe just got another reboot, indicating it got past the dbg stuff18:34
malI did mention to you to flash always both kernel and that18:34
malok18:34
nightishamanso probably if i remove that we go into rootfs18:34
mallet's see if we can get usb up18:34
malrinigus: which binder interface do you use on your device 1.5 or aidl?18:35
malrinigus: or something older18:35
nightishamanshould i force usb telnet debug or try and look if we can get to the boot screen?18:35
malnightishaman: at which point is it now?18:35
nightishamanbefore kernel hotplug18:35
rinigusmal: for which service? for volte it was aidl18:36
nightishamanim gonna go into recovery and check out the data partition, it should've copied dmesg there18:36
malrinigus: I mean ofono-binder-plugin18:36
rinigusradioInterface = 1.518:37
malok18:39
malfound a possible bug in 1.5, not sure if it affect much though18:39
malon fairphone it doesn't seem to cause anything but theoretically could on others18:41
nightishamanok without the reboots, we got the 60s again, but could already be in rootfs, im gonna force in initrd first18:45
nightishamanmal: we're stuck at usb not working in initrd again, although possibly it might have gotten into rootfs, i gotta check that18:53
nightishamanthe only weird thing is that my cp commands are not copying onto the data partition18:59
nightishamanok no, it is only stuck in initrd19:02
malwhy does it end up trying to setup usb there, one of the conditions fail then19:07
nightishamani wish i could do a beep or vibration depending on the state19:09
maldoes the device have indicator led?19:11
nightishamanunfortunately not19:12
T42<Mister_Magister> mal perhaps if vibrator is native you can use that as led?19:13
T42<Mister_Magister> tho mind that i didn't read the context xd19:14
T42<Mister_Magister> but if its debugging no display then mayhaps19:14
nightishamanim just really confused, i just checked mount_stowaways and added a reboot on failure, it didnt reboot immediately, so i guess mounting must have succeeded, but nonetheless no dmesg.log, no init.log or anything on the data partition19:16
nightishamanhttps://pastebin.com/A7PLXTPX19:40
nightishamanthe startup file from google19:40
nightishamanmal: can it be that rndis is on another directory like here in the init.gs201.usb.rc19:56
malnot sure what you mean, we don't use those in init20:07
nightishamanwell it writes to rndis.gs4 instead of rndis.usb0, so maybe we need to write there20:12
malwe can't use gsi in init afaik20:13
nightishamani dont know what to do rn20:15
malstill odd that you can't get logs to userdata20:15
nightishamani tried adding a reboot to the fail section of the mount, but it doesnt fail20:16
nightishamanI wonder whether I could write to pstore20:17
maljust to be sure add sync after writing, in case it doesn't sync the storage20:17
nightishamanstill nothing20:26
nightishamanpotential reason why could be20:32
nightishamanthe init script resolves the data partition to /dev/sda31. At least in recovery mode, it is in /dev/block/sda3120:33
malbut you said mounting seemed to work? can you show the init-script you use now20:45
nightishamanhttps://pastebin.com/0cc8zUiX20:46
nightishamanlast change was hardcoding the partition20:46
nightishamanone thing i could try is writing [device] to /sys/class/typec/port0/data_role20:47
T42<adampigg> Nightishaman: ensure your distro also doesnt block rndis on the host. Suse does.20:51
nightishamani had rndis with the sony xperia 5 iv20:52
nightishamanso it doesnt20:52
malnightishaman: do you have rootfs in place at the moment?20:57
malnightishaman: can you show the .config from out/ that is used my kernel checker20:58
mal*used by20:58
nightishamanhttps://pastebin.com/4HirD6yW21:01
nightishamanyes rootfs is in place21:04
malI meant the whole .config21:10
nightishamanoh, yeah wait21:13
nightishamanhttps://pastebin.com/CXpMCsZD21:15
malnightishaman: did you compare the module.load and module.load.recovery lists I assume you can see the latter in android recovery?21:25
malstarting to think if the modules.load you have could be missing something needed21:25
nightishamanhttps://pastebin.com/mfuyhC6b21:28
nightishamanthis is the one i use21:28
malcheck the one in android recovery but in there modules.load.recovery if there is one21:29
nightishamanit also only has a modules.load21:30
nightishamanhttps://pastebin.com/uHpyeUZr21:30
malok, no relevant differences it seems21:34
nightishamani could try reading the result of modprobe and reboot if it is non-zero21:41
nightishamanmaybe modprobe doesnt like the relative file names in modules.load21:42
malnightishaman: but you see that modprobe should be getting the basename21:48
nightishamanyeah but zsmalloc for example is at /lib/modules/6.1.145-android14-11-g7861b6103597/kernel/mm$ ls21:53
nightishamanzsmalloc.ko21:53
nightishamandoes modprobe know where to look?21:53
malgood question21:53
nightishamanbecause if the modules just get loaded with module not found, the usb driver isnt setup, the ufs driver isnt too and we are getting nothing21:54
malare all the modules in subfolders?21:55
malseems they21:55
malseems they are21:55
malnightishaman: terribly ugly hack if it even works, using find command copy all .ko files from subfolders to the /lib/modules/6.1.145-android14-11-g7861b6103597/ or symlink them, which ever is easier for you to implement21:55
malyou can test the script function first locally to see that it works21:56
malactually no need for find even21:57
malsince you have paths in modules.load already21:57
nightishamanwe could give modprobe the full path21:57
nightishamani just realized something21:57
malmodprobe doesn't like full paths21:58
nightishamanthat im really stupid21:58
Mister_Magisteri don't think modprobe can even use full path21:58
Mister_Magisterinsmod can21:58
malbut insmod doesn't handle dependencies21:58
malnightishaman: in case you want to try symlink do something like ln -s "$1" "/lib/modules/$(uname -r)/"$(basename "$1")22:00
malnot sure if that works but test locally first22:00
nightishamanwait a minute, i fucked something up22:01
malwhat?22:02
nightishamani may have forgotten to change the path for the cfg file that i hardcoded after i flashed a new kernel this morning22:02
malok22:02
malyou should not hardcode the path22:02
malsince we have to assume the uname is correct22:02
malif it's not then there is a mismatch of flashed partitions which could cause other issues22:03
nightishamanyeah im just confused because in recovery from lineageos it has an additional string panther:/ # uname -r22:05
nightishaman6.1.145-android14-11-gec45f20f38ea-ab1526028222:05
nightishamanwhere as mine only has Linux version 6.1.145-android14-11-g7861b610359722:06
malwell you should see the value your kernel has with the strings grep you tested before22:07
malin which case it seemed ok22:08
malso test with uname in the script and see what happens22:08
nightishamanso i checked that boot.img in out is the same as in device/google/pantah-kernels/6.1/boot.img22:10
nightishamani flashed boot.img, then flashed vendor_kernel_boot.img from device/google/pantah-kernels/6.122:10
nightishamanthen i corrected the cfg file path in init-script, build it and flashed init_boot22:10
nightishamanwith the string i got from strings vmlinux22:10
nightishamannow the device is hanging again22:11
malhmm22:11
nightishamanill replace it with uname -r and see what happens22:12
nightishamani feel very stupid tho that i didnt caught that22:14
malso the progress wasn't really happening it seems22:15
nightishamani might just remove all the debug kernel modules from it, i dont really use coresight since im not a kernel dev at google with the equipment22:15
malbut you could try the copy or symlink way to see if that helps22:15
malbut you said even first module hangs?22:15
malmaybe test the copying or symlinking of .ko files first22:16
nightishamani have to check it again now that everything matches22:16
nightishamanhttps://wiki.postmarketos.org/wiki/Serial_debugging/Cable_schematics#Google_Pixel_.22Android_Debug_Cable.22 apparently u can enable uart, i wonder how that communicates22:53
malnightishaman: try first the symlink idea in case module loading still fails22:54
nightishamanlike this? ln -s "/lib/modules/$basename" "/lib/modules/$(uname -r)/$1"23:02
nightishamanbasename=$(basename "$1" .ko)23:02
malisn't that the wrong way23:06
malsomething like this, but check the syntax that it works first: ln -s "$1" "/lib/modules/$(uname -r)/"$(basename "$1")23:07
nightishamanive had problems in the past that ln required full paths23:13
nightishamanah but the first argument is the target23:15
nightishamani got this now: ln -s "/lib/modules/$(uname -r)/$1" "/lib/modules/$(uname -r)/"$(basename "$1")23:17
malfull path in both works also23:19
malmy code used relative path but doesn't matter23:19
nightishamanok lets try it, if it doesnt work, i might have to buy a cable to read sbu1 and sbu2 the uart console23:23
nightishamangreat success23:24
nightishamanit reboots after the first module, indicating it did load23:24
nightishamanill let it load all now23:24
nightishamanok it doesnt do anything when i let all load23:30
nightishamanlets try 2523:30
nightishaman25 loads23:31
nightishamanweird, the second time it rebooted with 25, it did reboot only after about a minute23:35
nightishamanim really confused, one reboot later it did again reboot after 6s, then again a minute23:38
nightishamanin both cases it reboots into the bootloader with the reason: BL1 requested23:38
malI wonder if the kernel is crashing23:40
nightishamanif /sys/fs/pstore wasnt empty in recovery, we could check that23:41
nightishamanbut the behavior is weird23:41
nightishamanclaude suggests disabling this: CONFIG_PANIC_ON_OOPS=y23:43
nightishamanCONFIG_PANIC_TIMEOUT=-123:43
nightishamanhttps://pastebin.com/MGJiDFV723:48
nightishamanwe got a problem23:48
nightishamanfastboot oem dmesg yielded this from the bootloader23:48
nightishamanwith max=12 it doesnt hang and reboots normally, no bl1 requested23:56
nightishamanbetween 12 and 25 is a kernel module which hangs the entire system23:56
nightishamanthe debug modules are the cause23:59
nightishamanmax=17 reboots fine23:59

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!