Building patched grub: Difference between revisions

From TUDOS-Wiki
Jump to navigationJump to search
No edit summary
m (Diff name fix)
 
Line 12: Line 12:
  tar xzf grub-0.97.tar.gz
  tar xzf grub-0.97.tar.gz
  cd grub-0.97
  cd grub-0.97
  zcat ../grub-0.97-os.7.diff.gz | patch -p0
  zcat ../grub-0.97-os.8.diff.gz | patch -p0


* configure and build patched grub (choose the NIC that fits your needs, <tt>./configure --help</tt> lists them)
* configure and build patched grub (choose the NIC that fits your needs, <tt>./configure --help</tt> lists them)

Latest revision as of 22:46, 24 November 2010

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