非常感激上海TI 工程师提供的AM437X GP EVM 评估板,经过几天的摸索和学习,对TI LINUX SDK 有了一些了解,开始做了些实践操作,做了各种尝试,都没法让评估板从NANDFLASH 启动。
我的操作如下:
1)通过SD卡启动(原装SD\自制SD都可以正常引导),控制台信息如下:
U-Boot SPL 2017.01-00360-g87da453-dirty (Nov 25 2017 – 17:43:12)
Trying to boot from MMC1
SPL: Please implement spl_start_uboot() for your board
SPL: Direct Linux boot not active!
reading u-boot.img
reading u-boot.img
reading u-boot.img
reading u-boot.img
U-Boot 2017.01-00360-g87da453-dirty (Nov 25 2017 – 17:43:12 -0800)
CPU : AM437X-GP rev 1.1
Model: TI AM437x GP EVM
DRAM: 2 GiB
PMIC: TPS65218
NAND: 512 MiB
MMC: OMAP SD/MMC: 0
reading uboot.env
** Unable to read "uboot.env" from mmc0:1 **
Using default environment
=> ba dinfo
arch_number = 0x00000000
boot_params = 0x80000100
DRAM bank = 0x00000000
-> start = 0x80000000
-> size = 0x80000000
eth0name = cpsw
ethaddr = 34:b1:f7:31:3b:c0
eth1name = usb_ether
eth1addr = 34:b1:f7:31:3b:c2
current eth = cpsw
ip_addr = <NULL>
baudrate = 115200 bps
TLB addr = 0xFFFF0000
relocaddr = 0xFFF2B000
reloc off = 0x7F72B000
irq_sp = 0xFDF0FC80
sp start = 0xFDF0FC70
Early malloc usage: 3a0 / 2000
=> mmcinfo
Device: OMAP SD/MMC
Manufacturer ID: 2
OEM: 544d
Name: SA04G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 3.6 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
read 1.22 MB/s. error 0/10 (0%)
write ### MB/s. error 0/0 (0%)
=> mtdparts
device nand0 <nand.0>, # parts = 10
#: name size offset mask_flags
0: NAND.SPL 0x00040000 0x00000000 0
1: NAND.SPL.backup1 0x00040000 0x00040000 0
2: NAND.SPL.backup2 0x00040000 0x00080000 0
3: NAND.SPL.backup3 0x00040000 0x000c0000 0
4: NAND.u-boot-spl-os 0x00080000 0x00100000 0
5: NAND.u-boot 0x00100000 0x00180000 0
6: NAND.u-boot-env 0x00040000 0x00280000 0
7: NAND.u-boot-env.backup10x00040000 0x002c0000 0
8: NAND.kernel 0x00700000 0x00300000 0
9: NAND.file-system 0x1f600000 0x00a00000 0
active partition: nand0,0 – (NAND.SPL) 0x00040000 @ 0x00000000
defaults:
mtdids : nand0=nand.0
mtdparts: mtdparts=nand.0:256k(NAND.SPL),256k(NAND.SPL.backup1),256k(NAND.SPL.backup2
2)通过tftp 下载MLO、u-boot.img 到内存, 在将内存MLO、u-boot.img 写到flash;
tftp 0x82000000 MLO
nand erase 0x0 0x40000
nand write 0x82000000 0x0 0x40000
tftp 0x82000000 u-boot.img
nand erase 0x00180000 0x00100000
nand write 0x82000000 0x00180000 0x00100000 \\根据MTD PARTS INFO,写到正确的nandflash 地址
4) 关机,调整SYSBOOT从NANDFALSH 启动;
5)启动后控制台一点信息都没有,说明MLO 都没能正常运行;
6)后来尝试下载各种版本MLO, u-boot.img(SDK Pre build 、原装SD卡、重编U-BOOT ),没有一个能NANDLFLASH 启动。
搜索论坛相关帖,都没有解答,盼TI 工程师给予支持。是否是我的评估板版本太早,ROM 程序或PCB 有缺陷?
http://www.deyisupport.com/question_answer/dsp_arm/sitara_arm/f/25/t/76350.aspx?pi2132219853=1
yongqing wang:
官方提供的DEMO板应该各个功能都印证过的吧,PCB应该不会有问题