sicelo | i'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 booting | 22:34 |
---|---|---|
sicelo | i think kernel is ok. what should i set for `init=`? | 22:34 |
* sicelo is also a bit tired and not really thinking straight | 22:35 | |
sicelo | my uboot cmdline is 'setenv bootargs rootwait root=/dev/sda2 rw console=ttymxc0,115200 debug console=tty0' | 22:37 |
sicelo | yes, 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 problem | 22:38 |
Wizzup | sicelo: does it mount rootfs? | 22:38 |
sicelo | yes | 22:39 |
sicelo | let me see if i can upload a picture (because no serial to this thing) :p | 22:39 |
sicelo | serial is ... something like N900 | 22:39 |
sicelo | https://www.imgpaste.net/image/STA7sb | 22:45 |
Wizzup | interesting | 23:00 |
Wizzup | maybe armhf kernel and userland is arm64 or vice versa? | 23:00 |
Wizzup | maybe google for the error a bi | 23:00 |
Wizzup | wait.. | 23:01 |
Wizzup | /etc/init ? | 23:01 |
Wizzup | Does it manage to run /sbin/init ? | 23:01 |
sicelo | https://docs.kernel.org/admin-guide/init.html | 23:01 |
sicelo | it says it can see /sbin/init, but can't run it | 23:02 |
sicelo | Starting init: /sbin/init exists but couldn't execute it (error -13) | 23:02 |
Wizzup | I don't see that on the screen | 23:02 |
Wizzup | and you're sure that sda2 contains /sbin/init? | 23:03 |
Wizzup | maybe run 'file' on it ot see what kind of file it is | 23:03 |
sicelo | it's there on the screen - at 7.125814 | 23:03 |
sicelo | and 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, stripped | 23:04 |
sicelo | let me try set init=/bin/sh and see what happens | 23:06 |
Wizzup | sicelo: no | 23:09 |
Wizzup | sicelo: that says /etc/init | 23:09 |
sicelo | ah indeed. | 23:11 |
sicelo | /sbin/init is tried a bit earlier up. so somehow it fails. actually init=/bin/sh also doesn't work | 23:12 |
Wizzup | the tomoyo stuff seems suspect | 23:12 |
sicelo | that one's there in mobian too. i'm not sure where it comes from, but i don't think it's the issue | 23:14 |
sicelo | maybe let me re-do the rootfs in case something's borked somewhere | 23:14 |
Wizzup | you could perhaps chroot from another arm64 device just in case | 23:16 |
Wizzup | ok | 23:16 |
Wizzup | does it work wiht the mobian kernel? | 23:17 |
Wizzup | maybe try that first | 23:17 |
sicelo | it 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 |
Wizzup | ok | 23:21 |
Wizzup | there might some trickyness there, like certain things having to be built in | 23:21 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!