CM-iGT: Linux: Kernel

From Compulab Mediawiki
Revision as of 10:30, 13 July 2014 by Nadav (talk | contribs)
Jump to: navigation, search

Overview

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

  • linux_3.13.0.orig.tar.gz - mainline Linux 3.13.0 sources
  • linux_3.13.0-30.55.diff - Ubuntu patch
  • compulab.cm-igt.diff - CompuLab patch
  • config-3.13.0.30-compulab.cm-igt - CompuLab config file
  • Resulting .deb files are also included

Development

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

Admolition note.png Compile on a 64-bit machine with Ubuntu or LinuxMint on another compatible distro
  • 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/igt-linux/kernel
$ tar -xvzf linux_3.13.0.orig.tar.gz
$ cd linux-3.13
$ patch -p1 < ../patches/linux_3.13.0-30.55.diff
$ patch -p1 < ../patches/compulab.cm-igt.diff
$ cp ../config-3.13.0.30-compulab.cm-igt .config
  • Make your modifications and configure the new kernel
$ make menuconfig
optional: change CONFIG_LOCALVERSION="-compulab.cm-igt" to "-yourname.cm-igt"
  • 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-iGT
sudo dpkg -i linux-*.deb

See also