kerneldev
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
kerneldev [2012/07/03 17:53] – Instructions for patching the stock Ubuntu kernel turbooster | kerneldev [2014/06/21 18:57] (current) – [Mainline Git Kernel] santox | ||
---|---|---|---|
Line 142: | Line 142: | ||
apt-get source linux-ac100 | apt-get source linux-ac100 | ||
cd linux-ac100-3.0.27/ | cd linux-ac100-3.0.27/ | ||
- | make paz00_defconfig | ||
</ | </ | ||
+ | Now if you want the original Ubuntu config do | ||
+ | < | ||
+ | If you want the standrad ac100 config instead do: | ||
+ | < | ||
Apply patches if wanted. In this example I use gordans overclocking patches from [[http:// | Apply patches if wanted. In this example I use gordans overclocking patches from [[http:// | ||
< | < | ||
Line 153: | Line 156: | ||
make -j3 modules_install | make -j3 modules_install | ||
cp arm/ | cp arm/ | ||
+ | cp .config / | ||
</ | </ | ||
Get the bootimg.cfg | Get the bootimg.cfg | ||
- | < | + | < |
Adjust the bootimg.cfg to your needs. Most importantly giving it a cool greeting text of course! | Adjust the bootimg.cfg to your needs. Most importantly giving it a cool greeting text of course! | ||
Line 183: | Line 187: | ||
Reboot. | Reboot. | ||
+ | ===== 3.10.x Kernel series ===== | ||
+ | 3.10 build process is close to 3.0 for-next. | ||
+ | Device-tree is mandatory, you need to build it and concatenate with a kernel: | ||
+ | < | ||
+ | make dtbs | ||
+ | cat arch/ | ||
+ | </ | ||
+ | But 3.10 don't use paz00_defconfig anymore. Instead is uses tegra_defconfig (main idea of device-tree is to have all-in-one kernel and choose drivers on boot time using device-tree): | ||
+ | < | ||
+ | |||
+ | ===== Mainline Git Kernel ===== | ||
+ | From 3.15, AC100 finally boots the official mainline kernel ! | ||
+ | To succesfully cross-compile it, i used linaro precompiled toolchain [[http:// | ||
+ | |||
+ | wget http:// | ||
+ | |||
+ | extract it somewhere, and export install path so the toolchain can be found: | ||
+ | tar xvf gcc-linaro-arm-linux-gnueabihf-4.9-2014.05_linux.tar.xz | ||
+ | export PATH=$PATH: | ||
+ | |||
+ | Now you have to clone the kernel git repository: | ||
+ | git clone git:// | ||
+ | cd linux | ||
+ | | ||
+ | As already described above, configure && make && install and your kernel is ready! | ||
+ | make tegra_defconfig ARCH=arm | ||
+ | make zImage modules dtbs INSTALL_MOD_PATH=/ | ||
+ | make modules_install INSTALL_MOD_PATH=/ | ||
+ | |||
+ | Copy everything you need in a folder (to copy on SD or USB key and put into AC100) | ||
+ | mkdir ~/ | ||
+ | mv /tmp/lib/ ~/ | ||
+ | cp arch/ | ||
+ | cp arch/ | ||
+ | |||
==== Kernel Debugging ==== | ==== Kernel Debugging ==== | ||
kerneldev.txt · Last modified: 2014/06/21 18:57 by santox