TI中文支持网
TI专业的中文技术问题搜集分享网站

am3354 u-boot从nandflash启动报错

u-boot能从SD卡正常启动,但使用链接中的从SD卡烧入flash将会报错

报错内容如下:

CCCCCCCC
U-Boot SPL 2019.01-gc14892445a-dirty (Dec 04 2020 – 17:19:30 +0800)
Trying to boot from NAND

U-Boot 2019.01-gc14892445a-dirty (Dec 03 2020 – 14:22:13 +0800)

CPU : AM335X-GP rev 2.1
Model: TI AM335x EVM
DRAM: 512 MiB
NAND: 1024 MiB
MMC: OMAP SD/MMC: 0
Loading Environment from FAT… <ethaddr> not set. Validating first E-fuse MAC
Net: eth0: ethernet@4a100000
Warning: usb_ether MAC addresses don't match:
Address in ROM is de:ad:be:ef:00:01
Address in environment is 0c:b2:b7:a1:ed:67
, eth1: usb_ether
Hit any key to stop autoboot: 0MMC Device 1 not found
no mmc device at slot 1
MMC Device 1 not found
no mmc device at slot 1
## Error: "bootcmd_nand0" not defined
starting USB…
USB0: Port not available.
ethernet@4a100000 Waiting for PHY auto negotiation to complete……… TIMEOUT !
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/01-0c-b2-b7-a1-ed-65
ethernet@4a100000 Waiting for PHY auto negotiation to complete…….

1、以上错误,请问这该如何解决?

2、另外里面提到的uEnv.txt该如何使用?有没有其他实例·。

3、还有就是由于linux使用了设备树,在nandflash分区中是否需要在分一个区给设备树才能启动

如:

0: NAND.SPL 0x00040000 0x00000000 1: NAND.SPL.backup1 0x00040000 0x00040000 2: NAND.SPL.backup2 0x00040000 0x00080000 3: NAND.SPL.backup3 0x00040000 0x000c0000 4: NAND.u-boot-spl-os 0x00040000 0x00100000 5: NAND.u-boot 0x00100000 0x00140000 6: NAND.u-boot-env 0x00040000 0x00240000 7: NAND.u-boot-env.backup10x00040000 0x00280000 8: NAND.kernel 0x00800000 0x002c0000

9. NAND.driver-tree 
10: NAND.file-system 

Shine:

请问直接从nand flash可以boot吗?先确定一下nand flash有没有问题。

,

ZB_LAJI:

nandflash测试过是没有问题的。
使用我想了解,当我使用sd作为工具烧入flash时设备树应该烧入到哪里?

,

Shine:

烧写完U-boot之后,可以烧写带zImage和dts的文件系统到下一个分区。

请看一下附件的文档。3343.4-1-1-Linux SD系统启动卡制作及系统固化方法 (1).pdf

,

ZB_LAJI:

你好,我根据一下链接成功在u-boot启动了u-boot。
e2e.ti.com/…/2061086

另外请问uEnv.txt应该怎么使用,有没有相关的教程文档?

赞(0)
未经允许不得转载:TI中文支持网 » am3354 u-boot从nandflash启动报错
分享到: 更多 (0)