T42 | <elros34> @HengYeDev whatever you prefer but I think getting some logs first is better then working blindly. Adding simple "touch /target/iamalive" here https://gist.github.com/HengYeDev/01596de2c00256ab2deeab5896917047#file-init-L153 is easy way to check whether mounting works | 00:09 |
---|---|---|
T42 | <elros34> if that works then you can copy init.log from initramfs to /data for example before reboot command | 00: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/userdata | 01:02 |
T42 | <HengYeDev> Do I need to use absolute paths | 01:02 |
T42 | <elros34> obviously like in script you showed | 01:03 |
T42 | <HengYeDev> i changed it as i found the partitions were actually in /dev/block not /dev | 01:05 |
T42 | <HengYeDev> should i use /dev/block/sda32 or /dev/sda32 then | 01: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% sure | 01: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 everything | 01:12 |
*** ggabriel is now known as Guest252 | 09: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 https://github.com/sailfishos-on-tucana/droid-config-tucana/tree/master/sparse/odm/lib64 + installing miniaudioservice | 10:16 |
T42 | <dcmmc> thank you, let me have a look | 10: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=no | 14:20 |
T42 | <HengYeDev> Seems to be rebooting after 1 minute so its likely not the rndis issue here | 14:20 |
T42 | <HengYeDev> here is init.log https://gist.github.com/HengYeDev/1cf12a018a5313503dbb17ee7fe3a93c | 14:20 |
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 output | 14:22 |
T42 | <elros34> and configfs-gadget 13200000.dwc3: failed to start g1: -22 | 14: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 initramfs | 14:27 |
T42 | <elros34> watch out for picky samsung watchdog, if device will reboot after few seconds this can be good sign | 14:34 |
T42 | <HengYeDev> @elros34 same error after applying twrp usb.rc stuff to the init-debug | 14: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 anyway | 14: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 harder | 14: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 change | 14: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 same | 14:53 |
T42 | <elros34> after change | 14:53 |
T42 | <elros34> this is something worth to check: https://github.com/LineageOS/android_device_samsung_gta4xl-common/blob/lineage-19.0/configs/init/init.exynos9611.usb.rc#L38. Hybris-boot writes rndis but your kernel supports some "Conf 1" value in configuration | 15:06 |
T42 | <HengYeDev> @elros34 Should i copy all the commands in the on boot section to the usb_setup_configfs function | 16:09 |
T42 | <HengYeDev> I modified it adding Conf 1 and now it reboots in around 10 seconds | 16:46 |
T42 | <HengYeDev> https://gist.github.com/HengYeDev/7f4db60bdd9424332d3b95fe4f44323c | 16: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 echoed | 16: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 difference | 17: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 reboot | 20: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 No | 20: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 later | 20:06 |
T42 | <elros34> remember there 2 scripts: 1 in initramfs and second in rootfs, amke sure you did not messup any of this | 20:09 |
T42 | <HengYeDev> @elros34 I added a sleep in the boot initramfs and it did not sleep, does that indicate a kernel problem | 20:19 |
T42 | <HengYeDev> i added it right before EXPLICIT_BUSYBOX in the initrd sequence | 20:20 |
T42 | <elros34> depends on how you added it because there is no sleep command before busybox --install | 20:21 |
T42 | <elros34> I think so but I didn't try, still it's better to always add anything after do_mount_devprocsys | 20:23 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!