GESBC-9G20i
User’s
Manual
Version 0.2
Page 20 of 21
20-Sep-13
above command can be included in the shell resource file so it is executed every time you
login. For bash shell, a good place to put is in .bashrc in your home directory.
Compile Linux Kernel
The GESBC-9G20i is shipped with Linux kernel version 2.6.27. The patch for the kernel source
tree is available at
http://www.linux4sam.org/twiki/bin/view/Linux4SAM/LinuxKernel
.
Prepare Linux Kernel source
Obtain the kernel source 2.6.27 from http://www.kernel.org. Untar the Linux kernel,
tar xjf linue-2.6.27.bz2
Patch the kernel source with patches for Atmel AT91SAM9G20-EK,
patch –p1 < /<patch-file-directory-path>/patch_file_name
Configure Linux Kernel
The GESBC-9G20i can use the default configuration file for the Atmel AT91SAM9G20-ek
evaluation board.
make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu-
AT91SAM9G20ek_defconfig
If additional configuration is required, executing the following command in the Linux kernel
directory,
make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu- menuconfig
If problem occurs, make sure the default PATH variable is set to the correct tool chain directory
Compile Kernel
Once Linux kernel has been configured, it can be compiled using following command
1
,
make
ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnu-
u
Image
The Linux kernel should compile without error and the image file will be created.
1
The U-boot tool mkimage must be pre-installed in order to make final uImage.