初级会员
- 积分
- 82
- 金钱
- 82
- 注册时间
- 2019-11-18
- 在线时间
- 15 小时
|
我的uENV.txt如下;
fpga_image=system.bit
fpgaboot=if fatload mmc 0 0x1000000 ${fpga_image}; then echo Booting FPGA from ${fpga_image}; fpga info 0 && fpga loadb 0 0x1000000 $filesize; else echo FPGA image ${fpga_image} was not found, skipping...; fi;
sdboot=echo Booting from SD...; run fpgaboot;
我在sd卡fat分区拷贝了BOOT.BIN image.ub system.bit uENV.txt,但是在启动时并没有加载bit文件请问是哪儿出了问题呢?
终端打印信息如下(为了节省篇幅,只显示和uENV.txt相关的):
Hit any key to stop autoboot: 0
reading uEnv.txt
472 bytes read in 12 ms (38.1 KiB/s)
Loaded environment from uEnv.txt
Importing environment from SD ...
Device: mmc@e0100000
Manufacturer ID: 12
OEM: 3456
Name: SDTran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.6 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading image.ub
从终端输出信息可知,启动时成功读取了uEnv.txt,并且导入了环境变量,但不知道为何没有执行run fpgaboot,是uEnv.txt写错了吗?还是我的用法有问题?
从网上看到txt有这么写的(节选)
"load mmc 0 ${loadbit_addr} ${bitstream} && " \
"fpga loadb 0 ${loadbit_addr} ${filesize}\0" \
并且还要配置uboot启动为DFU_ALT_INFO_RAM ,请问这两种方式都正确吗?有区别吗?
|
|