Table of Content
How to Build the Letux Kernel from Source
Introduction
This describes briefly how to compile the hardware validation kernel from git source. You need to have some ARM cross compiler installed on your host.
Details
Get sources by:
git clone git@github.com:goldelico/gta04-kernel.git
cd gta04-kernel/
git checkout hw-validation
Build:
export ARCH=arm
export CROSS_COMPILE=arm-angstrom-linux-gnueabi- # adapt to your toolchain
make distclean
make omap3_gta04_defconfig modules
make menuconfig # only needed if you want to change the default configuration
make uImage
make modules
export INSTALL_MOD_PATH=`pwd`/install
mkdir install
make modules_install
cd install/ && tar czvf ../modules.tgz .
The result will be the file arch/arm/boot/uImage. Copy this file to the FAT partition of your SD card.
Patches
Patches should follow these guidelines.
Cross compiling toolchain
Under Debian, the most simple way to set up a toolchain for cross compiling for arm is by using the emdebian cross-compiler.
apt-get install emdebian-archive-keyring
echo deb http://www.emdebian.org/debian/ squeeze main >> /etc/apt/sources.list
apt-get update
apt-get install gcc-4.4-arm-linux-gnueabi
export ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-