[Buildroot] Creating a filesystem for QEMU

Lionel Landwerlin llandwerlin at gmail.com
Fri Nov 13 13:57:22 UTC 2009


On Fri, Nov 13, 2009 at 2:56 PM, Lionel Landwerlin <llandwerlin at gmail.com>wrote:

>
>
> On Fri, Nov 13, 2009 at 2:18 PM, Bogdan Cristea <cristeab at gmail.com>wrote:
>
>> On Thursday 12 November 2009 16:46:32 you wrote:
>> > I've just started doing the same thing myself.  After a bit of googling
>> > the trick I found was to ask buildroot to generate a cpio target file
>> > system. Start with the i386_defconfig or i686_defconfig and set
>> > BR2_TARGET_ROOTFS_CPIO=y (or use "make menuconfig" an find the cpio
>> > option under the "Target file system" menu)
>> >
>> > Making use of qemus ability to replace the bootloader you can invoke
>> > qemu with
>> >     qemu -kernel output/images/bzImage \
>> >          -initrd output/images/rootfs.i686.cpio
>>
>
> Shouldn't be the cpio image gunzipped ? :
>

I mean gzipped of course...


>
> $ file /boot/initrd.img-2.6.30-2-686
> /boot/initrd.img-2.6.30-2-686: gzip compressed data, from Unix, last
> modified: Fri Nov 13 09:08:02 2009
> $ gunzip -c /boot/initrd.img-2.6.30-2-686 > test
> $ file test
> test: ASCII cpio archive (SVR4 with no CRC)
>
>
>
>>  >
>>      I have tried this approach, but it does not seem to work. First
>> inconvenient is that rootfs.i686.cpio file is very large (600 MB) and when
>> using the above command I only get a black screen from QEMU while the
>> entire
>> computer seems to be slower.
>>    Lionel, suggested other approaches but till now I have no luck. Trying
>> to
>> obtain first a cloop root filesystem and then convert that to a QEMU
>> format
>> seem to work and the file size is small (3 MB), but still when using that
>> disk
>> image, QEMU is not able to recognize any root partition.
>>    If you have any other suggestion it would be helpful.
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20091113/600e9bb1/attachment.html>


More information about the buildroot mailing list