Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Is grub-bios-setup the way to go to make a bootable CF?
@ 2014-06-27 10:32 Lennart Ramberg
  2014-06-27 18:32 ` Thomas Petazzoni
  0 siblings, 1 reply; 12+ messages in thread
From: Lennart Ramberg @ 2014-06-27 10:32 UTC (permalink / raw)
  To: buildroot

Hi,
I am struggling with making a grub 2-bootable Compact Flash for a BIOS
based PC target.
The closest I came so far in the target machine is:
  grub rescue >

Then I found 'grub-bios-setup' as a possibly better alternative, but got
stuck as below.
Is grub-bios-setup the way to go at all?
Thanks
Lennart

I'm using the stable buildroot-2014.05.
After make menuconfig and make my output/images/ contain
  bzImage
  grub.img
  rootfs.ext2
  rootfs.ext3 link
  rootfs.tar

and what I have done is: (Target CF put in the host in an USB CF-adapter,
sdX=sdc in my case.)
sudo fdisk /dev/sdX    and created one primary partition 1GB.
sudo mke2fs -j -m 0 /dev/sdX1
sudo tune2fs -c0 -i0 /dev/sdX1

sudo tar -xvf output/images/rootfs.tar -C
/media/lennart/30bdb69e-d518-4a8c-8b12-70fe8481dae7/
sudo grub-install /dev/sdX
Installation finished. No error reported.

Putting that in the target machine only brought me to 'grub rescue >', so I
tried grub-bios-setup, but got stuck on 'device.map':

lennart at OptiPlex ~/buildroot-2014.05 $
./output/host/usr/sbin/grub-bios-setup -b
./output/host/usr/lib/grub/i386-pc/boot.img -c ./output/images/grub.img -d
. /dev/sdc -v
./output/host/usr/sbin/grub-bios-setup: info: cannot open
`/boot/grub/device.map': No such file or directory.
./output/host/usr/sbin/grub-bios-setup: info: Looking for /dev/sdc.
./output/host/usr/sbin/grub-bios-setup: info: /dev/sdc is a parent of
/dev/sdc.
./output/host/usr/sbin/grub-bios-setup: info: Looking for /dev/sdc.
./output/host/usr/sbin/grub-bios-setup: info: /dev/sdc is a parent of
/dev/sdc.
./output/host/usr/sbin/grub-bios-setup: info: transformed OS device
`/dev/sdc' into GRUB device `hostdisk//dev/sdc'.
./output/host/usr/sbin/grub-bios-setup: info: getting the size of
././output/host/usr/lib/grub/i386-pc/boot.img.
./output/host/usr/sbin/grub-bios-setup: info: reading
././output/host/usr/lib/grub/i386-pc/boot.img.
./output/host/usr/sbin/grub-bios-setup: info: getting the size of
././output/host/usr/lib/grub/i386-pc/boot.img.
./output/host/usr/sbin/grub-bios-setup: info: getting the size of
././output/images/grub.img.
./output/host/usr/sbin/grub-bios-setup: info: reading
././output/images/grub.img.
./output/host/usr/sbin/grub-bios-setup: info: getting the size of
././output/images/grub.img.
./output/host/usr/sbin/grub-bios-setup: info: root is `(null)', dest is
`hostdisk//dev/sdc'.
./output/host/usr/sbin/grub-bios-setup: info: Opening dest.
./output/host/usr/sbin/grub-bios-setup: error: disk `hostdisk//dev/sdc' not
found.
lennart at OptiPlex ~/buildroot-2014.05 $
---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140627/408f629d/attachment.html>

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

end of thread, other threads:[~2014-07-01 20:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-27 10:32 [Buildroot] Is grub-bios-setup the way to go to make a bootable CF? Lennart Ramberg
2014-06-27 18:32 ` Thomas Petazzoni
2014-06-30  8:23   ` Lennart Ramberg
2014-06-30  9:49     ` Thomas Petazzoni
2014-06-30 19:53       ` Lennart Ramberg
2014-06-30 22:41         ` Thomas Petazzoni
2014-07-01  8:44     ` [Buildroot] [PATCH] grub2: Specify boot partition Jérôme Pouiller
2014-07-01  9:14       ` Thomas Petazzoni
2014-07-01  8:49     ` [Buildroot] Is grub-bios-setup the way to go to make a bootable CF? Jérôme Pouiller
2014-07-01 19:32       ` Lennart Ramberg
2014-07-01 19:56         ` Jérôme Pouiller
2014-07-01 20:16           ` Thomas Petazzoni

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