OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 7222|回复: 5

[XILINX] zynq7020 uboot无法跳转到linux

[复制链接]

19

主题

87

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
302
金钱
302
注册时间
2015-9-2
在线时间
83 小时
发表于 2021-9-3 08:43:44 | 显示全部楼层 |阅读模式
9金钱
根据文档,使用petalinux打包了一个最小系统,将BOOT.BIN 和 image.ug文件都复制到sd卡的FAT32分区。

启动信息打印如下:


Board: Xilinx Zynq
Silicon: v3.1
I2C:   ready
DRAM:  ECC disabled 1 GiB
MMC:   sdhci_transfer_data: Error detected in status(0x208000)!
mmc@e0100000: 0 (SD), mmc@e0101000: 1 (eMMC)
SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
In:    serial@e0000000
Out:   serial@e0000000
Err:   serial@e0000000
Net:   ZYNQ GEM: e000b000, phyaddr ffffffff, interface rgmii-id
eth0: ethernet@e000b000
Hit any key to stop autoboot:  0
## Error: "open_led" not defined
Device: mmc@e0100000
Manufacturer ID: 2
OEM: 544d
Name: SA16G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.4 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
** Unable to read file uEnv.txt **
Copying Linux from SD to RAM...
** Unable to read file uImage **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
ethernet@e000b000 Waiting for PHY auto negotiation to complete...... done
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 192.168.100.100 (257 ms)
*** Warning: no boot file name; using 'C0A86464.img'
Using ethernet@e000b000 device
TFTP from server 0.0.0.0; our IP address is 192.168.100.100; sending through gateway 192.168.100.254
Filename 'C0A86464.img'.
Load address: 0x0
Loading: *
TFTP error: 'File Not Found D:\ManageEngine\OpManager\tftp_files\C0A86464.img' (1)
Not retrying...
missing environment variable: pxefile_addr_r
BOOTP broadcast 1
DHCP client bound to address 192.168.100.100 (6 ms)
Using ethernet@e000b000 device
TFTP from server 0.0.0.0; our IP address is 192.168.100.100; sending through gateway 192.168.100.254
Filename 'boot.scr.uimg'.
Load address: 0x0
Loading: *
TFTP error: 'File Not Found D:\ManageEngine\OpManager\tftp_files\boot.scr.uimg' (1)
Not retrying...
BOOTP broadcast 1
DHCP client bound to address 192.168.100.100 (6 ms)
Using ethernet@e000b000 device
TFTP from server 0.0.0.0; our IP address is 192.168.100.100; sending through gateway 192.168.100.254
Filename 'boot.scr.uimg'.
Load address: 0x0
Loading: *
TFTP error: 'File Not Found D:\ManageEngine\OpManager\tftp_files\boot.scr.uimg' (1)
Not retrying...


不知是否因为上文标红处导致无法跳转,如果是,为什么会找不到这个文件呢?

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

0

主题

70

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
275
金钱
275
注册时间
2018-10-22
在线时间
35 小时
发表于 2021-9-3 13:37:13 | 显示全部楼层
petalinux使用的是什么版本的呢
回复

使用道具 举报

0

主题

70

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
275
金钱
275
注册时间
2018-10-22
在线时间
35 小时
发表于 2021-9-3 13:37:50 | 显示全部楼层
petalinux使用的是什么版本的呢, 做的哪个例程呢
回复

使用道具 举报

19

主题

87

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
302
金钱
302
注册时间
2015-9-2
在线时间
83 小时
 楼主| 发表于 2021-9-3 23:17:47 | 显示全部楼层
鑫梦 发表于 2021-9-3 13:37
petalinux使用的是什么版本的呢, 做的哪个例程呢

2018,linux开发指南 第六章
回复

使用道具 举报

19

主题

87

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
302
金钱
302
注册时间
2015-9-2
在线时间
83 小时
 楼主| 发表于 2021-9-6 09:01:55 | 显示全部楼层
setenv bootcmd ' mmcinfo && fatload mmc 0 0x10000000 image.ub; bootm 0x10000000;'
重新指定bootcmd后,可以进入linux。
不知为什么,恢复默认环境变量不行。
回复

使用道具 举报

0

主题

70

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
275
金钱
275
注册时间
2018-10-22
在线时间
35 小时
发表于 2021-9-10 09:26:26 | 显示全部楼层
贴一下完整的打印信息吧
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-10-3 20:22

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表