Compiling a 2.6 kernel

From Nuclear Physics Group Documentation Pages
Revision as of 05:16, 27 August 2009 by Maurik (talk | contribs)
Jump to navigationJump to search

Making a custom 2.6 kernel for the TS-7260

curl -O ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7200-linux/sources/tskernel-2.6.21-ts-src.tar.gz
tar -zxvf tskernel-2.6.21-ts-src.tar.gz
cd linux-2.6.21-ts
edit the Makefile:

  • ARCH ?= arm
  • CROSS_COMPILE ?= /usr/local/arm-linux-gnu/bin/arm-linux-gnu-
 make ts72xx_defconfig 

If you want, you can edit the default options:

 make menuconfig  

then make the kernel

make
make zImag 
make modules 

The final product is found in "arch/arm/boot" and is called "zImage". You can now copy all the modules to TARGET_DIR with:

make modules_install INSTALL_MOD_PATH=TARGETDIR