Friday, 2025-03-14

T42<Mister_Magister> maaan, i just grepped for lpm_cpuidle_enter cause "many other people ported xiaomi maybe they encountered this issue"01:35
T42<Mister_Magister> i freaking found myself mentioning that problem01:36
T42<Mister_Magister> maaan xd01:36
T42<Mister_Magister> and it's me from… 7 years ago holy01:39
T42<Mister_Magister> but hey i guessed correctly it was xiaomi01:42
T42<Mister_Magister> so back in 2018 the issue was issue with busybox not being executable, but i doubt thats the issue since i'm in ramdisk no issues01:56
T42<Mister_Magister> this is going to be hard01:57
T42<Mister_Magister> i shuold try and debug switch_root cause it seems to be cause of the issue01:59
T42<Mister_Magister> its not segfault in kernel, but Attempted to kill init01:59
T42<Mister_Magister> which would suggest userspace i think…?01:59
T42<Mister_Magister> if anyone has any idea please help01:59
T42<Mister_Magister> or maybe its selinux thing02:02
T42<Mister_Magister> in that case the problem is that the logs are not being saved and i gotta debug userspace… i think i'll try stopping init script from disabling telnet so that i can see what happens02:03
Mister_Magistermal: hi did you have time to look at the repos?12:59
malsorry was a bit busy yesterday13:01
malwhat is the status of that latest build13:02
Mister_Magisternah no worries just asking13:03
Mister_Magistermal: when it switches root it kills init, before executing the init-done13:03
malhmm13:04
Mister_Magisterhmm indeed13:04
Mister_Magisteri don't have any logs beside segfault either, currently i'm thinking of modifying init script to not close telnet when switching root and just tail the output13:05
malso it never gets to second telnet13:05
Mister_Magisterno13:05
maleven is you have that stop thingy there13:05
Mister_Magisteryeap13:05
Mister_Magisterhence i concluded it never gets to init-done13:05
maland userdata is properly ext4?13:05
Mister_Magisteryeah im in ramdisk i have it mounted its all fine13:06
Mister_Magisterits quite nice debug setup because it enters ramdisk every time and then when it segfaults it just goes back into ramdisk and i have pstore13:06
malanything useful in pstore?13:06
Mister_Magisterthe kernel panic13:06
Mister_Magisterother than that nah13:06
Mister_Magisterbtw mal did they remove the bootctl or something? despite me rebooting way before bootctl service would run it doesn't switch slots like it used to13:07
maldoes it hint anything where is panics?13:07
malbtw, do you know the way to decode kernel backtraces to more readable format?13:07
Mister_Magisteri know addr2line13:08
Mister_Magisterit attemts to kill init and not segfault so i concluded its in userspace13:08
Mister_Magisterand the spot is VERY generic13:09
Mister_Magisterso i don't think its problem with kernel13:09
Mister_Magisterhttps://paste.opensuse.org/pastes/26e36af8ab10 enjoy the dmesg13:10
Mister_Magisterthe panic points to CONFIG_MSM_PM so yeah definitely not the kernel fault13:12
Mister_Magisterif it was kernel fault it would be segfault i think13:12
malMister_Magister: does your device have kernel modules in init? i.e. in vendor_boot? btw, did you flash correct vendor_boot also13:18
Mister_Magisteri flashed dtbo, boot and vendor boot13:18
Mister_Magisterall 313:18
Mister_Magisterand as to other question i have no idea13:18
malbecause the issue could be "request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now" which suggests init hangs in module loading13:18
Mister_Magisterim not good in this android stuff i leanred about this weird new kernel stuff yesterday13:19
malbut that would not explain that you can get into first telent13:20
Mister_Magistermal: but like, in ramdisk it also loads kernel modules so why would it fail in init13:21
Mister_Magisteryeah13:21
malbecause it should be loading those already in first init13:21
malis the first init stable for long time?13:21
Mister_Magisteryeap13:21
Mister_Magisteri can stay indefinitely13:21
Mister_Magisterand it goes there every time13:21
Mister_Magistervery solid debugging environment13:21
malmaybe try to check if there are some pending kernel stuff, can't remember the path in sys to check that13:22
maldid you have any issues extracting rootfs?13:23
Mister_Magisteri extracted it via the ramdisk and nah13:23
Mister_Magisterhttps://paste.opensuse.org/pastes/867e4fed3a04 whachu need :D13:29
Mister_Magisteri tried chrooting target and got chroot: can't execute '/bin/bash': Exec format error13:35
Mister_Magisterthat normal?13:35
malhmm13:35
Mister_Magisterwhen i try running /target/bin/bash nothing happens13:35
Mister_Magistercould be entirely normal13:36
Mister_Magistermal: i mostly wanted you to check repos cause i might have missed something but also this https://github.com/sailfishos-sony-nagara/droid-config-sony-nagara/tree/main/sparse/overlays/system/lib, i don't know what it is or why it is, i can't find it in any instructions so i don't have that13:42
Mister_Magisteridk if its relevant13:42
Mister_Magisterim just biiiig dummy xd13:42
Mister_Magisteri left the telnet running and tried tailing /target/init-debug-stderrout but nothing ever appeared13:45
Mister_Magisterlet me try chrooting from ramdisk on another phone to see if thats supposed to work13:49
Mister_Magisterhmm, init_enter_debug sadly doesn't freeze the boot13:50
Mister_Magisterwell at least i can chroot from recovery on other phone let me try that on the tablet13:56
Mister_Magistercan't do it from recovery but the error is not the same13:58
Mister_Magisterin recovery it says chroot: exec /bin/sh: No such file or directory14:00
Mister_Magisteri should be able to chroot14:01
Mister_Magistermal: huh, ramdisk has 32bit executables but rootfs has 64bit executables14:04
Mister_Magistershould it be like that?14:04
Mister_Magisterholdon plot thickens, /usr/bin/busybox is empty file14:05
Mister_Magistereyyyyyyyyyyyy i re-extracted the archive and can chroot now14:10
Mister_Magistereyyyyy its not segfaulting now and the screen got brighter14:11
Mister_Magistermeaning something's gotta be haappening14:11
Mister_MagisterI don't have second telnet but thats probably because of messed up init script so let me clean it up and see how it goes14:12
Mister_Magisterlol now it gets stuck in ramdisk14:19
Mister_Magisterremoved init_enter_debug and now i get init-debug in real rootfs but no ip14:21
Mister_Magisterokay i'm in real rootfs14:21
Mister_Magisterbut now the screen doesn't light up :<14:21
Mister_Magisterah cause it frozen in script obviously14:22
Mister_Magisterthink dummy14:22
Mister_Magisterafter i continue from init_enter_debug2, it takes a while but then screen lights up, it kills telnet and rndis,14:23
Mister_Magisteri can lock and unlock screen so i think that mce is running and probably the rest but why it kills rndis no clue14:24
Mister_Magisterodm fails to mount thats all i know so far14:30
Mister_Magisterahh i've inputted wrong super partition14:35
Mister_Magisterokidoki https://paste.opensuse.org/pastes/b16fefc081b6 this suddenly happens in journal like in an instant and in the same moment i lose telnet14:38
malfix the mounts then14:38
Mister_Magisteri've fixed the superparition dmsetup yes14:39
malfixup seems broken or missing some partitions14:39
mallike that dsp one14:39
Mister_Magisterwhat seems to be missing is entirety of /dev/block/bootdevice directory14:39
Mister_Magisteror maybe its created later14:40
malor maybe the name is different14:40
malcheck fstab in sources14:40
Mister_Magisterwhen i was checking the directory was not there14:40
Mister_Magisteri've made sure fixup-mountpoints is correct14:40
malok14:40
malbut anyway mount services seem wrong, those should not have those path but the device nodes14:41
Mister_Magisteris the /dev/block/bootdevice created by systemd?14:41
malyes14:41
Mister_Magistervendor_a system_ext_a they're all super partitions14:41
Mister_Magisterhttps://paste.opensuse.org/pastes/a8f5d2f6c45a14:42
Mister_Magisteryeah the vendor-dsp.mount has What=/dev/block/bootdevice/by-name/dsp14:44
Mister_Magisterthat… seems wrong14:44
Mister_Magisterohh14:45
Mister_Magisteri have dsp_a in the fixup mountpoints14:45
Mister_Magisteri've grepped for bootdevice and only 3 mounts are wrong so lemme fix them14:45
Mister_Magisterdsp/bluetooth/modem14:46
malyeah, that _a issue is quite common to make14:47
malI have done the same mistake myself couple of times14:47
Mister_Magisteryeah i didn't know what parititiohns are going to be in use so i only removed _a in thigns like boot14:47
Mister_Magisterokay now just dev-block-by\x2dname-metadata.device: Job dev-block-by\x2dname-metadata.device/start timed out.14:50
Mister_Magisterthat and ohmd seems to die14:51
Mister_Magisterlemme check that mount14:51
Mister_Magisteroh because it doesn't have bootdevice it has /dev/block/by-name/metadata14:52
malyes, that is another common issue14:53
malyou can see that in some fixup entries, I think fp5 and some sonys14:53
Mister_Magisterok now it dies much quicker14:53
maldroid-hal failing?14:53
Mister_Magisteri have no clue because telnet dies14:54
Mister_Magisterthe device is fine14:54
Mister_Magistergimme sec i really gotta shut up audit14:54
maldoes it reboot or just usb fails?14:54
malif usb then probably usb-moded and or connman config needs fixing14:54
Mister_Magisterjust usb is being disabled14:55
malsome newer devices need custom connman config for usb stuff14:55
Mister_Magisterscreen lights up because mce starts14:55
Mister_Magisterand its just hanging around14:55
malis usb inteface on device usb0 or rndis0?14:55
Mister_Magistergive me one second14:56
Mister_Magisterusb014:56
Mister_Magistershall i steal this? https://github.com/sailfishos-sony-nagara/droid-config-sony-nagara/blob/main/sparse/etc/connman/main-custom.conf14:56
Mister_Magisteryeah last message in log i have is usb_moded 0.86.0+mer66 starting14:57
malhttps://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/connman/main-custom.conf and https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/var/lib/environment/connman/override-main-config.conf14:58
malcheck if those are the same14:58
malI think 5.0 brought some changes14:58
mallooks like nagara has been updated also14:59
Mister_Magisterthey seem to have same config15:00
malalso check that usb-moded has correct config for usb15:00
Mister_Magisteryeah the connman stuff didn't help and since its dying on usb_moded its gotta be it15:01
malespecially this part https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/usb-moded/usb-moded-fp5.ini#L815:01
malbut gadget paths etc might wrong also on your device15:01
Mister_Magisterbut hey i've shut up audit so we got that15:02
maldoes your device have dummy udc?15:02
Mister_Magisteri have no idea15:02
malin addition to the real one15:02
malok15:02
Mister_Magisterbut it has a600000.dwc315:02
Mister_Magisteri didn't have any custom usb_moded config15:03
Mister_Magisterso imma try yours15:03
Mister_Magisternada15:03
malnote that I use different gadget_conf_directory, community devices use c.1 I think15:04
Mister_Magisterbut we're making great progress :P15:04
Mister_Magisteri'll check it next15:04
malmy build is done in the official way not the community way15:04
Mister_Magisteryeah i get you15:05
malmeaning that I have packaged system/vendor stuff etc15:06
Mister_Magisteroh yeah its supposed to be c.115:06
malto prevent licensing issues I host those rpms from a custom repo from my server15:07
Mister_Magisterokay so it restarted rndis15:07
Mister_Magisterbut i don't think telnet is running anymore15:07
Mister_Magisterwait lemme check ssh15:07
Mister_Magisterno that is not running either15:08
malcheck if it's just missing ip?15:08
Mister_Magisteryeah i can't ping it15:08
malenable persistent journal and check it15:08
Mister_Magisternor dhcp is running15:08
Mister_Magisteron it15:08
Mister_Magisterbut dhcp is not even working from init-debug only from ramdisk15:09
malnot sure which udev things you need in that config, if any15:09
Mister_Magisterwe're going through those issues like storm, the dream team is back :P15:11
Mister_Magisteri hope i'm not bothering you too much mal15:11
malwell I'm preparing changes for glibc update15:12
Mister_Magisterhmmm the issue is now that to read the journal i have to resume init but when i do that, i cannot uhh read the journal15:12
malyou could make usb-moded15:13
maland only start it manually for testing15:13
mal*mask15:13
Mister_Magisterhm15:13
Mister_Magisteroh hey, you could've mentioned that earlier lol15:14
malhehe15:14
malI thought it was obvious, sorry15:14
Mister_Magisterno worries15:14
Mister_Magisterbinder-list: not found thats interesting, but anyway back to the issue on hand15:14
Mister_Magisterwhat are you interested in from journal15:14
maljust check usb related messages and see if you can something that could be causing issues15:15
mal*can find15:15
Mister_Magisterhttps://paste.opensuse.org/pastes/723b6a47c57a15:15
Mister_Magisteri don't think there's much of anything15:16
malyeah, not useful15:17
malabout binder-list https://github.com/mlehtima/droid-config-fp5/blob/master/rpm/droid-config-fp5.spec#L3115:17
Mister_Magisteryeah the nagara had that too15:18
Mister_Magistermal: oh btw why official devices don't have reset device option?15:18
Mister_MagisterProvides: jolla-settings-system-reset this15:18
maldepends whether there is suitable partition for factory reset15:19
Mister_Magisterbut ports do factory reset without such partition?15:20
malnot really possible to do it if there is no good partition15:20
Mister_Magisterhuh, in my unofficial port i used reset device multiple times without having any partition and it worked just fine15:21
Mister_Magisterweird15:21
malhmm15:21
malok15:21
malI need to have a break now and go for a walk15:22
Mister_Magisterno worries15:22
Mister_Magisteri'll rebuild the zip15:22
Mister_Magistermake sure all the fixes are in etc15:22
malrecheck the usb stuff to see that the config is ok15:23
Mister_Magisteralrigh15:23
malalso check the mounts, if those cause droid-hal to fail, those from super partition15:24
Mister_Magistermounts seem to be working fine atm15:25
Mister_Magisteroh15:25
Mister_Magisterodm is not mounted15:25
Mister_Magisterand vendor15:25
Mister_Magistergood call15:25
Mister_Magisterdummy_netd.service also fails if thats relevant15:25
malprobably needs droid-hal to be running15:26
Mister_Magisterand /usr/libexec/droid-hybris/system/bin/bootctl is missing15:26
malno point in check other stuff than usb until you get droid-hal working15:26
Mister_Magisteryeah i know15:26
Mister_Magisterhm /dev/mapper/dynpart-vendor_a doesn't seem to have any filesystem on it15:27
Mister_Magister /dev/mapper/dynpart-vendor_a: block special (252/415:27
Mister_Magistersame with odm, thats why they're not mounting15:27
malstrange15:28
Mister_Magisteryeah15:28
Mister_Magistergo go i'll just spam here for logs15:29
T42<Mister_Magister> @b100dian yooo do you have a sec15:32
T42<b100dian> What are you encountering now?15:38
T42<Mister_Magister> when usb_moded starts, it yeets telnet and ssh and rndis. While we fixed rndis, the device has no ip, so not sure if telnet/ssh is running cause can't talk to it15:40
T42<Mister_Magister> and i saw you fix some stuff in tucana15:40
T42<b100dian> Yeah, but at this point I would mask the service and get a static IP on the PC. Let me see what was the fix for tucana though15:42
T42<Mister_Magister> yeah we got that far but it would be proper to have it fixed15:42
T42<Mister_Magister> if i mask usb-moded its fine15:42
T42<b100dian> Pretty sure my tucana fix is inspired from some HelloVolla droid-config, don't remember which15:46
T42<Mister_Magister> all i know is that tucana fix doesn't fix my ip sadly15:46
T42<b100dian> actually those I mentioned ewere updated to ecm now?15:47
T42<Mister_Magister> no idea15:47
T42<b100dian> Maybe you need the DontBringDownAtStartup = usb as in https://github.com/HelloVolla/droid-config-halium-mimameid/commit/d8e5e7848dd0982f71469e1c041eabc9061c8b9c ?15:48
T42<Mister_Magister> i could try changing to eem15:49
Mister_Magisteror i could try ignoring it, masking usb-moded and trying to get droid-hal up15:51
Mister_Magisterand figuring out why i can't mount vendor15:51
Mister_Magisterohhhhhhhhh15:55
Mister_Magistervendor is erofs not ext415:55
Mister_Magisterohhhh vendor mount is from other device (fp4)  thats why it has worng filesystem type15:56
T42<b100dian> so another device path right?15:57
Mister_Magisterno same device path, different filesystem15:59
Mister_Magisterand odm.mount is autogenerated so it has wrong path so i have to stop it from generating and odm_root which is also copied from fp4 also needs switch to erofs16:00
Mister_Magisternow they mounted fine just fine16:00
Mister_Magisteryeah makefstab_skip_entries is missing odm16:01
T42<b100dian> Android has entered the chat. That is hilarious:)16:03
Mister_MagisterWE GOT GUI16:03
Mister_MagisterWHA16:03
Mister_MagisterTHATS TOO SIMPLE16:03
Mister_MagisterWHAT THE HELL16:03
Mister_Magistereven touch works and i didn't add the config file for it16:04
Mister_Magisterwhat the hell16:04
Mister_Magisterthis is way too simple16:04
Mister_Magisteri expected at least 2 weeks to get gui16:04
T42<b100dian> haha.. remember the libuicompat on sake, that got me for 2 weeks. You probably have other horror stories.16:05
Mister_Magisterit took us half a year to hack the display on g2 and its not fixed to this day16:07
Mister_Magisterbut it looks and works great super fast16:07
Mister_Magisternow i gotta get everything to work, audio, wifi, bt, everything16:07
Mister_Magistereverything seems to be broken16:07
Mister_Magisterwith wifi i'll be able to debug usbmoded16:08
Mister_Magistereverything just magically clicked into place lol16:09
Mister_Magistermal: binder-list error just… like… went away16:23
Mister_Magisterah no, it didn't nvm16:23
Mister_Magisterbruh it even works at 144 HZ16:25
Mister_Magistermal: you gotta fix the fps display to display 3 digits lol16:26
T42<b100dian> now that's also a surprise. We didn't figure out what would sake need for that16:28
T42<b100dian> Now you need to write a hz scaling for battery saving 🙂16:28
Mister_Magisteryeah sake was locked 6016:28
Mister_Magisternaah16:29
Mister_Magisterits so smoooooooooth honestly16:29
Mister_Magisterwhen you enable frame rate display detailed? the bars are pure green16:29
Mister_Magisternothing on them, just flat  green16:29
Mister_Magisteri've never seen device this smooth outside of huawei p8lite and jolla phone the og one16:29
Mister_Magisterand not because of 144Hz because of no microstutter16:29
Mister_Magisterthat being said, i don't have wlan device despite wlan module being loaded so thats fun16:30
Mister_Magisteralso how do i enable tablet ui mode?16:31
malMister_Magister: is there only 2 number in frame rate display, need to check the code16:32
Mister_Magisteryeah thats what i'm saying :P16:33
Mister_Magisterlimited at 9916:33
malnot sure where that is even handled, trying to find it16:33
Mister_Magistermal: don't stress on it i was mostly joking :P16:34
malfor bluetooth check that the bluebinder script finds the mac address16:35
malthat is the usual cause for issue16:35
Mister_Magisteri'm flashing newer zip16:35
Mister_Magisterdon't need bluetooth need wifi for now16:35
malif wlan module or built in?16:35
Mister_Magisterseems to have wlan module16:35
Mister_Magisterjust hold on a second i gotta flash new zip16:36
malsome need writing to some magic paths to start wlan16:36
Mister_Magisterim flashing new zip to fix the binder thingy16:38

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