Changes between Initial Version and Version 1 of bootloaders/syslinux


Ignore:
Timestamp:
Jan 7, 2009, 7:20:18 PM (15 years ago)
Author:
Jim Gifford
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • bootloaders/syslinux

    v1 v1  
     1= Extlinux for CLFS Builds =
     2
     3== Needed Files ==
     4Syslinux [[http://www.kernel.org/pub/linux/utils/boot/syslinux/Testing/syslinux-3.73-pre7.tar.bz2]][[BR]]
     5
     6Everything below is only Needed if your following the boot method of the build.
     7
     8NASM [[http://voxel.dl.sourceforge.net/sourceforge/nasm/nasm-2.05.01.tar.bz2]][[BR]]
     9
     10== Changes for Cross-Tools Section ==
     11
     12This build is only required if your using the Boot Method of the build.
     13
     14=== Build Nasm ===
     15
     16./configure --prefix=/cross-tools &&[[BR]]
     17make &&[[BR]]
     18make install[[BR]]
     19
     20== Changes for Boot Section ==
     21
     22This build is only required if your using the Boot Method of the build.
     23You can also skip the building of Grub or Lilo.
     24
     25=== Build Syslinux ===
     26
     27make CROSS_COMPILE=${CLFS_TARGET}- installer&&[[BR]]
     28install -d -m 755 /cross-tools/usr/bin&&[[BR]]
     29install -m 755 mtools/syslinux /cross-tools/usr/bin&&[[BR]]
     30install -d -m 755 /cross-tools/sbin&&[[BR]]
     31install -m 755 extlinux/extlinux /cross-tools/sbin&&[[BR]]
     32install -d -m 755 /cross-tools/usr/share/syslinux&&[[BR]]
     33install -m 644 mbr/mbr.bin /cross-tools/usr/share/syslinux[[BR]]
     34
     35=== Configure Extlinux ===
     36
     37First we erase the current MBR on the disk, next we will install the MBR for Extlinux on
     38the Primary Boot rive. I will assume the Primary Boot Drive is /dev/sda.[[BR]]
     39
     40dd if=/dev/zero of=/dev/sda bs=446 count=1[[BR]]
     41dd if=/cross-tools/usr/share/syslinux/mbr.bin of=/dev/sda[[BR]]
     42
     43Second we will installed the Extlinux.sys file for bootup. This is the bootloader.[[BR]]
     44install -d ${CLFS}/boot[[BR]]
     45extlinux --install ${CLFS}/boot[[BR]]
     46
     47Now we will create our extlinux.conf file. Change root_device to your root partition of your
     48Primary Boot Drive.[[BR]]
     49
     50cat >> ${CLFS}/boot/extlinux.conf << "EOF"[[BR]]
     51default boot[[BR]]
     52prompt 0[[BR]]
     53timeout 10[[BR]]
     54[[BR]]
     55label boot[[BR]]
     56        kernel clfskernel-boot[[BR]]
     57        append rw root=root_device[[BR]]
     58EOF[[BR]]
     59
     60== Changes for Final-System Section ==
     61
     62=== Build Nasm ===
     63
     64./configure --prefix=/usr&&[[BR]]
     65make &&[[BR]]
     66make install[[BR]]
     67
     68
     69=== Build Syslinux ===
     70
     71Now we will build the final version of the Syslinux, and we will copy the menu.c32 file
     72over so we can have a menu at bootup.
     73
     74make installer&&[[BR]]
     75make install&&[[BR]]
     76cp -ar /usr/share/syslinux/menu.c32 /boot[[BR]]
     77
     78=== Configure Extlinux ===
     79
     80First we erase the current MBR on the disk, next we will install the MBR for Extlinux on
     81the Primary Boot rive. I will assume the Primary Boot Drive is /dev/sda. We repeat this
     82step from above. Reinstalling this ensures us that we are using the currently built
     83version of the file. When Syslinux is cross-compiled, some files are not made and
     84the premade ones are. This will ensure that we use the ones we just built.[[BR]]
     85
     86dd if=/dev/zero of=/dev/sda bs=446 count=1[[BR]]
     87dd if=/usr/share/syslinux/mbr.bin of=/dev/sda[[BR]]
     88
     89Second we will installed the Extlinux.sys file for bootup. This is the bootloader.[[BR]]
     90extlinux --install /boot[[BR]]
     91
     92Now we will create our extlinux.conf file. Change root_device to your root partition of your
     93Primary Boot Drive.[[BR]]
     94
     95cat >> /boot/extlinux.conf << "EOF"[[BR]]
     96default menu.c32[[BR]]
     97prompt 0[[BR]]
     98menu title CLFS Boot Menu[[BR]]
     99[[BR]]
     100timeout 60[[BR]]
     101[[BR]]
     102label linux[[BR]]
     103        menu label CLFS Kernel {kernel_version}[[BR]]
     104        menu default[[BR]]
     105        kernel clfskernel-{kernel_version}[[BR]]
     106        append rw root=root_device[[BR]]
     107[[BR]]
     108label boot[[BR]]
     109        menu label CLFS Boot Stage Kernel[[BR]]
     110        kernel clfskernel-boot[[BR]]
     111        append rw root=root_device[[BR]]
     112EOF[[BR]]
     113