Config.in 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. config BR2_TARGET_GRUB
  2. bool "grub"
  3. depends on BR2_i386 || BR2_x86_64
  4. select BR2_HOSTARCH_NEEDS_IA32_COMPILER
  5. help
  6. The GRand Unified Bootloader for x86 systems.
  7. Some notes on creating a disk image with Grub installed:
  8. 1. Create an empty disk image
  9. dd if=/dev/zero of=disk.img bs=1M count=32
  10. 2. Create one primary partition
  11. cfdisk -h 16 -s 63 disk.img
  12. 3. Set up a loop device
  13. sudo losetup -f disk.img
  14. 4. Set up loop devices per partitions
  15. sudo partx -a /dev/loop0
  16. 5. Create the ext2 filesystem
  17. sudo mkfs.ext2 -L root /dev/loop0p1
  18. 6. Mount the filesystem
  19. mount /dev/loop0p1 /mnt
  20. 7. Extract the root filesystem
  21. sudo tar -C /mnt -xf output/images/rootfs.tar
  22. 8. Unmount the filesystem, clean up loop device
  23. sudo umount /mnt
  24. sudo partx -d /dev/loop0
  25. sudo losetup -d /dev/loop0
  26. 9. Install grub
  27. output/host/sbin/grub --device-map=/dev/null
  28. and in the grub shell, enter:
  29. device (hd0) disk.img
  30. geometry (hd0) <cylinders> 16 63
  31. root (hd0,0)
  32. setup (hd0)
  33. 10. Image is ready
  34. Can be tested in Qemu, with:
  35. qemu-system-{i386,x86-64} -hda disk.img
  36. if BR2_TARGET_GRUB
  37. config BR2_TARGET_GRUB_SPLASH
  38. bool "Splashimage support"
  39. help
  40. Add support for splashimage.
  41. A splashimage is a 14-color indexed .xpm picture which is
  42. displayed as background for the grub menu. See
  43. http://www.katspace.org/computers/Grub_Splash/ for details
  44. on how to generate a splashimage.
  45. config BR2_TARGET_GRUB_DISKLESS
  46. bool "diskless support"
  47. help
  48. enable diskless support
  49. menu "filesystem drivers"
  50. config BR2_TARGET_GRUB_FS_EXT2
  51. bool "ext2"
  52. default y
  53. help
  54. Enable support for the ext2 filesystem in Grub
  55. config BR2_TARGET_GRUB_FS_FAT
  56. bool "FAT"
  57. default y
  58. help
  59. Enable support for the FAT filesystem in Grub.
  60. config BR2_TARGET_GRUB_FS_ISO9660
  61. bool "ISO9660"
  62. help
  63. Enable support for the ISO9660 filesystem in Grub.
  64. config BR2_TARGET_GRUB_FS_JFS
  65. bool "IBM JFS"
  66. help
  67. Enable support for the JFS filesystem in Grub.
  68. config BR2_TARGET_GRUB_FS_REISERFS
  69. bool "ReiserFS"
  70. help
  71. Enable support for the ReiserFS filesystem in Grub.
  72. config BR2_TARGET_GRUB_FS_XFS
  73. bool "SGI XFS"
  74. help
  75. Enable support for the XFS filesystem in Grub.
  76. endmenu
  77. menu "network drivers"
  78. config BR2_TARGET_GRUB_3c595
  79. bool "3Com595 driver"
  80. help
  81. enable 3Com595 driver
  82. config BR2_TARGET_GRUB_3c90x
  83. bool "3Com90x driver"
  84. help
  85. enable 3Com90x driver
  86. config BR2_TARGET_GRUB_davicom
  87. bool "Davicom driver"
  88. help
  89. enable Davicom driver
  90. config BR2_TARGET_GRUB_e1000
  91. bool "Etherexpress Pro/1000 driver"
  92. help
  93. enable Etherexpress Pro/1000 driver
  94. config BR2_TARGET_GRUB_eepro100
  95. bool "Etherexpress Pro/100 driver"
  96. help
  97. enable Etherexpress Pro/100 driver
  98. config BR2_TARGET_GRUB_epic100
  99. bool "SMC 83c170 EPIC/100 driver"
  100. help
  101. enable SMC 83c170 EPIC/100 driver
  102. config BR2_TARGET_GRUB_forcedeth
  103. bool "Nvidia Geforce driver"
  104. help
  105. enable Nvidia Geforce driver
  106. config BR2_TARGET_GRUB_natsemi
  107. bool "NatSemi DP8381x driver"
  108. help
  109. enable NatSemi DP8381x driver
  110. config BR2_TARGET_GRUB_ns83820
  111. bool "NS83820 driver"
  112. help
  113. enable NS83820 driver
  114. config BR2_TARGET_GRUB_ns8390
  115. bool "NE2000 PCI driver"
  116. help
  117. enable NE2000 PCI driver
  118. config BR2_TARGET_GRUB_pcnet32
  119. bool "AMD Lance/PCI PCNet/32 driver"
  120. help
  121. enable AMD Lance/PCI PCNet/32 driver
  122. config BR2_TARGET_GRUB_pnic
  123. bool "Bochs Pseudo Nic driver"
  124. help
  125. enable Bochs Pseudo Nic driver
  126. config BR2_TARGET_GRUB_rtl8139
  127. bool "Realtek 8139 driver"
  128. help
  129. enable Realtek 8139 driver
  130. config BR2_TARGET_GRUB_r8169
  131. bool "Realtek 8169 driver"
  132. help
  133. enable Realtek 8169 driver
  134. config BR2_TARGET_GRUB_sis900
  135. bool "SIS 900 and SIS 7016 driver"
  136. help
  137. enable SIS 900 and SIS 7016 driver
  138. config BR2_TARGET_GRUB_tg3
  139. bool "Broadcom Tigon3 driver"
  140. help
  141. enable Broadcom Tigon3 driver
  142. config BR2_TARGET_GRUB_tulip
  143. bool "Tulip driver"
  144. help
  145. enable Tulip driver
  146. config BR2_TARGET_GRUB_tlan
  147. bool "TI ThunderLAN driver"
  148. help
  149. enable TI ThunderLAN driver
  150. config BR2_TARGET_GRUB_undi
  151. bool "PXE UNDI driver"
  152. help
  153. enable PXE UNDI driver
  154. config BR2_TARGET_GRUB_via_rhine
  155. bool "Rhine-I/II driver"
  156. help
  157. enable Rhine-I/II driver
  158. config BR2_TARGET_GRUB_w89c840
  159. bool "Winbond W89c840 driver"
  160. help
  161. enable Winbond W89c840 driver
  162. endmenu
  163. endif # BR2_TARGET_GRUB