Sunday, 2022-02-13

T42<elros34> @HengYeDev whatever you prefer but I think getting some logs first is better then working blindly. Adding simple "touch /target/iamalive" here is easy way to check whether mounting works00:09
T42<elros34> if that works then you can copy init.log from initramfs to /data for example before reboot command00:10
T42<HengYeDev> @elros34 Seems like mounting did not happen then, the file was not created in /data. my DATA_PARTITION=/dev/block/by-name/userdata01:02
T42<HengYeDev> Do I need to use absolute paths01:02
T42<elros34> obviously like in script you showed01:03
T42<HengYeDev> i changed it as i found the partitions were actually in /dev/block not /dev01:05
T42<HengYeDev> should i use /dev/block/sda32 or /dev/sda32 then01:05
T42<HengYeDev> possibly the problem is there? (re @elros34: obviously like in sc...)01:05
T42<elros34> I think it doesn't matter in initramfs but I am not 100% sure01:06
T42<elros34> ah I didn't notice your change in paste (with github diff I would probably notice it) so commenting out  DONE_SWITCH=no breaks everything01:12
*** ggabriel is now known as Guest25209:50
T42<dcmmc> Hey @b100dian , my camera is not work with sde_rotator_format_recalc:222: <SDEROT_ERR> invalid plane size spamming. I found that you had the same issue in the last yar. Could you please tell me how did you fix this?10:09
T42<b100dian> not sure, looking around that time I think I was still creating links in + installing miniaudioservice10:16
T42<dcmmc> thank you, let me have a look10:18
voidanix[m]Thaodan: do i need to move the bahamut PRs to the new sailfishos-sonyxperia org?12:05
T42<HengYeDev> @elros34 I got to the init.log after recommenting DONE_SWITCH=no14:20
T42<HengYeDev> Seems to be rebooting after 1 minute so its likely not the rndis issue here14:20
T42<HengYeDev> here is init.log
T42<HengYeDev> sleep 60 at end seems interesting?14:20
T42<elros34> definitely it is, see "echo 13200000.dwc3" fails and then there is no rndis interface from ifconfig output14:22
T42<elros34> and  configfs-gadget 13200000.dwc3: failed to start g1: -2214:23
T42<elros34> funny is that you have wlan0:)14:25
T42<elros34> now you should amend /data/.stowaways/sailfishos/init-debug script same as you have tried with initramfs14:27
T42<elros34> watch out for picky samsung watchdog, if device will reboot after few seconds this can be good sign14:34
T42<HengYeDev> @elros34 same error after applying twrp usb.rc stuff to the init-debug14:37
T42<HengYeDev> should i just disable the reboot since i have logs in the init.log anyway?14:37
T42<elros34> if you want  but it will not help anyway14:38
T42<elros34> unless you want to continue booting without telnet, this is possible but it will be pain to debug device. journal can be grabed and read on pc but logcat will be harder14:39
T42<elros34> I would start with pure copy paste from *.usb.rc to /init-debug, you have now logs then you will see whether something change14:41
T42<elros34> "Config c/1 of g1 needs at least one function" suggest that  $USB_FUNCTIONS was not used but this is before you changes and you said error is same14:53
T42<elros34> after change14:53
T42<elros34> this is something worth to check: Hybris-boot writes rndis but your kernel supports some "Conf 1" value in configuration15:06
T42<HengYeDev> @elros34 Should i copy all the commands in the on boot section to the usb_setup_configfs function16:09
T42<HengYeDev> I modified it adding Conf 1 and now it reboots in around 10 seconds16:46
T42<HengYeDev> strange that init.log didn't change, i think it didn't even get to the step where init.log was written since the command where Conf 1 is set was not echoed16:48
T42<HengYeDev> maybe i messed up the files..17:15
T42<elros34> you write it too early, 0x409 directory is created few lines later. Remove init.log every time when you test then you will know for sure whether you mess up init-debug script and kernel panics. About "on boot" then at least these who are related (without adb)17:24
T42<elros34> notice also b.1 -> c.1 difference17:27
T42<HengYeDev> @elros34 I delete init.log and it keeps doing reboot in 10s and now the iamalive file isn't even there anymore, i have no idea what happened :/20:01
T42<HengYeDev> I tried to recreate the boot.img with the original hybris ramdisk and kernel and it still does the 10s reboot20:01
T42<elros34> hmm, any chance this is a/b device and your active slot changed to b because failed boots?20:05
T42<HengYeDev> @elros34 No20:05
T42<elros34> so not sure but I learned hard way to always make backup of working things otherwise you lose a lot of time later20:06
T42<elros34> remember there 2 scripts: 1 in initramfs and second in rootfs, amke sure you did not messup any of this20:09
T42<HengYeDev> @elros34 I added a sleep in the boot initramfs and it did not sleep, does that indicate a kernel problem20:19
T42<HengYeDev> i added it right before EXPLICIT_BUSYBOX in the initrd sequence20:20
T42<elros34> depends on how you added it because there is no sleep command before busybox --install20:21
T42<elros34> I think so but I didn't try, still it's better to always add anything after do_mount_devprocsys20:23

Generated by 2.17.1 by Marius Gedminas - find it at!