2014-11-18 23:49:29 +00:00
|
|
|
This directory contains the Grub 2.0 boot records that are used by Rufus
|
2014-11-17 23:41:46 +00:00
|
|
|
|
2020-09-16 12:59:06 +00:00
|
|
|
* boot.img and core.img were created from:
|
2021-07-27 17:10:29 +00:00
|
|
|
https://ftp.gnu.org/gnu/grub/grub-2.06.tar.xz
|
|
|
|
on a Debian 10.9 x64 system using the commands:
|
2020-09-16 12:59:06 +00:00
|
|
|
./autogen.sh
|
2021-07-27 17:10:29 +00:00
|
|
|
# --enable-boot-time for Manjaro Linux
|
2020-09-16 12:59:06 +00:00
|
|
|
./configure --disable-nls --enable-boot-time
|
2021-07-27 17:10:29 +00:00
|
|
|
make -j4
|
2020-09-16 12:59:06 +00:00
|
|
|
cd grub-core
|
2021-07-27 17:10:29 +00:00
|
|
|
../grub-mkimage -v -O i386-pc -d. -p\(hd0,msdos1\)/boot/grub biosdisk fat exfat ext2 ntfs ntfscomp part_msdos -o core.img
|
2014-11-18 23:49:29 +00:00
|
|
|
|
|
|
|
* boot.img has been modified to nop the jump @ 0x66 as per grub2's setup.c comments:
|
|
|
|
/* If DEST_DRIVE is a hard disk, enable the workaround, which is
|
|
|
|
for buggy BIOSes which don't pass boot drive correctly. Instead,
|
|
|
|
they pass 0x00 or 0x01 even when booted from 0x80. */
|
|
|
|
|
|
|
|
* Note that, for convenience reasons, the content of boot.img is *not* the one that
|
|
|
|
Rufus processes when writing the MBR.
|
|
|
|
Instead, the byte array from src/ms-sys/inc/mbr_grub2.h (whose content is identical)
|
|
|
|
is what Rufus uses. If you modify these files, be mindful that you may also need
|
|
|
|
to update the array in mbr_grub2.h.
|
|
|
|
|
|
|
|
* For details, see src/format.c, src/msys/br.c and src/msys/inc/mbr_grub2.h.
|