主题 : porting u-boot to QQ2440V3 复制链接 | 浏览器收藏 | 打印
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
楼主  发表于: 2008-01-30 02:07

 porting u-boot to QQ2440V3

管理提醒: 本帖被 qq2440 执行置顶操作(2009-12-07)
I've ported an u-boot with basic function to QQ2440v3. It is based on openmoko u-boot (http://svn.openmoko.org/trunk/src/target/u-boot/patches).

I'll commit the all patches to opencsbc project (http://opencsbc.svn.sourceforge.net/viewvc/opencsbc/) later.

Comments welcome :)



U-Boot 1.3.1-moko12 (Jan 29 2008 - 22:21:54)

DRAM:  64 MB
Flash: 512 kB
NAND:  64 MiB
*** Warning - bad CRC or NAND, using default environment

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 #
QQ2440 #
QQ2440 #
QQ2440 #
QQ2440 #
QQ2440 #
QQ2440 #
QQ2440 #
QQ2440 # mmcinit
trying to detect SD Card...
Manufacturer:       0x13, OEM "KG"
Product name:       "SD128", revision 1.0
Serial number:      3227360776
Manufacturing date: 11/2006
CRC:                0x30, b0 = 1
READ_BL_LEN=13, C_SIZE_MULT=7, C_SIZE=3971
size = 1052770304
QQ2440 # fatload mmc 0 0x32000000 uimage
reading uimage

1656496 bytes read
QQ2440 # bootm 0x32000000
## Booting image at 32000000 ...
   Image Name:   Linux-2.6.23-moko11
   Created:      2008-01-29  14:39:54 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1656432 Bytes =  1.6 MB
   Load Address: 30008000
   Entry Point:  30008000
   Verifying Checksum ... OK
OK

Starting kernel ... arch_number = 0x0000030e boot_params = 0x30000100

Uncompressing Linux............................................................................................................ done, booting the kernel.
Linux version 2.6.23-moko11 (alex@alex-desktop) (gcc version 4.1.2) #8 PREEMPT Tue Jan 29 22:39:15 CST 2008
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: Friendly-ARM QQ2440 Development Board
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 16384
  DMA zone: 128 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 16256 pages, LIFO batch:3
  Normal zone: 0 pages used for memmap
  Movable zone: 0 pages used for memmap
CPU S3C2440A (id 0x32440001)
S3C244X: core 304.000 MHz, memory 101.333 MHz, peripheral 50.666 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order.  Total pages: 16256
Kernel command line: rootfstype=jffs2 root=/dev/mtdblock4 console=ttySAC0,115200 console=tty0 loglevel=8
irq: clearing pending ext status 00000200

请不要再要我发build的步骤到邮箱了,我已经贴出来了,在帖子的第二页
http://aiothome.com/bbs/read.php?tid=125&fpage=0&toread=&page=2
[ 此贴被kasim在2008-11-12 12:02重新编辑 ]
"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: 458
精华: 0
发帖: 7
金钱: 65 两
威望: 7 点
贡献值: 0 点
综合积分: 14 分
注册时间: 2008-04-05
最后登录: 2013-07-04
1楼  发表于: 2008-04-21 11:46
多谢! 版主更新的很勤呀!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2008-04-21 12:13
不客气,不过再好的代码躺在SVN里面是没有用的,只有实际用了才能体现价值
"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: 458
精华: 0
发帖: 7
金钱: 65 两
威望: 7 点
贡献值: 0 点
综合积分: 14 分
注册时间: 2008-04-05
最后登录: 2013-07-04
3楼  发表于: 2008-04-24 14:50
u-boot-1.3.1中qq2440.h中的在NANDFLASH中设定环境变量的地址空间时

#define CFG_ENV_OFFSET 是怎么定义的?需要考虑哪些因素?你设定的CFG_ENV_SIZE 是 16k

#define  CFG_ENV_OFFSET_00B 1 的定义,没有替代CFG_ENV_OFFSET 的意思呀?

block 0 00B 的绝对地址又是多少呢?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2008-04-24 18:03
引用第3楼ycsandao于2008-04-24 14:50发表的  :
u-boot-1.3.1中qq2440.h中的在NANDFLASH中设定环境变量的地址空间时

#define CFG_ENV_OFFSET 是怎么定义的?需要考虑哪些因素?你设定的CFG_ENV_SIZE 是 16k

#define  CFG_ENV_OFFSET_00B 1 的定义,没有替代CFG_ENV_OFFSET 的意思呀?
.......


CFG_ENV_OFFSET_OOB的意思是把env数据分区的offset写在block 0的OOB区域里,至于这个offset如何用的,恐怕你的看代码才能了解。
这个机制的可以参考 http://wiki.openmoko.org/wiki/NAND_bad_blocks#Environment
"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: 696
精华: 1
发帖: 7
金钱: 90 两
威望: 27 点
贡献值: 10 点
综合积分: 34 分
注册时间: 2008-05-14
最后登录: 2008-05-20
5楼  发表于: 2008-05-19 23:04
请问版主能把u-boot -1.3.1 for  QQ2440V3的源码发给我吗 我现在正在研究这  万分感谢    邮箱 wxlllove@126.com
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
6楼  发表于: 2008-05-20 09:32
引用第5楼wxllllllove于2008-05-19 23:04发表的  :
请问版主能把u-boot -1.3.1 for  QQ2440V3的源码发给我吗 我现在正在研究这  万分感谢    邮箱 wxlllove@126.com

我已经把u-boot patch check in到https://opencsbc.svn.sourceforge.net/svnroot/opencsbc/trunk/target/u-boot/patches
你可以通过下面的命令check out:
svn co https://opencsbc.svn.sourceforge.net/svnroot/opencsbc opencsbc

有关svn的操作参考https://sourceforge.net/svn/?group_id=204028
有关build u-boot的步骤我已经发Mail到你的邮箱
"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: 458
精华: 0
发帖: 7
金钱: 65 两
威望: 7 点
贡献值: 0 点
综合积分: 14 分
注册时间: 2008-04-05
最后登录: 2013-07-04
7楼  发表于: 2008-05-20 22:43
版主,我依然在学习uboot进展缓慢,希望版主能将你的 build u-boot的步骤 发一份 不胜感激

ycsandao@yahoo.com.cn
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 2008-05-21 00:26
已发
"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: 458
精华: 0
发帖: 7
金钱: 65 两
威望: 7 点
贡献值: 0 点
综合积分: 14 分
注册时间: 2008-04-05
最后登录: 2013-07-04
9楼  发表于: 2008-05-21 19:23
版主 quilt push -av 不能很好的按 series 打上补丁,就是总patch出错!是怎么回事?