AM3354从SD卡可以启动,但是无法从NAND启动而且一点打印消息也没有,在SD模式的uboot下,已经手动将MLO、 uboot.bin、Image.bin、root.bin下载到NAND里面了,如果SD卡启动模式下,我只在SD卡里面放了MLO、 uboot.bin就可以正常启动,可以看出Image.bin、root.bin已经在nand里面了,我从SD卡启动进入uboot模式,从0地址开 始读取NAND里面的数据,打印信息为:
TQ3358# nand dump 0 9708
Page 00000000 dump:
40 00 00 00 0c 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 43 48 53 45 54 54 49 4e 47 53 00 00
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
c1 c0 c0 c0 00 01 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 95 00 00 00 04 2f 40 14 00 00 ea 14 f0 9f e5
14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5
14 f0 9f e5 14 f0 9f e5 20 04 2f 40 24 04 2f 40
28 04 2f 40 2c 04 2f 40 30 04 2f 40 34 04 2f 40
38 04 2f 40 78 56 34 12 00 00 80 80 00 fc d0 3f
00 95 00 00 94 04 d4 3f 00 95 00 00 de c0 ad 0b
ba 01 00 eb 00 00 0f e1 1f 00 c0 e3 d3 00 80 e3
00 f0 29 e1 ca 03 00 eb 24 00 00 eb d0 d0 9f e5
07 d0 cd e3 00 00 a0 e3 f1 00 00 eb 00 40 a0 e1
01 50 a0 e1 02 60 a0 e1 04 d0 a0 e1 9c 00 4f e2
06 00 50 e1 00 90 a0 03 06 00 00 0a 06 10 a0 e1
68 30 1f e5 03 20 80 e0 00 06 b0 e8 00 06 a1 e8
02 00 50 e1 fb ff ff 3a 88 00 9f e5 88 10 9f e5
00 20 a0 e3 00 20 80 e5 04 00 80 e2 01 00 50 e1
fb ff ff 1a 15 0f 07 ee 9a 0f 07 ee 95 0f 07 ee
14 00 9f e5 f4 10 4f e2 01 e0 80 e0 09 e0 8e e0
05 00 a0 e1 06 10 a0 e1 0e f0 a0 e1 e4 02 00 00
00 00 a0 e3 17 0f 08 ee 15 0f 07 ee d5 0f 07 ee
9a 0f 07 ee 95 0f 07 ee 10 0f 11 ee 02 0a c0 e3
07 00 c0 e3 02 00 80 e3 02 0b 80 e3 01 0a 80 e3
10 0f 01 ee 0e c0 a0 e1 85 01 00 eb 0c e0 a0 e1
0e f0 a0 e1 80 b7 30 40 00 00 00 80 94 08 03 80
00 00 a0 e1 00 00 a0 e1 01 00 50 e2 fd ff ff 1a
1e ff 2f e1 70 40 2d e9 34 30 9f e5 00 40 a0 e3
00 40 83 e5 2b 20 a0 e3 08 30 43 e2 00 20 83 e5
04 30 83 e2 00 00 93 e5 08 50 a0 e1 14 10 9f e5
61 1e 00 eb 30 00 85 e5 20 40 88 e5 04 00 a0 e1
70 80 bd e8 40 00 04 48 b8 0b 00 00 4c 30 9f e5
10 40 2d e9 fa 1f a0 e3 93 00 00 e0 56 1e 00 eb
3c e0 9f e5 00 30 9e e5 03 20 a0 e1 08 00 00 ea
00 10 9e e5 02 30 e0 e1 01 30 83 e0 01 00 52 e1
02 c0 61 e0 03 30 e0 e1 00 00 83 80 00 00 8c 90
01 20 a0 e1 00 00 50 e3 f4 ff ff ca 10 80 bd e8
b8 0b 00 00 3c 00 04 48 30 30 9f e5 10 40 2d e9
00 00 93 e5 28 10 9f e5 3f 1e 00 eb 30 30 98 e5
20 30 98 e5 30 20 98 e5 03 30 62 e0 00 30 83 e0
20 30 88 e5 30 00 88 e5 20 00 98 e5 10 80 bd e8
3c 00 04 48 b8 0b 00 00 10 40 2d e9 00 40 a0 e1
ec ff ff eb 00 00 64 e0 10 80 bd e8 00 30 a0 e1
00 0c a0 e1 ff 2c 03 e2 23 0c 80 e1 02 04 80 e1
ff 38 03 e2 23 04 80 e1 1e ff 2f e1 04 30 9f e5
0f e0 a0 e1 0c f0 93 e5 00 00 00 80 2c 80 9f e5
10 40 2d e9 78 30 88 e2 00 30 88 e5 04 30 98 e5
01 30 83 e3 04 30 88 e5 14 30 9f e5 08 30 88 e5
94 15 00 eb 0c 00 9f e5 10 40 bd e8 27 05 00 ea
f8 95 2f 40 00 c2 01 00 4d 85 2f 40 04 00 9f e5
1b 05 00 eb fe ff ff ea 6b 85 2f 40 a0 ff ff eb
94 00 9f e5 01 10 a0 e3 ca 0a 00 eb d1 03 00 eb
9b 01 00 eb 8f 34 a0 e3 05 00 50 e3 00 00 83 e5
0c 00 00 0a 02 00 00 8a 00 00 50 e3 05 00 00 0a
0e 00 00 ea 08 00 50 e3 02 00 00 0a 41 00 50 e3
0a 00 00 1a 07 00 00 ea 50 00 9f e5 0b 05 00 eb
63 00 00 eb 09 00 00 ea 44 00 9f e5 07 05 00 eb
46 00 00 eb 05 00 00 ea bc 00 00 eb 03 00 00 ea
00 10 a0 e1 2c 00 9f e5 00 05 00 eb da ff ff eb
24 30 9f e5 04 30 d3 e5 11 00 53 e3 01 00 00 0a
18 00 9f e5 f2 04 00 eb bf ff ff eb a0 86 01 00
95 85 2f 40 ac 85 2f 40 c0 85 2f 40 00 00 00 80
e7 85 2f 40 70 40 2d e9 00 60 90 e5 00 40 a0 e1
06 00 a0 e1 ac ff ff eb 7c 30 9f e5 7c 50 9f e5
03 00 50 e1 0d 00 00 1a 0c 00 94 e5 a6 ff ff eb
40 00 80 e2 10 00 85 e5 10 00 94 e5 a2 ff ff eb
40 30 40 e2 08 30 85 e5 0c 00 85 e5 1c 20 d4 e5
20 30 84 e2 00 30 85 e5 04 20 c5 e5 70 80 bd e8
06 10 a0 e1 38 00 9f e5 d8 04 00 eb 34 00 9f e5
cf 04 00 eb 30 30 9f e5 30 20 9f e5 00 30 85 e5
32 3a a0 e3 10 30 85 e5 11 30 a0 e3 08 20 85 e5
04 30 c5 e5 0c 20 85 e5 70 80 bd e8 56 19 05 27
00 00 00 80 16 86 2f 40 43 86 2f 40 5b 86 2f 40
00 00 80 80 08 00 9f e5 08 10 9f e5 08 20 9f e5
09 ff ff eb fc b7 30 40 f8 95 2f 40 00 04 2f 40
10 40 2d e9 42 01 00 eb 03 00 50 e3 0e 00 00 1a
1d 01 00 eb 4a 13 00 eb 02 1b a0 e3 34 20 9f e5
02 07 a0 e3 c2 12 00 eb 28 00 9f e5 c0 ff ff eb
24 30 9f e5 02 07 a0 e3 08 20 93 e5 10 10 93 e5
bb 12 00 eb 10 40 bd e8 32 13 00 ea 0c 00 9f e5
a3 04 00 eb 84 ff ff eb 00 00 80 80 00 00 00 80
62 86 2f 40 70 40 2d e9 00 00 98 e5 90 0c 00 eb
00 00 a0 e3 a1 0c 00 eb 00 50 50 e2 0c 01 9f 05
40 00 00 0a b9 10 00 eb 00 40 50 e2 03 00 00 0a
fc 00 9f e5 04 10 a0 e1 98 04 00 eb 72 ff ff eb
1b 01 00 eb 01 00 50 e3 18 00 00 1a 00 20 a0 e1
03 1c a0 e3 04 00 a0 e1 d8 30 9f e5 0f e0 a0 e1
00 f1 95 e5 00 00 50 e3 0d 00 00 0a c4 00 9f e5
97 ff ff eb c0 30 9f e5 04 00 a0 e1 10 20 93 e5
03 1c a0 e3 7f 2f 82 e2 03 20 82 e2 08 30 93 e5
a2 24 a0 e1 0f e0 a0 e1 00 f1 95 e5 00 00 50 e3
70 80 bd 18 00 10 a0 e3 90 00 9f e5 e1 ff ff ea
02 00 50 e3 1a 00 00 1a 01 10 a0 e3 a0 00 85 e2
5f 19 00 eb 00 40 50 e2 04 10 a0 11 70 00 9f 15
d8 ff ff 1a 6c 00 9f e5 58 10 9f e5 40 20 a0 e3
55 19 00 eb 00 00 50 e3 08 00 00 da 44 00 9f e5
77 ff ff eb 40 30 9f e5 04 20 a0 e1 08 10 93 e5
40 00 9f e5 4c 19 00 eb 00 00 50 e3 70 80 bd c8
00 20 a0 e1 2c 10 9f e5 2c 00 9f e5 5f 04 00 eb
c5 ff ff ea 24 00 9f e5 55 04 00 eb c2 ff ff ea
OOB:
ff ff c8 b0 e8 12 b2 4a
63 70 83 0f c6 76 57 00
2a fc 53 db 07 da fc 3e
98 9e 33 ff 0f 00 f1 f4
4b 3e 1c 80 7e 34 7b 01
6a 40 db 00 3f fb d9 10
07 90 da c2 81 24 95 3b
9d 00 ff ff ff ff ff ff
也是有的。LCD_DATA0….LCD_DATA15的电平选择也都仔细检查过了,不知道为什么从NAND模式起不来?
还有个问题,我AM3354芯片上的型号
第一行是XAM3359ZCZ(字体上划了一道线)
第二行是AM3354ZCZD72
第三行是23ACVSW GI(G字母下面有一横线)
第四行是962 ZCZ
我的疑问是第一行为啥XAM3359ZCZ划了一横线,在下面补充了AM3354ZCZD72型号,这芯片正不正宗?
leo chen:
工程样品,这个目前应该没假的吧
模式你是怎么选择?
Jian Feng1:
什么Flash?
如果不支持ONFI有可能不是RBL支持的型号
Yaoming Qin:
1. 芯片有问题的可能性很小,暂时不做考虑
2. 请问您用的ezsdk的版本是什么?
3. 请问,您烧写nand的具体方式是什么
4. 请问sysboot的跳线方式是什么?
cheng feng:
回复 Jian Feng1:
我用的是三星的K9F2G08U0B,天嵌的开发板上也是用的这款型号
cheng feng:
回复 Yaoming Qin:
我用天嵌的uboot源码修改的,烧写nand的方式是在SD卡启动后的uboot命令执行的,一种是从SD卡下载到nand中,另外一种是通过TFTP网络的方式下载nand中,sysboot的跳线方式:在SD卡启动模式下,BOOT15—–BOOT0由高到低:0100_0000_0001_0111 ;在NAND启动模式下,BOOT15—–BOOT0由高到低:0100_0000_0001_0011 。今天我把天嵌开发板TQ3358上的NAND(K9F2G08)换成了我买的,正好型号也是一样的,天嵌开发板还是能运行的,因此我觉得NAND芯片是没问题的。在SD卡启动模式下,我将MLO、u-boot.bin、内核镜像、文件系统都下载到了NAND里面,然后在SD卡里面只存储了MLO和u-boot.bin,再从SD卡启动时,可以进入内核,可以看出此时的内核以及文件系统是从nand里面读取的,AM3354与NAND可写可读,在此也可以看到,我设计的板子是没有问题的,当我再从NAND模式下启动的时候,一点打印信息都没有,看的出CPU没有正确读取NAND里面的启动文件,因此我很怀疑,AM3354里面的固件对NAND是否支持,天嵌用的是AM3358而我的是AM3354,按道理这两种芯片的固件对K9F2G08的支持应该是一样的吧,看到芯片型号上被划掉的XAM3359ZCZ,然后又添加了AM3354ZCZD72,我怀疑这芯片是不是TI刚开始的工程样片,而TI的官方开发板是没有NAND的,是不是一开始的工程样片对NAND启动的支持还不完善。
Jian Feng1:
回复 cheng feng:
1.选一个nand->mmc的启动方式,在mlo里面打印一下sysboot寄存器的值和boot device的值是多少
2.不知道天嵌用的什么版本的uboot,我记得SDK05.06以前的版本uboot里面有nandecc的命令来设置ecc的方式的,ecc模式要设置成hw 2,否则也是不行的
Yaoming Qin:
回复 cheng feng:
1. 我在另一个帖子里回了你,工程样品和正常的产品是一样的,功能上没问题,所以你只要保证你的AM335x来源正确就行了。
2. 你可以把nand擦除后,在nand启动模式下,看是否有uart打印CCC,以此来初步判定nand里面的镜像是否正确或者烧写正确。
cheng feng:
回复 Jian Feng1:
你好,请问AM3354读取boot device的值的寄存器是哪个?sysboot寄存器我读到的值:SD(0x400317)、NAND(0x400313)没看出问题,nandecc的命令应该是能用的,天嵌的开发板是可以操作K9F2G08的。
leo chen:
回复 cheng feng:
应该不是支持不完善的问题;
既然你的uboot是从天嵌的基础上改的,那你查看一下天嵌的uboot源码,是否启动的时候需要检测什么信息?
Jian Feng1:
回复 cheng feng:
K9F2G08是可以启动的,这个片子我用过
boot device的值在spl.c里面启动的时候的一个变量,应该是RBL设置的
如果有nandecc命令,应该是比较老的uboot了,执行nand write 前要nandecc 设置一下ecc模式,
新版本的uboot里面 nand ecc的模式已经被写死了
烧写命令:
nand erase
nandecc hw 2
nand write