Building patched grub

From TUDOS-Wiki
Revision as of 22:46, 24 November 2010 by Adam (talk | contribs) (Diff name fix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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