I'm building Linux from scratch. Currently I have the kernel, glibc and sysvinit. I've compiled everything myself following these instructions. Though my version of glibc is 2.19. Also, I use grub instead of lilo but I don't think that would have any effect.
Anyway, when I boot I get this at the end:
Starting init: /sbin/init exists but couldn't execute it (error -8)
Kernel panic - not syncing: No working init found. (and so on)
Error code 8 means it's a problem with the executeble format. I also tried making another executable that prints "asdf" but that didn't work either (same error).
So should I use an older version of glibc, another c library, another init program (like systemd) or are these instructions bad?
fs/exec.c
for possible reasons that caused it.