skyBuilders.com > Products > Network > How To Compile Kernel

The skyPipes Linux Kernel

The kernel is the foundation for skyWalls, skyPipes, skyMonitors, skyTunnels, and skyRoutes (policy-based and cost-based routing).

It is built on Linux kernel release 2.4.19 with Julian Anastasov's patches to allow static routes and alternative routes.

The build sequence includes the following steps.

  1. Download latest tarball for 2.4.19 kernel (linux-2.4.19.tar.bz2) from ftp.tux.org into /usr/src/linux-2.4.19 directory. Unbzip2. Untar (tar -xvf linux-2.4.19.tar).
  2. Download routes-2.4.19-8.diff patches from Julian Anastasov.
  3. Run /usr/src/linux # patch -p1 -b < routes-2.4.19-8.diff
  4. make clean (deletes object files, etc. from last compile)
  5. make mrproper (deletes .config file, among other things)
  6. startx
  7. make xconfig (saves result to /usr/src/linux-2.4.19/.config)
  8. load or edit skyPipes Kernel Configuration Settings into xconfig (edit as necessary, save, and save as config-2.4.19-skyPipes0.version#)
    It is also prudent to copy this file to the /boot/ partition for documetnation purposes.
  9. make dep (gets needed include files. etc.)
  10. make bzImage 2>compile_errs.txt
  11. make clean (optional)
  12. copy (implicitly renaming) bzImage /boot/vm-linuz-2.4.19/bzImage.img (why?). Also check the timestamp on the file, ensuring that it is fresh.
        cp /usr/src/linux-2.4.19/arch/i386/boot/bzImage /boot/vm-linuz-2.4.19
  13. Do a similar thing with the System.map as with the bzImage file
        cp /usr/src/linux-2.4.19/System.map /boot/System.map-2.4.19
  14. make install
  15. make modules_install
  16. new-kernel-pkg --install --mkinitrd --depmod (breaks if no modules)
  17. grep compile_errs.txt for err
  18. check GRUB file

skyPipes Kernel Configuration Settings

skyPipes References


Edit  |  workFlow  |  Subscribe
Language: fr  | it  | de  | es  | pt  | ar  | he  | da  | nl  | zh  | ja  | ko  | none 
Author: jesse
skyCalendar

This Version:
Archived at: https://www.skybuilders.com/Products/Network/HowToKernel.20020912144522.html
Next Version:

Requests
 Version: 1452 | Series: 30330 

Search: Site | Web | Groups