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 problem | 01:36 |
T42 | <Mister_Magister> maaan xd | 01:36 |
T42 | <Mister_Magister> and it's me from… 7 years ago holy | 01:39 |
T42 | <Mister_Magister> but hey i guessed correctly it was xiaomi | 01: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 issues | 01:56 |
T42 | <Mister_Magister> this is going to be hard | 01:57 |
T42 | <Mister_Magister> i shuold try and debug switch_root cause it seems to be cause of the issue | 01:59 |
T42 | <Mister_Magister> its not segfault in kernel, but Attempted to kill init | 01:59 |
T42 | <Mister_Magister> which would suggest userspace i think…? | 01:59 |
T42 | <Mister_Magister> if anyone has any idea please help | 01:59 |
T42 | <Mister_Magister> or maybe its selinux thing | 02: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 happens | 02:03 |
Mister_Magister | mal: hi did you have time to look at the repos? | 12:59 |
mal | sorry was a bit busy yesterday | 13:01 |
mal | what is the status of that latest build | 13:02 |
Mister_Magister | nah no worries just asking | 13:03 |
Mister_Magister | mal: when it switches root it kills init, before executing the init-done | 13:03 |
mal | hmm | 13:04 |
Mister_Magister | hmm indeed | 13:04 |
Mister_Magister | i 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 output | 13:05 |
mal | so it never gets to second telnet | 13:05 |
Mister_Magister | no | 13:05 |
mal | even is you have that stop thingy there | 13:05 |
Mister_Magister | yeap | 13:05 |
Mister_Magister | hence i concluded it never gets to init-done | 13:05 |
mal | and userdata is properly ext4? | 13:05 |
Mister_Magister | yeah im in ramdisk i have it mounted its all fine | 13:06 |
Mister_Magister | its quite nice debug setup because it enters ramdisk every time and then when it segfaults it just goes back into ramdisk and i have pstore | 13:06 |
mal | anything useful in pstore? | 13:06 |
Mister_Magister | the kernel panic | 13:06 |
Mister_Magister | other than that nah | 13:06 |
Mister_Magister | btw 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 to | 13:07 |
mal | does it hint anything where is panics? | 13:07 |
mal | btw, do you know the way to decode kernel backtraces to more readable format? | 13:07 |
Mister_Magister | i know addr2line | 13:08 |
Mister_Magister | it attemts to kill init and not segfault so i concluded its in userspace | 13:08 |
Mister_Magister | and the spot is VERY generic | 13:09 |
Mister_Magister | so i don't think its problem with kernel | 13:09 |
Mister_Magister | https://paste.opensuse.org/pastes/26e36af8ab10 enjoy the dmesg | 13:10 |
Mister_Magister | the panic points to CONFIG_MSM_PM so yeah definitely not the kernel fault | 13:12 |
Mister_Magister | if it was kernel fault it would be segfault i think | 13:12 |
mal | Mister_Magister: does your device have kernel modules in init? i.e. in vendor_boot? btw, did you flash correct vendor_boot also | 13:18 |
Mister_Magister | i flashed dtbo, boot and vendor boot | 13:18 |
Mister_Magister | all 3 | 13:18 |
Mister_Magister | and as to other question i have no idea | 13:18 |
mal | because 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 loading | 13:18 |
Mister_Magister | im not good in this android stuff i leanred about this weird new kernel stuff yesterday | 13:19 |
mal | but that would not explain that you can get into first telent | 13:20 |
Mister_Magister | mal: but like, in ramdisk it also loads kernel modules so why would it fail in init | 13:21 |
Mister_Magister | yeah | 13:21 |
mal | because it should be loading those already in first init | 13:21 |
mal | is the first init stable for long time? | 13:21 |
Mister_Magister | yeap | 13:21 |
Mister_Magister | i can stay indefinitely | 13:21 |
Mister_Magister | and it goes there every time | 13:21 |
Mister_Magister | very solid debugging environment | 13:21 |
mal | maybe try to check if there are some pending kernel stuff, can't remember the path in sys to check that | 13:22 |
mal | did you have any issues extracting rootfs? | 13:23 |
Mister_Magister | i extracted it via the ramdisk and nah | 13:23 |
Mister_Magister | https://paste.opensuse.org/pastes/867e4fed3a04 whachu need :D | 13:29 |
Mister_Magister | i tried chrooting target and got chroot: can't execute '/bin/bash': Exec format error | 13:35 |
Mister_Magister | that normal? | 13:35 |
mal | hmm | 13:35 |
Mister_Magister | when i try running /target/bin/bash nothing happens | 13:35 |
Mister_Magister | could be entirely normal | 13:36 |
Mister_Magister | mal: 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 that | 13:42 |
Mister_Magister | idk if its relevant | 13:42 |
Mister_Magister | im just biiiig dummy xd | 13:42 |
Mister_Magister | i left the telnet running and tried tailing /target/init-debug-stderrout but nothing ever appeared | 13:45 |
Mister_Magister | let me try chrooting from ramdisk on another phone to see if thats supposed to work | 13:49 |
Mister_Magister | hmm, init_enter_debug sadly doesn't freeze the boot | 13:50 |
Mister_Magister | well at least i can chroot from recovery on other phone let me try that on the tablet | 13:56 |
Mister_Magister | can't do it from recovery but the error is not the same | 13:58 |
Mister_Magister | in recovery it says chroot: exec /bin/sh: No such file or directory | 14:00 |
Mister_Magister | i should be able to chroot | 14:01 |
Mister_Magister | mal: huh, ramdisk has 32bit executables but rootfs has 64bit executables | 14:04 |
Mister_Magister | should it be like that? | 14:04 |
Mister_Magister | holdon plot thickens, /usr/bin/busybox is empty file | 14:05 |
Mister_Magister | eyyyyyyyyyyyy i re-extracted the archive and can chroot now | 14:10 |
Mister_Magister | eyyyyy its not segfaulting now and the screen got brighter | 14:11 |
Mister_Magister | meaning something's gotta be haappening | 14:11 |
Mister_Magister | I don't have second telnet but thats probably because of messed up init script so let me clean it up and see how it goes | 14:12 |
Mister_Magister | lol now it gets stuck in ramdisk | 14:19 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!