On 10/25/22 16:55, samuel ammonius 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?
You didn't provide any details about what is inside the initrd or the
filesystem, where they came from, or what process you used to create
them, so the problem could be just about anything. There isn't even
enough here to know whether it was busybox's init that died or the
script inside the initrd. Is busybox inside the initrd? or on
/dev/sda1? or both? Chances are, you should probably ask on the
forum/list related to the instructions you are following, such as buildroot.
If you can narrow it down to knowing for sure that busybox's init got
called, and that calling other busybox applets (like '/bin/date',
assuming that is one of your applets) succeeds, and give us any lines of
error message that these generated before the kernel panic, and show us
the /etc/inittab, then we can help a lot more accurately.
-Mike
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox