Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Unable to boot via initrd
@ 2012-01-11  9:02 Paul Kuntke
  2012-01-11 14:04 ` Michael S. Zick
  0 siblings, 1 reply; 11+ messages in thread
From: Paul Kuntke @ 2012-01-11  9:02 UTC (permalink / raw)
  To: buildroot

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

-- 
Paul Kuntke <paul@42degreesoffreedom.com>

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>

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Buildroot] Unable to boot via initrd
@ 2012-07-10 21:24 Bart J. Smit
  2012-07-10 22:30 ` Arnout Vandecappelle
  0 siblings, 1 reply; 11+ messages in thread
From: Bart J. Smit @ 2012-07-10 21:24 UTC (permalink / raw)
  To: buildroot

Another buildroot newbie looking at this. I'm looking to create a PXE boot for generic x86.

I've created the initial ramdisk with:
 mount -o loop rootfs.ext2 ../initrd
 cd ../initrd
 find . | cpio -o -H newc | gzip > ../initrd.img

When I PXE boot the client, it gets to:
  VFS Cannot open root device, please append a correct root= boot option; here are the available partitions
  Kernel panic - not syncing: VFS; Unable to mount root fs on unknown-block(2,0)

From what I can google, this seems to be a popular use for small builds such as buildroot. Do any of the gurus on this list have a recipe to achieve a PXE boot image?

Thanks,

Bart...
  

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Buildroot] Unable to boot via initrd
@ 2013-09-02 19:06 Matthieu
  2013-09-03 16:11 ` Arnout Vandecappelle
  0 siblings, 1 reply; 11+ messages in thread
From: Matthieu @ 2013-09-02 19:06 UTC (permalink / raw)
  To: buildroot

Hello,


I have just installed the 2013-08 version of buildroot and I do not succed
to boot via initrd.
I tried two solutions (described in the previous post "Creating initrd")
through the gui menuconfig. And neither solution seems succeed.

When I run:

1) for the solultion 1 (BR2_TARGET_ROOTFS_INITRAMFS=y)
kvm -kernel output/images/bzImage -initrd output/images/rootfs.cpio.bz2 -m
128

2) for the solution 2: (BR2_TARGET_ROOTFS_CPIO=y)
kvm -kernel output/images/bzImage -initrd output/images/rootfs.cpio.bz2
-initrd output/images/rootfs.cpio.bz2 -m 128

I always obtain:
VFS: Cannot open root device "(null)" .... error -6 ...
Please append a coorect "root)" boot option; here are the available
partitions: Kernel panic ....VFS: Unable to mount root fs on
unknown-block(0,0)


Please can you help me?

regards

Matthieu



--
View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/Unable-to-boot-via-initrd-tp50517.html
Sent from the Buildroot (busybox) mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-09-04 11:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11  9:02 [Buildroot] Unable to boot via initrd Paul Kuntke
2012-01-11 14:04 ` Michael S. Zick
  -- strict thread matches above, loose matches on Subject: below --
2012-07-10 21:24 Bart J. Smit
2012-07-10 22:30 ` Arnout Vandecappelle
2012-07-11 13:54   ` Bart J. Smit
2013-09-02 19:06 Matthieu
2013-09-03 16:11 ` Arnout Vandecappelle
2013-09-03 22:41   ` Matthieu
2013-09-04  7:50     ` Thomas Petazzoni
2013-09-04 11:38       ` Matthieu
2013-09-04 11:53         ` Matthieu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox