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

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