Friday, August 22, 2008

ARM RealView PB11MPCore (1) - Compile

Install Toolchain
[ ]# mkdir -p /home/MPCore/toolchain
[ ]# cd /home/MPCore/toolchain
[ ]# wget http://www.arm.com/linux/arm-2007q1-21-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
[ ]# tar jxvf arm-2007q1-21-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
[ ]# export PATH=/home/MPCore/toolchain/arm-2007q1/bin:$PATH

u-boot
[ ]# mkdir -p /home/MPCore/u-boot
[ ]# cd /home/MPCore/u-boot
[ ]# wget http://www.arm.com/linux/U-Boot-src.tar.gz
[ ]# tar zxvf U-Boot-src.tar.gz
[ ]# cd projects/prd33_ael/overnight/src/
[ ]# make realview_pb11mp_config
[ ]# make

Linux Kernel 2.6.24-arm2

[ ]# mkdir -p /home/MPCore/linux
[ ]# cd /home/MPCore/linux
[ ]# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2
[ ]# ;; Download kernel_src_patch-2.6.24-arm2.gz
[ ]# ;; Download default linux kernel configuration file

[ ]# tar jxvf linux-2.6.24.tar.bz2
[ ]# cd linux-2.6.24
[ ]# zcat ../kernel_src_patch-2.6.24-arm2.gz | patch -p1
[ ]# cp ../config-2.6.24-arm2-realview-v6-smp .config
[ ]# make menuconfig
[ ]# make
[ ]# make uImage

After the build has completed, the resulting uImage will be located in the arch/arm/boot directory.

Image Name: Linux-2.6.24-arm2
Created: Fri Aug 22 05:09:41 2008
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1684912 Bytes = 1645.42 kB = 1.61 MB
Load Address: 0x00008000
Entry Point: 0x00008000
Image arch/arm/boot/uImage is ready

Root File System
Download source code, pre-built filesystem images (full or base)
[ ]# wget http://www.arm.com/linux/ARM_Embedded_Linux-2.5.0.tar.bz2
[ ]# wget http://www.arm.com/linux/armfull_2.5.cramfs
[ ]# wget http://www.arm.com/linux/armbase_2.5.cramfs

No comments: