Skip to contentSkip to conversation

Unable to boot via initrd

Buildroot Paul Kuntke 2 participants 2 messages Jan 11, 2012

lore
Share & tools
lore
#0 lore raw

Hi to all,
I'm very new to buildroot and building Initrds and I would like to set up a minimalistic environment for booting PCs (i386) over PXE.

For this I would like to set up a Kernel and an initrd as System-Filesystem. After everything was build fine I wanted to test the environment. But every tries ended in a Kernel-Panic moaning about no /init to find. I've also tried to set the "init" kernel-parameter to /bin/busybox. But even then it is not able to start /bin/busybox.

As testing environment I tried qemu as well as some real PCs with syslinux over PXE.

Kernel-Parameters I've tried: "root=/dev/ram init=/init"
As Initrd I tried to use the bzImage with the build in initrd-image as well as the rootfs.cpio.bz2 or rootfs.cpio.

Do I have to set some special Kernel-Params or do I have to set some special options in the buildroot config?

Thanks,
Paul

Signature · 12 lines
Paul Kuntke <[email protected]>

Jabber-ID: paul at 42degreesoffreedom.com

This Mail is signed via gpg. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120111/d6931a46/attachment.asc>
#1 lore raw
Quoted 10 lines · Paul Kuntke

Hi to all,
I'm very new to buildroot and building Initrds and I would like to set up a minimalistic environment for booting PCs (i386) over PXE.

For this I would like to set up a Kernel and an initrd as System-Filesystem. After everything was build fine I wanted to test the environment. But every tries ended in a Kernel-Panic moaning about no /init to find. I've also tried to set the "init" kernel-parameter to /bin/busybox. But even then it is not able to start /bin/busybox.

Quoted 5 lines

As testing environment I tried qemu as well as some real PCs with syslinux over PXE.

Kernel-Parameters I've tried: "root=/dev/ram init=/init"

Try: rdinit=/bin/sh (or rdinit=/bin/bash) -
One or the other should be there, either in person or by a sym-link to BB.

That should give you an interactive shell, after early user-space is loaded, but before anything of its scripting is executed.

You probably will not get far until you mount /proc and /sys ;-)

If your Busybox isn't optioned as a standalone shell and the application links do not pre-exit, use the direct access:
'/bin/busybox ap-name options' form (such as for 'mount' command).

With /proc and /sys mounted...

If BB isn't configured as a stand-alone shell, and the application links do not pre-exist, the links can be populated with:
/bin/busybox --install
(You may need to make /sbin, /usr/bin, /usr/sbin - depending on your image.)

If the image and kernel wasn't optioned to populate /dev @ devtmpfs, and you have mdev available (and /sys mounted), you can populate that with:
mdev -s

At which point you should have a fairly functional, ram resident, shell and tool environment with which to discover what is going wrong.

Mike

Quoted 9 lines

As Initrd I tried to use the bzImage with the build in initrd-image as well as the rootfs.cpio.bz2 or rootfs.cpio.

Do I have to set some special Kernel-Params or do I have to set some special options in the buildroot config?

Thanks,
Paul