Difference between revisions of "Building patched grub"

From TUDOS-Wiki
Jump to navigationJump to search
(New page: This is just a small howto for building a grub with Adam's patches. Although this information is also inside the <tt>README</tt>'s, the wiki seems to be the first place where folks might l...)
 
Line 7: Line 7:
 
* download the grub source package and Adam's latest patches
 
* download the grub source package and Adam's latest patches
 
  wget ftp://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz
 
  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.7.diff.gz
+
  wget http://os.inf.tu-dresden.de/~adam/grub/0.97/grub-0.97-os.8.diff.gz
  
 
* unpack sources and apply patches
 
* unpack sources and apply patches

Revision as of 19:57, 10 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.7.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