aboutsummaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorGravatar Jérôme Pouiller <jezz@sysmic.org>2014-07-02 17:56:50 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-23 23:42:28 +0200
commit0fe134f08280f0019403c41ac9573a233c94e3b5 (patch)
tree2b6b795f47e53514330c99b97103387d37ce1dc8 /boot
parent908198e756b4a75c19a31be493eeec66c7bb19d3 (diff)
downloadbuildroot-0fe134f08280f0019403c41ac9573a233c94e3b5.tar.gz
buildroot-0fe134f08280f0019403c41ac9573a233c94e3b5.tar.bz2
grub2: add a tip to create disk image w/o root permission
[Thomas: minor fixes/improvements.] Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'boot')
-rw-r--r--boot/grub2/Config.in28
1 files changed, 26 insertions, 2 deletions
diff --git a/boot/grub2/Config.in b/boot/grub2/Config.in
index a27c07ab7a..4e0d1d6a50 100644
--- a/boot/grub2/Config.in
+++ b/boot/grub2/Config.in
@@ -39,7 +39,30 @@ config BR2_TARGET_GRUB2
sudo losetup -d /dev/loop0
7. Your disk.img is ready!
- To test your BIOS image in Qemu:
+ Using genimage
+ --------------
+
+ If you use genimage to generate your complete image,
+ installing Grub can be tricky. Here is how to achieve Grub's
+ installation with genimage:
+
+ partition boot {
+ in-partition-table = "no"
+ image = "path_to_boot.img"
+ offset = 0
+ size = 512
+ }
+ partition grub {
+ in-partition-table = "no"
+ image = "path_to_grub.img"
+ offset = 512
+ }
+
+ The result is not byte to byte identical to what
+ grub-bios-setup does but it works anyway.
+
+ To test your BIOS image in Qemu
+ -------------------------------
qemu-system-{i386,x86-64} -hda disk.img
@@ -73,7 +96,8 @@ config BR2_TARGET_GRUB2
sudo losetup -d /dev/loop0
7. Your disk.img is ready!
- To test your EFI image in Qemu:
+ To test your EFI image in Qemu
+ ------------------------------
1. Download the EFI BIOS for Qemu
Version IA32 or X64 depending on the chosen Grub2