Here's the instructions for how to build u-boot for FriendlyARM QQ2440V3:
You'll need svn(subrevision,
http://subversion.tigris.org/) and quilt tool (
http://savannah.nongnu.org/projects/quilt) installed on the development PC
1. Install Cross Compile Toolchain from Pokylinux.org
$wget
http://pokylinux.org/releases/pinky-3.1/poky-eabi-glibc-i686-arm-toolchain-pinky-3.1.tar.bz2$tar jxvf poky-eabi-glibc-i686-arm-toolchain-pinky-3.1.tar.bz2 -C /
2. Get u-boot source code against which the QQ2440 patches are generated:
Get u-boot soruce tar ball from U-boot project FTP:
$wget
ftp://ftp.denx.de/pub/u-boot/u-boot-1.3.2-rc1.tar.bz2$tar jxvf u-boot-1.3.2-rc1.tar.bz2
3. Get QQ2440 u-boot patch from opencsbc via svn
$svn co
https://opencsbc.svn.sourceforge.net/svnroot/opencsbc opencsbc
4. patch u-boot with opencsbc patch for QQ2440
$cd u-boot-1.3.2-rc1 && cp -a ../opencsbc/trunk/target/u-boot/patches . && quilt push -av
5. build u-boot for QQ2440
$make ARCH=arm \
CROSS_COMPILE=/usr/local/poky/eabi-glibc/arm/bin/arm-poky-linux-gnueabi- \
qq2440_config
$make ARCH=arm \
CROSS_COMPILE=/usr/local/poky/eabi-glibc/arm/bin/arm-poky-linux-gnueabi- \
all
You'll get u-boot.bin after it is complied successfully
6. Flash the generated u-boot.bin into NAND Flash by SJF jtag tool on Windows
7. You'll get u-boot running on QQ2440 after reset the board
U-Boot 1.3.1-moko12 (Apr 5 2008 - 14:49:35)
DRAM: 64 MB
Flash: 512 kB
NAND: 64 MiB
*** Warning - bad CRC or NAND, using default
environment
Video: 640x480x8 31kHz 59Hz
USB: S3C2410 USB Deviced
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
mtdparts variable not set, see 'help mtdparts'
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
QQ2440 #
Note:
1. The u-boot contains LCD support for the 7" 800x480
LCD only currently
2. This u-boot porting is based on the one by
OpenMoko, for general features on this u-boot, see
http://wiki.openmoko.org/wiki/U-boot