This bootloader is for the MIPS based cobalt servers RaQ, RaQ2, Qube, or the Qube2.
This patch updates the Colo bootloader to build under cross-compiled conditions:
patch -Np1 -i ../colo-1.22-make_fix-1.patch
This patch fixes a relocation error when linking with Binutils:
patch -Np1 -i ../colo-1.22-relocation_fix-1.patch
Compile the Colo package:
make CC="${CC}" CROSS_COMPILE="${CLFS_TARGET}-" binary
make CC="${CC}" CROSS_COMPILE="${CLFS_TARGET}-" tooldirs
Install the package:
install -v tools/lcdtools/e2fsck-lcd/e2fsck-lcd ${CLFS}/sbin
install -v tools/lcdtools/e2fsck-lcd/e2fsck-lcd.8 ${CLFS}/usr/man/man8
install -v tools/lcdtools/paneld/paneld ${CLFS}/sbin
install -v tools/lcdtools/paneld/paneld.8 ${CLFS}/usr/man/man8
install -v tools/lcdtools/putlcd/putlcd ${CLFS}/sbin
install -v tools/lcdtools/putlcd/putlcd.8 ${CLFS}/usr/man/man8
cp -v chain/colo-chain.elf ${CLFS}/boot/vmlinux
gzip -9 ${CLFS}/boot/vmlinux
Your shiny new CLFS system is almost complete. One of the last things to do is ensure you can boot it. The instructions below apply only to Cobalt RaQ1/RaQ2/Cube2 servers. Information on “boot loading” for other architectures should be available in the usual resource-specific locations for those architectures.
Boot loading can be a complex area, so a few cautionary words are in order. Be familiar with the current boot loader and any other operating systems present on the hard drive(s) that need to be bootable. Make sure that an emergency boot disk is ready to “rescue” the computer if the computer becomes unusable (un-bootable).
Earlier, we compiled and installed the Cobalt boot loader software in preparation for this step. Now we will configure our system to boot using Colo. Here is a simple default.colo to use.
cat > /boot/default.colo << EOF #:CoLo:# # # load linux # lcd 'Booting 2.6.19...' load vmlinux-2.6.19.gz execute root=/dev/hda2 console=ttyS0,115200 ide1=noprobe EOF
The FHS stipulates that the bootloader's configuration file should be symlinked to /etc/{Bootloader Name}. To satisfy this requirement for Colo, issue the following command:
mkdir -v ${CLFS}/etc/colo &&
ln -sv ../boot/colo/default.colo ${CLFS}/etc/colo
To help keep our system small Colo allows us to compress our kernel. The followings step will show you how to compress the kernel the way colo expects it:
gzip -9 ${CLFS}/boot/vmlinux-2.6.19