Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Simple buildroot question
@ 2008-07-14 13:02 Leonardo Giordano
  0 siblings, 0 replies; 2+ messages in thread
From: Leonardo Giordano @ 2008-07-14 13:02 UTC (permalink / raw)
  To: buildroot

Hi everybody,
I have compiled a toolchain using buildroot without trouble. I am 
testing it with qemu using:
qemu -hda rootfs.i386.ext2 -kernel linux-kernel-2.6.25.6-i386 -append 
"root=/dev/hda"
and it works fine.
Now, I am trying to copy it to a compact flash to test it in my target 
hardware (a small pc, which can boots from CF, for instance with DOS). 
Then, I have the following quesitons:
1) How/what should I copy to the CF?
I created just one partition on CF, and then I did:
dd if=rootfs.i386.ext2 of=/dev/sdb1
where /dev/sdb1 is the partition on CF.
Then when I mount it, I can see the file system has been copied.
Is that ok?

2) Make it bootable
When I try to boot from it, it doesn't. It makes sense because I haven't 
installed a bootloader. Then I checked the 'grub' option at menuconfig 
from buildroot and re-build it fine. However I dont know how to make 
grub work (who writes the MBR?). Maybe this is a grub question, but I am 
sure someone in this mailing list can help.

I am not a linux expert, so maybe the solution is just there but I can't 
see it!

Anyway, my congratulations to the buildroot team.
Regards,

^ permalink raw reply	[flat|nested] 2+ messages in thread
* [Buildroot] Simple buildroot question
@ 2008-07-14 13:01 Leonardo Giordano
  0 siblings, 0 replies; 2+ messages in thread
From: Leonardo Giordano @ 2008-07-14 13:01 UTC (permalink / raw)
  To: buildroot

Hi everybody,
I have compiled a toolchain using buildroot without trouble. I am 
testing it with qemu using:
qemu -hda rootfs.i386.ext2 -kernel linux-kernel-2.6.25.6-i386 -append 
"root=/dev/hda"
and it works fine.
Now, I am trying to copy it to a compact flash to test it in my target 
hardware (a small pc, which can boots from CF, for instance with DOS). 
Then, I have the following quesitons:
1) How/what should I copy to the CF?
I created just one partition on CF, and then I did:
dd if=rootfs.i386.ext2 of=/dev/sdb1
where /dev/sdb1 is the partition on CF.
Then when I mount it, I can see the file system has been copied.
Is that ok?

2) Make it bootable
When I try to boot from it, it doesn't. It makes sense because I haven't 
installed a bootloader. Then I checked the 'grub' option at menuconfig 
from buildroot and re-build it fine. However I dont know how to make 
grub work (who writes the MBR?). Maybe this is a grub question, but I am 
sure someone in this mailing list can help.

I am not a linux expert, so maybe the solution is just there but I can't 
see it!

Anyway, my congratulations to the buildroot team.
Regards,

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

end of thread, other threads:[~2008-07-14 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-14 13:02 [Buildroot] Simple buildroot question Leonardo Giordano
  -- strict thread matches above, loose matches on Subject: below --
2008-07-14 13:01 Leonardo Giordano

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