CM-iTC: Linux: Kernel

From Compulab Mediawiki
Jump to: navigation, search


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 patch
  • - CompuLab config file
  • Resulting .deb files also included


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/
$ cp ../ .config
  • Make your modifications and configure the new kernel
$ make menuconfig
optional: change CONFIG_LOCALVERSION="" to ""
  • 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
  • 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