[3f01f60] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" |
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ |
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent"> |
---|
| 5 | %general-entities; |
---|
| 6 | ]> |
---|
| 7 | |
---|
| 8 | <sect1 id="ch-boot-building-a-bootloader" role="wrap"> |
---|
| 9 | <?dbhtml filename="building-a-bootloader.html"?> |
---|
| 10 | |
---|
| 11 | <title>Building a bootloader</title> |
---|
| 12 | |
---|
| 13 | <para>On x86 and x86_64 (multilib) architectures, the preferred |
---|
| 14 | bootloader is Grub. Unfortunately, Grub doesn"t work on x86_64 |
---|
| 15 | Pure64 - the stage2 files can be correctly built as 32-bit, but the |
---|
| 16 | grub shell is a 64-bit program, and tries to execute some of the |
---|
| 17 | stage2 routines - this results in a segmentation fault. Therefore, |
---|
| 18 | in the final system we use Lilo as the bootloader. |
---|
| 19 | </para> |
---|
| 20 | |
---|
| 21 | <para>If you already have a bootloader, such as Grub, installed on |
---|
| 22 | the system then you should use that to make your new kernel bootable. |
---|
| 23 | </para> |
---|
| 24 | |
---|
| 25 | <note> |
---|
| 26 | <para>We will now cross-compile Bin86 and Lilo - these instructions |
---|
| 27 | assume you are using an x86_64 machine (e.g. booted fron a Live CD), |
---|
| 28 | either pure64 or multilib. This approach will not work if you are |
---|
| 29 | running the machine as i686, because a 32-bit kernel will not be |
---|
| 30 | able to execute a 64-bit binary to install the bootloader. If that |
---|
| 31 | is the case, you will need to install an i686 bootloader on the |
---|
| 32 | host system. |
---|
| 33 | </para> |
---|
| 34 | </note> |
---|
| 35 | |
---|
| 36 | </sect1> |
---|