CM-iTC: Linux: Kernel

From Compulab Mediawiki
Jump to: navigation, search

Overview

The current release is based on a generic Ubuntu kernel 3.2.0 with a few modifications made by CompuLab. The package include the following:

  • linux_3.2.0.orig.tar.gz - mainline Linux 3.2.0 sources
  • linux_3.2.0-38.61.diff - Ubuntu patch
  • compulab.cm-itc.diff - CompuLab patch
  • config-3.2.37-compulab.cm-itc - CompuLab config file
  • Resulting .deb files also included

Development

You can change the kernel and compile your own .deb files:

Admolition note.png Compile on a 32-bit machine or setup a 32-bit compilation environment on a 64-bit machine
  • Install the programs and tools required for kernel building
$ sudo apt-get install libncurses5 libncurses5-dev kernel-package
  • Prepare sources, apply patches and setup config file
$ cd /path/to/itc-linux/kernel/linux-3.2
$ patch -p1 < ../patches/linux_3.2.0-38.61.diff
$ patch -p1 < ../patches/compulab.cm-itc.diff
$ cp ../config-3.2.37-compulab.cm-itc .config
  • Make your modifications and configure the new kernel
$ make menuconfig
optional: change CONFIG_LOCALVERSION="-compulab.cm-itc" to "-yourname.cm-itc"
  • If you have a more than one processor or more than one core, you can speed things up by running concurrent compile commands. Setup CONCURRENCY_LEVEL=8 for 8 cores
$ export CONCURRENCY_LEVEL=8
  • Compile the kernel and create the .deb packages
$ fakeroot make-kpkg --initrd --revision=10.00 kernel_image kernel_headers
optional: change revision=10.00 to another custom string, it will appear as part of the .deb file
  • The linux-image-*.deb and linux-headers-*.deb packages are created in the parent directory
  • Install new .deb packages on the CM-iTC
sudo dpkg -i linux-*.deb

See also