libera/#maemo-leste/ Sunday, 2024-03-17

siceloi've built a kernel for Librem5, and took the latest image from Pinephone iirc (or was it generic arm64?). anyway, i'm getting "Failed to execute /init (error -13) ... Starting init: /sbin/init exists but couldn't execute it (error -13)" error when booting22:34
siceloi think kernel is ok. what should i set for `init=`?22:34
* sicelo is also a bit tired and not really thinking straight22:35
sicelomy uboot cmdline is 'setenv bootargs rootwait root=/dev/sda2 rw console=ttymxc0,115200 debug console=tty0'22:37
siceloyes, it's sda2 ... because i'm using sd card, and on the Librem5 it's sitting behind USB. u-boot knows how to find it there, and i've built both ext4 and the usb support in, so that's not the problem22:38
Wizzupsicelo: does it mount rootfs?22:38
siceloyes22:39
sicelolet me see if i can upload a picture (because no serial to this thing) :p22:39
siceloserial is ... something like N90022:39
sicelohttps://www.imgpaste.net/image/STA7sb22:45
Wizzupinteresting23:00
Wizzupmaybe armhf kernel and userland is arm64 or vice versa?23:00
Wizzupmaybe google for the error a bi23:00
Wizzupwait..23:01
Wizzup/etc/init ?23:01
WizzupDoes it manage to run /sbin/init ?23:01
sicelohttps://docs.kernel.org/admin-guide/init.html23:01
siceloit says it can see /sbin/init, but can't run it23:02
siceloStarting init: /sbin/init exists but couldn't execute it (error -13)23:02
WizzupI don't see that on the screen23:02
Wizzupand you're sure that sda2 contains /sbin/init?23:03
Wizzupmaybe run 'file' on it ot see what kind of file it is23:03
siceloit's there on the screen - at 7.12581423:03
siceloand yes sda2 contains the file. sbin/init: ELF 64-bit LSB pie executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-aarch64.so.1, BuildID[sha1]=a32a90ca33581febfd8a89839d20aeec0b85b975, for GNU/Linux 3.7.0, stripped23:04
sicelolet me try set init=/bin/sh and see what happens23:06
Wizzupsicelo: no23:09
Wizzupsicelo: that says /etc/init23:09
siceloah indeed.23:11
sicelo /sbin/init is tried a bit earlier up. so somehow it fails. actually init=/bin/sh also doesn't work23:12
Wizzupthe tomoyo stuff seems suspect23:12
sicelothat one's there in mobian too. i'm not sure where it comes from, but i don't think it's the issue23:14
sicelomaybe let me re-do the rootfs in case something's borked somewhere23:14
Wizzupyou could perhaps chroot from another arm64 device just in case23:16
Wizzupok23:16
Wizzupdoes it work wiht the mobian kernel?23:17
Wizzupmaybe try that first23:17
siceloit is the mobian kernel ... just not the actual binary, because theirs (including pmOS) expects an initramfs, so they haven't built in stuff like SD card support, etc.23:18
Wizzupok23:21
Wizzupthere might some trickyness there, like certain things having to be built in23:21

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