我们从ti 获取到一块 AM572x Evaluation 开发板进行评估,板子可以从SD卡启动和运行。可是我们从emmc中启动时却出现了问题。
我们按照 <<AM572x Evaluation Module Quick Start Guide>>连接 J3,J4,J6确定启动模式,并插入SD卡,从SD卡启动uboot
在主机上运行
longdunmei@GZ-20180119 ~
$ uuidgen
811f1381-7e9c-4928-9b62-20897f4a4261
longdunmei@GZ-20180119 ~
$ uuidgen
3a68a76c-e2ee-4ba3-90bd-6c025df6e785
longdunmei@GZ-20180119 ~
$
Uboot中
U-Boot SPL 2019.01-g333c3e72d3 (Apr 20 2020 - 05:48:48 +0000)
DRA752-GP ES2.0
no pinctrl state for default mode
** Unable to read file dra7-ipu1-fw.xem4 **
Firmware loading failed
Trying to boot from MMC1
no pinctrl state for default mode
Loading Environment from FAT... OK
U-Boot 2019.01-g333c3e72d3 (Apr 20 2020 - 05:48:48 +0000)
CPU : DRA752-GP ES2.0
Model: TI AM5728 BeagleBoard-X15
Board: AM572x EVM REV A.3A
DRAM: 2 GiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... OK
Net: eth0: ethernet@48484000
Hit any key to stop autoboot: 0
=>
=>
=> printenv partitions
partitions=uuid_disk=${uuid_gpt_disk};name=bootloader,start=384K,size=1792K,uuid=${uuid_gpt_bootloader};name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}
=> setenv uuid_gpt_disk 811f1381-7e9c-4928-9b62-20897f4a4261
=> setenv uuid_gpt_rootfs 3a68a76c-e2ee-4ba3-90bd-6c025df6e785
=> gpt write mmc 1 ${partitions}
Writing GPT: success!
=> env save
Saving Environment to FAT... OK
=> mmc part
Partition Map for MMC device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 143360 cf75671d-01 0c Boot
2 145408 31244288 cf75671d-02 83
=> mmc dev 1
switch to partitions #0, OK
mmc1(part 0) is current device
=> mmc part
Partition Map for MMC device 1 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 1 7471103 00000000-01 ee
=>
=>
=>
=> mmc dev 0
switch to partitions #0, OK
mmc0 is current device
=> mmc rescan
=> mmc dev 1
switch to partitions #0, OK
mmc1(part 0) is current device
=> fatload mmc 0 ${loadaddr} MLO
157799 bytes read in 9 ms (16.7 MiB/s)
=> mmc write ${loadaddr} 0x100 0x100
MMC write: dev # 1, block # 256, count 256 ... 256 blocks written: OK
=> mmc write ${loadaddr} 0x200 0x100
MMC write: dev # 1, block # 512, count 256 ... 256 blocks written: OK
=> fatload mmc 0 ${loadaddr} u-boot.img
1445892 bytes read in 66 ms (20.9 MiB/s)
=> mmc write ${loadaddr} 0x300 0x400
MMC write: dev # 1, block # 768, count 1024 ... 1024 blocks written: OK
=>
=>
=>
=>
=>
=> mmc bootbus 1 2 0 2
=> mmc partconf 1 1 1 0
=> mmc rst-function 1 1
=>
=>
=>
=>
断电,拔掉SD卡,重新启动,没有任何反应。