Changes between Version 12 and Version 13 of Building/Grub


Ignore:
Timestamp:
Mar 18, 2016, 6:40:03 AM (4 years ago)
Author:
Chris Johns
Comment:

Fix formatting

Legend:

Unmodified
Added
Removed
Modified
  • Building/Grub

    v12 v13  
    55
    66Download the latest release of version 2 the [http://www.gnu.org/software/grub/index.html Grub boot loader] from [ftp://ftp.gnu.org/gnu/grub the ftp], [ftp://alpha.gnu.org/gnu/grub/ another ftp] or, you can check out the developer branch using bzr. Remember to run autogen when checking out the development branch...
     7
     8{{{
    79 $ sudo apt-get install bzr bison libdevmapper-dev libfreetype6-dev autogen
    810 $ bzr branch http://bzr.savannah.gnu.org/r/grub/trunk/grub
    911 $ cd grub
    1012 $ ./autogen.sh
     13}}}
    1114
    1215Build the package with the following configure command:
    13 
     16{{{
    1417  $ ../grub-1.94/configure --prefix=/tmp/g2/build
    1518  $ make all install
    16 
     19}}}
    1720where the prefix can be anything suitable for your machine. If configure fails with a missing LZO library check you have the lzo-devel package installed.
    1821
    1922To make the floppy image follow the instructions in the Grub Wiki at http://grub.enbug.org/TestingOnX86. This script is adapted from the instructions:
    20 
     23{{{
    2124 #! /bin/sh -x
    2225 grub=/tmp/g2/build
     
    3942 rm -f tmp_device.map
    4043 umount $mnt
    41 =  Grub2  =
     44}}}
     45
     46= Grub2 =
    4247
    4348Most of method of the previous is mostly based on grub legacy. And most Linux distributions have updated to Grub2. So in the following, we just introduce how to build a i386 simulation environment based on Grub2 and QEMU.