This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

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: 0
MMC 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