主题 : porting u-boot to QQ2440V3 复制链接 | 浏览器收藏 | 打印
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
10楼  发表于: 2008-05-21 21:00
我更新过u-boot的patch,大概没法在原来版本的u-boot上用了,现在应该在u-boot 1.3.2-rc2上可以
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 289
精华: 0
发帖: 5
金钱: 50 两
威望: 5 点
贡献值: 0 点
综合积分: 10 分
注册时间: 2008-03-13
最后登录: 2011-10-14
11楼  发表于: 2008-05-27 21:53
版主也给我发一个,谢了
xhylyx@163.com
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
12楼  发表于: 2008-05-28 09:11
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
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 289
精华: 0
发帖: 5
金钱: 50 两
威望: 5 点
贡献值: 0 点
综合积分: 10 分
注册时间: 2008-03-13
最后登录: 2011-10-14
13楼  发表于: 2008-05-28 16:36
我E文好烂,勉强能看得懂个大概
但是思路和步骤还是没有整理出来
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
14楼  发表于: 2008-05-28 16:55
你可以把'$'后面的命令直接复制粘贴到bash命令提示符后面执行
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 289
精华: 0
发帖: 5
金钱: 50 两
威望: 5 点
贡献值: 0 点
综合积分: 10 分
注册时间: 2008-03-13
最后登录: 2011-10-14
15楼  发表于: 2008-05-28 17:19
我上百度知道赏200分叫人翻译,翻译好了我贴出来
级别: 新手上路
UID: 958
精华: 0
发帖: 1
金钱: 10 两
威望: 1 点
贡献值: 0 点
综合积分: 2 分
注册时间: 2008-06-30
最后登录: 2009-03-30
16楼  发表于: 2008-07-07 10:16
版主,我在学习uboot进展缓慢,希望版主能将你的 build u-boot的步骤 发一份 非常感激
haokai169@163.com
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
17楼  发表于: 2008-07-07 10:49
我不是已经贴出来了吗?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 809
精华: 0
发帖: 9
金钱: 80 两
威望: 18 点
贡献值: 0 点
综合积分: 18 分
注册时间: 2008-06-03
最后登录: 2012-06-14
18楼  发表于: 2008-08-23 15:43

 请教!

请版主将u-boot -1.3.1 for  QQ2440V3发给我一份贝!谢谢!
dongyj591@163.com
级别: 新手上路
UID: 982
精华: 0
发帖: 13
金钱: 130 两
威望: 13 点
贡献值: 0 点
综合积分: 26 分
注册时间: 2008-07-02
最后登录: 2009-06-25
19楼  发表于: 2008-08-30 17:29
为什么还要

$make ARCH=arm \
CROSS_COMPILE=/usr/local/poky/eabi-glibc/arm/bin/arm-poky-linux-gnueabi- \
all