
FDI
NXP LPC3180 Demo
User’s Manual
FDI
Rev 2
Page 19
9/7/2007
7.0
Building Images in Linux
The following section explains the direct steps needed to compile the UBT files from
their standard sources.
7.1
Building U-Boot
Currently, a patch should be applied against the standard u-boot-1.1.1 release. This
release can be downloaded from
ftp://ftp.denx.de/pub/u-boot/u-boot-1.1.1.tar.bz2
.
Next, the tarfile should be unzipped/extracted and the included patch applied to the
source:
tar jxvf u-boot-1.1.1.tar.bz2
cd u-boot-1.1.1
patch –p1 < ../path/to/u-boot-1.1.1-lpc3180_FDI.patch
To compile U-boot, enter these commands (requires gnu arm-tools installed in
/usr/local/arm/gnu):
export PATH=$PATH:/usr/local/arm/gnu/release-3.4.0-vfp/bin/arm-
linux-gcc
export ARCH=arm
export CROSS_COMPILE=arm-linux-
make distclean
make lpc3180db_config
make
make u-boot.axf
./tools/mkimage -A arm -O u-boot -T Firmware -C none -a 81EC0000 -e
81EC0000 –n “NXP Demo U-Boot v0.01” -d u-boot.bin uboot.ubt
7.2
Building the Linux Kernel
Currently, the patch provided should be applied against the vanilla linux-2.6.10 kernel.
Therefore, this tree should be downloaded from
www.kernel.org
. Next, the tarfile
should be unzipped/extracted and the included patch applied to the source:
tar zxvf linux-2.6.10.tar.gz
cd linux-2.6.10
patch –p1 < ../path/to/linux-2.6.10-lpc3180_FDI.patch
To compile the kernel, use the following commands (requires gnu arm-tools installed in
/usr/local/arm/gnu):
export PATH=$PATH:/usr/local/arm/gnu/release-3.4.0-vfp/bin/arm-
linux-gcc
export ARCH=arm
export CROSS_COMPILE=arm-linux-
source ./setup_links
make clean
make lpc3000evb_defconfig
make
make uImage
Summary of Contents for LP3180
Page 39: ...FDI NXP LPC3180 Demo User s Manual FDI Rev 2 Page 39 9 7 2007...
Page 40: ......