Document:	Building Linux image

Copyright (c) 2007, Voipac Technologies a.s.


Download latest diff files, apropriate config and kernel sources.

bash$> wget http://www.voipac.com/downloads/pxa/270/dimm/src/linux/linux-2.6.27-vpac1-diff.txt
bash$> wget http://www.voipac.com/downloads/pxa/270/dimm/src/linux/linux-2.6.27-vpac1-256-diff.txt
bash$> wget http://voipac.com/downloads/pxa/270/dimm/src/linux/config-linux-2.6.27-vpac1.txt
bash$> wget http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.tar.bz2

Unpack kernel source tree and apply patch files one by other.

bash$> tar xjfv linux-2.6.27.tar.bz2
bash$> cd linux-2.6.27/
bash$> patch -p1 < ../linux-2.6.27-vpac1-diff.txt
bash$> patch -p1 < ../linux-2.6.27-vpac1-256-diff.txt

Copy config file and run menuconfig, modify selections if necessary, exit and save.

bash$> cp ../config-linux-2.6.27-vpac1.txt .config

bash$> export PATH=$PATH:/usr/local/arm/3.4.1/bin/
bash$> make menuconfig

set CONFIG_ZBOOT_ROM_BSS=0x80800000

Compile Linux image, ensure you have installed GCC toolchain.

bash$> make

The resulting image is in architecture specific subdirectory.

bash$> ls -la arch/arm/boot/zImage
-rwxr-xr-x  1 root root 906920 Apr 13 00:55 arch/arm/boot/zImage