busybox init returns fails with error code -1 (0x00007f00)
Denys Vlasenko
vda.linux at googlemail.com
Tue Nov 29 14:03:54 UTC 2022
On Tue, Oct 25, 2022 at 10:56 PM samuel ammonius <sfammonius at gmail.com> wrote:
> Hello,
>
> I have a simple ISO filesystem set up with busybox and grub.These are the commands I use in GRUB2 to start the system:
>
> grub> set root=(cd)
> grub> linux /boot/bzImage root=/dev/sda1
> grub> initrd /boot/initrd
> grub> boot
>
> I don't know how to get the full kernel error log, but the final error is "kernel panic: attempted to kill init! error code: 0x00007f00". I tried building a static "Hello, world!" program as the FAQ said, and it worked. What could be causing the error?
Error code 0x00007f00 means that init exited with exit code 127 (0x7f).
IOW: it did not crash with a signal, it called exit(127).
Did it print any error message?
More information about the busybox
mailing list