[Buildroot] Booting the rootfs ext2 image

Robin Mordasiewicz rmordasiewicz at samuelmanutech.com
Wed Dec 20 04:52:25 UTC 2006


On Tue, 19 Dec 2006, don wrote:
>> On Tue, 19 Dec 2006, Rafael A Barrero wrote:
>>
>>> Now that I've successfully built a rootfs image that includes my
>>> custom built kernel, I have a few questions about taking that rootfs
>>> and actually running it on my dev. system. I've mounted the ext2 fs
>>> as a loopback device and it looks great, but I'm looking for some
>>> pointers on getting grub configured for that partition.
>
> I booted mine with PXE and then ran grub to install on to the CF card
> in an IDE adapter.
>
> I believe you can install a disk or flash card onto your host and then
> run grub there with arguments to install there instead of your main
> hard drive.  But I didn't want to fight through that when I had PXE
> working.
>
> It does not boot from the CF card.

I am about to get to that point but I will be using a slightly different 
aproach. I am building an installer for thinstation(sourceforge project) 
which uses syslinux instead of grub or lilo.

In your case I would expect it to work as well. Are you basically doing 
something like the following ?

1. fdisk the CF
2. format the CF
3. copy root filesystem including kernel etc. to CF
4. chroot to new filesystem
5. run grub installer



More information about the buildroot mailing list