imx6ull:记录一次uboot中使用tftp下载文件的问题

本文记录了一次失败与一次成功的U-Boot固件升级过程。通过对比发现,失败原因在于加载地址设置为0,而正确的加载地址应设为0x80800000。文章详细展示了命令参数及操作步骤,对于遇到类似问题的技术人员极具参考价值。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

先记录下来,暂不解决

失败的记录

升级记录如下所示:当时还添加了命令的参数打印信息。这次升级是失败的。

=> tftp 80800000 xxuboot.imx
cmd/net.c,do_tftpb,line=38:flag = -1610906828
cmd/net.c,do_tftpb,line=40:argv[0] = tftp
cmd/net.c,do_tftpb,line=40:argv[1] = 80800000
cmd/net.c,do_tftpb,line=40:argv[2] = xxuboot.imx
FEC0 Waiting for PHY auto negotiation to complete.... done
Using FEC0 device
TFTP from server 192.168.0.11; our IP address is 192.168.0.4
Filename 'xxuboot.imx'.
Load address: 0x0
Loading: #########################
         2.3 MiB/s
done
Bytes transferred = 363520 (58c00 hex)
=> mmc dev 1 0
switch to partitions #0, OK
mmc1(part 0) is current device
=> mmc write 80800000 2 2c6

MMC write: dev # 1, block # 2, count 710 ... 710 blocks written: OK
=> mmc partconf 1 1 0 0
=> reset
resetting ...

成功的记录:

=> tftp 80800000 xxuboot.imx
cmd/net.c,do_tftpb,line=38:flag = -1610906828
cmd/net.c,do_tftpb,line=40:argv[0] = tftp
cmd/net.c,do_tftpb,line=40:argv[1] = 80800000
cmd/net.c,do_tftpb,line=40:argv[2] = xxuboot.imx
Using FEC0 device
TFTP from server 192.168.0.11; our IP address is 192.168.0.4
Filename 'xxuboot.imx'.
Load address: 0x80800000
Loading: #########################
         2.3 MiB/s
done
Bytes transferred = 363520 (58c00 hex)
=> mmc write 80800000 2 2c6

MMC write: dev # 1, block # 2, count 710 ... 710 blocks written: OK
=> mmc partconf 1 1 0 0
=> reset
resetting ...

对比分析

是Load address这一行,失败的时候,显示的地址是0,成功的时候显示的是80800000,好在我在当时打印了tftp的两个参数,要不然这个问题还真会认为是自己输错导致的

小结

 暂时记录,等有时间再来处理,如果有感兴趣的,欢迎留言探讨。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

千册

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值