Building patched grub

From TUDOS-Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This is just a small howto for building a grub with Adam's patches. Although this information is also inside the README's, the wiki seems to be the first place where folks might look at. Here we go:

  • create directory and cd into it
mkdir ./grub
cd grub
  • download the grub source package and Adam's latest patches
wget ftp://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz
wget http://os.inf.tu-dresden.de/~adam/grub/0.97/grub-0.97-os.8.diff.gz
  • unpack sources and apply patches
tar xzf grub-0.97.tar.gz
cd grub-0.97
zcat ../grub-0.97-os.8.diff.gz | patch -p0
  • configure and build patched grub (choose the NIC that fits your needs, ./configure --help lists them)
./configure --enable-diskless --enable-pxe (--enable-rtl8139) (--enable-eepro100) (--enable-...)
make
  • the final pxegrub binary can be found in stage2/pxegrub