进入Uboot配置模式

第一步:设置IP

setenv serverip 192.168.1.26;setenv ipaddr 192.168.1.28;saveenv

第二步:设置启动方式和启动命令及参数

设置板卡从NandFlash 启动

1.1 烧写内核到NandFlash

zynq-uboot> tftpboot 0x2080000 uImage;nand erase 0x600000 0x500000;nand write.e 0x2080000 0x600000 0x500000

1.2 烧写dtb 文件到NandFlash

zynq-uboot> tftpboot 0x2000000 devicetree.dtb;nand erase 0xB00000 0x20000;nand write.e 0x2000000 0xB00000 0x20000

1.3 烧写文件系统到NandFlash

zynq-uboot> tftpboot 0x4000000 uramdisk.image.gz;nand erase 0xB20000 0x600000;nand write.e 0x4000000 0xB20000 0x600000

1.4设置板卡从NandFlash 启动

zynq-uboot> setenv bootcmd 'nand read 0x2080000 0x600000 0x500000;nand read 0x2000000 0xB00000 0x20000;nand read 0x4000000 0xB20000 0x600000;bootm 0x2080000 0x4000000 0x2000000

 

 

设置板卡从QSPI Flash 启动

2.1烧写内核QSPI Flash

zynq-uboot> sf probe;tftpboot 0x2080000 uImage;sf erase 0x600000 0x500000;sf write 0x2080000 0x600000 0x500000

2.2 烧写dtb 文件到QSPI Flash

zynq-uboot> sf probe;tftpboot 0x2000000 devicetree.dtb;sf erase 0xB00000 0x20000;sf write 0x2000000 0xB00000 0x20000

2.3 烧写文件系统到QSPIFlash

zynq-uboot> sf probe;tftpboot 0x4000000 uramdisk.image.gz;sf erase 0xB20000 0x600000;sf write 0x4000000 0xB20000 0x600000

2.4设置板卡从QSPI Flash 启动

zynq-uboot> setenv bootcmd 'sf probe;sf read 0x2080000 0x600000 0x500000;sf read 0x2000000 0xB00000 0x20000;sf read 0x4000000 0xB20000 0x600000;bootm 0x2080000 0x4000000 0x2000000;bootm 0x2080000 0x4000000 0x2000000'

 

设置板卡通过TFTP 下载内核、dtb 文件及文件系统启动

1.1zynq-uboot> setenv bootcmd 'tftpboot 0x2080000 uImage;tftpboot 0x2000000 devicetree.dtb;tftpboot 0x4000000 uramdisk.image.gz;bootm 0x2080000 0x4000000 0x2000000'

 

设置板卡从SD 卡启动

1.1zynq-uboot> setenv bootcmd 'fatload mmc 0 0x2080000 uImage;fatload mmc 0 0x2000000 devicetree.dtb;fatload mmc 0 0x4000000 uramdisk.image.gz;bootm 0x2080000 0x4000000 0x2000000'

(注:脱机启动BOOT.bin 与devicetree.dtb以及uImage 、uramdisk.image.gz 到SD 卡。连接好硬件,上电即可 FAT32格式)

第三步:保存环境变量并重启

zynq-uboot> saveenv   #不保存,boot后环境变量设置将无效

zynq-uboot> pri            #查看设置的环境变量

zynq-uboot> boot         #boot启动

双击tftp32.exe,运行在tftpserver模式,打开文件所在的位置,设置成服务器IP即可。

 

 

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值