Difference between revisions of "CM-iGT: Linux: Kernel"
Line 1: | Line 1: | ||
− | + | == Overview == | |
− | : {{Note| | + | 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: | ||
+ | : {{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 == | ||
Line 8: | Line 50: | ||
[[Category:Linux |Kernel]] | [[Category:Linux |Kernel]] | ||
− | [[Category:CM- | + | [[Category:CM-iTC |Linux: Kernel]] |
Revision as of 10:30, 13 July 2014
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:
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