2005-06-23 07:09:05 +02:00
|
|
|
config BR2_TARGET_GRUB
|
2005-09-09 02:12:13 +02:00
|
|
|
bool "grub"
|
2006-11-17 12:47:04 +01:00
|
|
|
depends on BR2_i386 || BR2_x86_64
|
2013-11-11 17:47:28 +01:00
|
|
|
select BR2_HOSTARCH_NEEDS_IA32_COMPILER
|
2005-06-23 07:09:05 +02:00
|
|
|
help
|
|
|
|
The GRand Unified Bootloader for x86 systems.
|
2006-03-18 14:07:29 +01:00
|
|
|
|
2013-11-11 17:47:34 +01:00
|
|
|
Some notes on creating a disk image with Grub installed:
|
|
|
|
1. Create an empty disk image
|
|
|
|
dd if=/dev/zero of=disk.img bs=1M count=32
|
|
|
|
2. Create one primary partition
|
|
|
|
cfdisk -h 16 -s 63 disk.img
|
|
|
|
3. Set up a loop device
|
|
|
|
sudo losetup -f disk.img
|
|
|
|
4. Set up loop devices per partitions
|
|
|
|
sudo partx -a /dev/loop0
|
|
|
|
5. Create the ext2 filesystem
|
|
|
|
sudo mkfs.ext2 -L root /dev/loop0p1
|
|
|
|
6. Mount the filesystem
|
|
|
|
mount /dev/loop0p1 /mnt
|
|
|
|
7. Extract the root filesystem
|
|
|
|
sudo tar -C /mnt -xf output/images/rootfs.tar
|
|
|
|
8. Unmount the filesystem, clean up loop device
|
|
|
|
sudo umount /mnt
|
|
|
|
sudo partx -d /dev/loop0
|
|
|
|
sudo losetup -d /dev/loop0
|
|
|
|
9. Install grub
|
|
|
|
output/host/sbin/grub --device-map=/dev/null
|
|
|
|
and in the grub shell, enter:
|
|
|
|
device (hd0) disk.img
|
|
|
|
geometry (hd0) <cylinders> 16 63
|
|
|
|
root (hd0,0)
|
|
|
|
setup (hd0)
|
|
|
|
10. Image is ready
|
|
|
|
Can be tested in Qemu, with:
|
|
|
|
qemu-system-{i386,x86-64} -hda disk.img
|
|
|
|
|
2013-11-11 17:47:27 +01:00
|
|
|
if BR2_TARGET_GRUB
|
|
|
|
|
2006-03-18 14:07:29 +01:00
|
|
|
config BR2_TARGET_GRUB_SPLASH
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "Splashimage support"
|
2006-03-18 14:07:29 +01:00
|
|
|
help
|
|
|
|
Add support for splashimage.
|
2011-09-18 22:09:42 +02:00
|
|
|
|
2006-03-18 14:07:29 +01:00
|
|
|
A splashimage is a 14-color indexed .xpm picture which
|
|
|
|
is displayed as background for the grub menu.
|
|
|
|
|
2013-11-11 17:47:33 +01:00
|
|
|
config BR2_TARGET_GRUB_FS_SUPPORT
|
|
|
|
string "Filesystem to support"
|
|
|
|
default "ext2fs fat"
|
|
|
|
help
|
|
|
|
Space separated list of filesystems to support. Possible
|
|
|
|
values are ext2fs, fat, ffs, ufs2, minix, reiserfs, vstafs,
|
|
|
|
jfs, xfs and iso9660.
|
|
|
|
|
2007-01-29 19:34:37 +01:00
|
|
|
config BR2_TARGET_GRUB_DISKLESS
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "diskless support"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable diskless support
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_3c595
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "3Com595 driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable 3Com595 driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_3c90x
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "3Com90x driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable 3Com90x driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_davicom
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "Davicom driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable Davicom driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_e1000
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "Etherexpress Pro/1000 driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable Etherexpress Pro/1000 driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_eepro100
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "Etherexpress Pro/100 driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable Etherexpress Pro/100 driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_epic100
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "SMC 83c170 EPIC/100 driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable SMC 83c170 EPIC/100 driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_forcedeth
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "Nvidia Geforce driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable Nvidia Geforce driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_natsemi
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "NatSemi DP8381x driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable NatSemi DP8381x driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_ns83820
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "NS83820 driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable NS83820 driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_ns8390
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "NE2000 PCI driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable NE2000 PCI driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_pcnet32
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "AMD Lance/PCI PCNet/32 driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable AMD Lance/PCI PCNet/32 driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_pnic
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "Bochs Pseudo Nic driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable Bochs Pseudo Nic driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_rtl8139
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "Realtek 8139 driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable Realtek 8139 driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_r8169
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "Realtek 8169 driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable Realtek 8169 driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_sis900
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "SIS 900 and SIS 7016 driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable SIS 900 and SIS 7016 driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_tg3
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "Broadcom Tigon3 driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable Broadcom Tigon3 driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_tulip
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "Tulip driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable Tulip driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_tlan
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "TI ThunderLAN driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable TI ThunderLAN driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_undi
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "PXE UNDI driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable PXE UNDI driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_via_rhine
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "Rhine-I/II driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable Rhine-I/II driver
|
|
|
|
|
|
|
|
config BR2_TARGET_GRUB_w89c840
|
2007-01-29 23:12:53 +01:00
|
|
|
bool "Winbond W89c840 driver"
|
2007-01-29 19:34:37 +01:00
|
|
|
help
|
|
|
|
enable Winbond W89c840 driver
|
2013-11-11 17:47:27 +01:00
|
|
|
|
|
|
|
endif # BR2_TARGET_GRUB
|