In this chapter we will see how to install the latest and greatest (and most unstable) kernel. Linux version 2.4 has been around for some months, and there is active development also on the PowerPC branch. To get a working kernel, we'll have to use a development tree with a lot of patches that hasn't got into Linus' official source yet. To state this explicitly: You may NOT use the official Linux 2.4 source tree, at least not without third party patches.
First we must get the working 2.4 source. To get this, we'll use the rsync tool, so check that you have it installed. Some nice people have set up an rsync server of the BitKeeper Linux/PPC development tree at source.mvista.com. Thanks so very much to them, remember them in your heart and prayers. Warning: Don't do this over a low-end link, like a modem. It'll take forever. So, let's rock and roll. Issue these commands:
cd /usr/src mv linux linux.old mkdir linux-2.4 ln -s linux-2.4 linux cd linux rsync -avz --delete source.mvista.com::linuxppc_2_4_devel . chown -R root.root . |
All right, so we have the source. Now, let's do some configuring, and then compile a brand new kernel.
make ibmchrp_config make menuconfig |
All done? Good. Now issue the usual command series to build the kernel:
make dep && make clean && make zImage && make modules && make modules_install |
To install the 2.4 kernel, we use the same method as with the 2.2 kernel. Note that the zImage has changed name and location in the source tree.
cp arch/ppc/boot/images/zImage.prep /boot/vmlinuz-2.4.9 cp System.map /boot/System.map-2.4.9 dd if=/boot/vmlinuz-2.4.9 of=/dev/sda1 |
head Makefile |