Difference between revisions of "CM-iGT: Linux: Kernel"

From Compulab Mediawiki
Jump to: navigation, search
 
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
The current release is based on a generic Ubuntu kernel 3.13.0 with a few modifications made by CompuLab.
+
The current release is based on a generic Ubuntu kernel 3.16.0 with a few modifications made by CompuLab.
 
The package include the following:
 
The package include the following:
* linux_3.13.0.orig.tar.gz - mainline Linux 3.13.0 sources
+
* linux_3.16.0.orig.tar.gz - mainline Linux 3.16.0 sources
* linux_3.13.0-30.55.diff - Ubuntu patch
+
* linux_3.16.0-51.69.diff - Ubuntu patch
* compulab.cm-igt.diff - CompuLab patch
+
* compulab.3.16.0-cm-igt.diff - CompuLab patch
* config-3.13.0.30-compulab.cm-igt - CompuLab config file
+
* config-3.16.0-51-compulab.cm-igt - CompuLab config file
 
* Resulting .deb files are also included
 
* Resulting .deb files are also included
  
 
== Development ==
 
== Development ==
You can change the kernel and compile your own .deb files:
+
The kernel can be recompiled with necessary changes as described on [[Linux: Kernel development for x86 modules | Kernel development for x86 modules]]
: {{Note|Compile on a 64-bit machine with Ubuntu or LinuxMint on another compatible distro}}
 
* Install the programs and tools required for kernel building
 
<pre>
 
$ sudo apt-get install libncurses5 libncurses5-dev kernel-package
 
</pre>
 
* Prepare sources, apply patches and setup config file
 
<pre>
 
$ 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
 
</pre>
 
* Make your modifications and configure the new kernel
 
<pre>
 
$ make menuconfig
 
optional: change CONFIG_LOCALVERSION="-compulab.cm-igt" to "-yourname.cm-igt"
 
</pre>
 
* 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
 
<pre>
 
$ export CONCURRENCY_LEVEL=8
 
</pre>
 
* Compile the kernel and create the .deb packages
 
<pre>
 
$ 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
 
</pre>
 
* The linux-image-*.deb and linux-headers-*.deb packages are created in the parent directory
 
* Install new .deb packages on the CM-iGT
 
<pre>
 
sudo dpkg -i linux-*.deb
 
</pre>
 
  
 
== See also ==
 
== See also ==
 
* [[CM-iGT: Linux: Getting started|Getting started with Linux on CM-iGT]]
 
* [[CM-iGT: Linux: Getting started|Getting started with Linux on CM-iGT]]
 
* [[CM-iGT: Linux: Mint|Linux Mint for CM-iGT]]
 
* [[CM-iGT: Linux: Mint|Linux Mint for CM-iGT]]
 +
* [[CM-iGT_Linux|Linux for CM-iGT]]
  
  
 
[[Category:Linux |Kernel]]
 
[[Category:Linux |Kernel]]
[[Category:CM-iTC |Linux: Kernel]]
+
[[Category:CM-iGT |Linux: Kernel]]

Latest revision as of 13:31, 29 October 2015

Overview

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

  • linux_3.16.0.orig.tar.gz - mainline Linux 3.16.0 sources
  • linux_3.16.0-51.69.diff - Ubuntu patch
  • compulab.3.16.0-cm-igt.diff - CompuLab patch
  • config-3.16.0-51-compulab.cm-igt - CompuLab config file
  • Resulting .deb files are also included

Development

The kernel can be recompiled with necessary changes as described on Kernel development for x86 modules

See also