找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 505453|回复: 493

【U-Boot】U-Boot 刷机方法大全

 火... [复制链接]
发表于 2015-7-27 21:51 | 显示全部楼层
hackpascal 发表于 2014-12-11 22:21
U-Boot + TTL 刷机方法

此方法适用于任何 U-Boot。

请教哪里出错了,谢谢
tftp 0x80000000 uboot.bin
erase 0x9f000000 +0x10000
cp.b 0x80000000 0x9f000000 0x10000




uboot> printenv
bootcmd=bootm 0x9F020000
bootdelay=1
baudrate=115200
ipaddr=192.168.1.1
serverip=192.168.1.10
bootfile="firmware.bin"
loadaddr=0x80800000
ncport=6666
uboot_addr=0x9F000000
uboot_name=uboot.bin
uboot_size=0x10000
uboot_upg=if ping $serverip; then tftp $loadaddr $uboot_name && if itest.l $filesize == $uboot_size; then erase $uboot_addr +$filesize && cp.b $loadaddr

$uboot_addr $filesize && echo OK!; else echo ERROR! Wrong file size!; fi; else ERROR! Server not reachable!; fi
firmware_addr=0x9F020000
firmware_name=firmware.bin
firmware_upg=if ping $serverip; then tftp $loadaddr $firmware_name && erase $firmware_addr +$filesize && cp.b $loadaddr $firmware_addr $filesize && echo OK!;

else ERROR! Server not reachable!; fi
art=tftp $loadaddr art-calibration-934x.bin && bootm
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
bootargs=board=AP9341FE console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:64k(u-boot),64k(art),16192k(fiwmware)

Environment size: 979 bytes

我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-7-27 21:51 | 显示全部楼层
hackpascal 发表于 2014-12-11 22:21
U-Boot + TTL 刷机方法

此方法适用于任何 U-Boot。

请教哪里出错了,谢谢
  1. tftp 0x80000000 uboot.bin
  2. erase 0x9f000000 +0x10000
  3. cp.b 0x80000000 0x9f000000 0x10000




  4. uboot> printenv
  5. bootcmd=bootm 0x9F020000
  6. bootdelay=1
  7. baudrate=115200
  8. ipaddr=192.168.1.1
  9. serverip=192.168.1.10
  10. bootfile="firmware.bin"
  11. loadaddr=0x80800000
  12. ncport=6666
  13. uboot_addr=0x9F000000
  14. uboot_name=uboot.bin
  15. uboot_size=0x10000
  16. uboot_upg=if ping $serverip; then tftp $loadaddr $uboot_name && if itest.l $filesize == $uboot_size; then erase $uboot_addr +$filesize && cp.b $loadaddr

  17. $uboot_addr $filesize && echo OK!; else echo ERROR! Wrong file size!; fi; else ERROR! Server not reachable!; fi
  18. firmware_addr=0x9F020000
  19. firmware_name=firmware.bin
  20. firmware_upg=if ping $serverip; then tftp $loadaddr $firmware_name && erase $firmware_addr +$filesize && cp.b $loadaddr $firmware_addr $filesize && echo OK!;

  21. else ERROR! Server not reachable!; fi
  22. art=tftp $loadaddr art-calibration-934x.bin && bootm
  23. stdin=serial
  24. stdout=serial
  25. stderr=serial
  26. ethact=eth0
  27. bootargs=board=AP9341FE console=ttyS0,115200 root=31:02 rootfstype=squashfs init=/sbin/init mtdparts=ath-nor0:64k(u-boot),64k(art),16192k(fiwmware)

  28. Environment size: 979 bytes
复制代码


我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 00:55

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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