3 depends on BR2_i386 || BR2_x86_64
4 select BR2_HOSTARCH_NEEDS_IA32_COMPILER
6 The GRand Unified Bootloader for x86 systems.
8 Some notes on creating a disk image with Grub installed:
9 1. Create an empty disk image
10 dd if=/dev/zero of=disk.img bs=1M count=32
11 2. Create one primary partition
12 cfdisk -h 16 -s 63 disk.img
13 3. Set up a loop device
14 sudo losetup -f disk.img
15 4. Set up loop devices per partitions
16 sudo partx -a /dev/loop0
17 5. Create the ext2 filesystem
18 sudo mkfs.ext2 -L root /dev/loop0p1
19 6. Mount the filesystem
20 mount /dev/loop0p1 /mnt
21 7. Extract the root filesystem
22 sudo tar -C /mnt -xf output/images/rootfs.tar
23 8. Unmount the filesystem, clean up loop device
25 sudo partx -d /dev/loop0
26 sudo losetup -d /dev/loop0
28 output/host/sbin/grub --device-map=/dev/null
29 and in the grub shell, enter:
31 geometry (hd0) <cylinders> 16 63
35 Can be tested in Qemu, with:
36 qemu-system-{i386,x86-64} -hda disk.img
40 config BR2_TARGET_GRUB_SPLASH
41 bool "Splashimage support"
43 Add support for splashimage.
45 A splashimage is a 14-color indexed .xpm picture which is
46 displayed as background for the grub menu. See
47 http://www.katspace.org/computers/Grub_Splash/ for details
48 on how to generate a splashimage.
50 config BR2_TARGET_GRUB_DISKLESS
51 bool "diskless support"
53 enable diskless support
55 menu "filesystem drivers"
57 config BR2_TARGET_GRUB_FS_EXT2
61 Enable support for the ext2 filesystem in Grub
63 config BR2_TARGET_GRUB_FS_FAT
67 Enable support for the FAT filesystem in Grub.
69 config BR2_TARGET_GRUB_FS_ISO9660
72 Enable support for the ISO9660 filesystem in Grub.
74 config BR2_TARGET_GRUB_FS_JFS
77 Enable support for the JFS filesystem in Grub.
79 config BR2_TARGET_GRUB_FS_REISERFS
82 Enable support for the ReiserFS filesystem in Grub.
84 config BR2_TARGET_GRUB_FS_XFS
87 Enable support for the XFS filesystem in Grub.
91 menu "network drivers"
93 config BR2_TARGET_GRUB_3c595
98 config BR2_TARGET_GRUB_3c90x
101 enable 3Com90x driver
103 config BR2_TARGET_GRUB_davicom
104 bool "Davicom driver"
106 enable Davicom driver
108 config BR2_TARGET_GRUB_e1000
109 bool "Etherexpress Pro/1000 driver"
111 enable Etherexpress Pro/1000 driver
113 config BR2_TARGET_GRUB_eepro100
114 bool "Etherexpress Pro/100 driver"
116 enable Etherexpress Pro/100 driver
118 config BR2_TARGET_GRUB_epic100
119 bool "SMC 83c170 EPIC/100 driver"
121 enable SMC 83c170 EPIC/100 driver
123 config BR2_TARGET_GRUB_forcedeth
124 bool "Nvidia Geforce driver"
126 enable Nvidia Geforce driver
128 config BR2_TARGET_GRUB_natsemi
129 bool "NatSemi DP8381x driver"
131 enable NatSemi DP8381x driver
133 config BR2_TARGET_GRUB_ns83820
134 bool "NS83820 driver"
136 enable NS83820 driver
138 config BR2_TARGET_GRUB_ns8390
139 bool "NE2000 PCI driver"
141 enable NE2000 PCI driver
143 config BR2_TARGET_GRUB_pcnet32
144 bool "AMD Lance/PCI PCNet/32 driver"
146 enable AMD Lance/PCI PCNet/32 driver
148 config BR2_TARGET_GRUB_pnic
149 bool "Bochs Pseudo Nic driver"
151 enable Bochs Pseudo Nic driver
153 config BR2_TARGET_GRUB_rtl8139
154 bool "Realtek 8139 driver"
156 enable Realtek 8139 driver
158 config BR2_TARGET_GRUB_r8169
159 bool "Realtek 8169 driver"
161 enable Realtek 8169 driver
163 config BR2_TARGET_GRUB_sis900
164 bool "SIS 900 and SIS 7016 driver"
166 enable SIS 900 and SIS 7016 driver
168 config BR2_TARGET_GRUB_tg3
169 bool "Broadcom Tigon3 driver"
171 enable Broadcom Tigon3 driver
173 config BR2_TARGET_GRUB_tulip
178 config BR2_TARGET_GRUB_tlan
179 bool "TI ThunderLAN driver"
181 enable TI ThunderLAN driver
183 config BR2_TARGET_GRUB_undi
184 bool "PXE UNDI driver"
186 enable PXE UNDI driver
188 config BR2_TARGET_GRUB_via_rhine
189 bool "Rhine-I/II driver"
191 enable Rhine-I/II driver
193 config BR2_TARGET_GRUB_w89c840
194 bool "Winbond W89c840 driver"
196 enable Winbond W89c840 driver
200 endif # BR2_TARGET_GRUB