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 卡。连接好硬件,上电即可)
zynq-uboot> saveenv #不保存,boot后环境变量设置将无效
zynq-uboot> pri #查看设置的环境变量
zynq-uboot> boot #boot启动
双击tftp32.exe,运行在tftpserver模式,打开文件所在的位置,设置成服务器IP即可。