zynq燒錄相關(guān)命令
#配置tftpd64服務(wù)器軟件
V:\zynq\tftpboot:鏡像地址
192.168.195.2:電腦ip地址
#開機(jī)啟動(dòng)按回車鍵進(jìn)入uboot
?
#設(shè)置uboot ip地址
env set ipaddr 192.168.195.12
env set netmask 255.255.255.0
env set serverip 192.168.195.2
env set gateway 192.168.195.254
saveenv
?
#驗(yàn)證網(wǎng)路是否連通,host 192.168.195.2 is alive 表示連通
ping 192.168.195.2

#燒錄uboot,0x4ddb4c表示BOOT.BIN大小
tftpboot 0x1000000 BOOT.BIN
sf probe
sf update 0x1000000 0 0x4ddb4c
?
#執(zhí)行完tftpboot 0x1000000 BOOT.BIN后,獲取BOOT.BIN大小
?

#重啟
reset
#燒錄
tftpb 0x00100000 system.dtb
tftpb 0x00200000 uImage
tftpb 0x04000000 rootfs.cpio.gz.u-boot
bootm 0x00200000 0x04000000 0x00100000
iptables -P INPUT ACCEPT && iptables -P OUTPUT ACCEPT && iptables-save > /etc/iptables.rules
?
tftp -g -r image.ub -l /media/sd-mmcblk0p1/image.ub 192.168.195.2
tftp -g -r boot.scr -l /media/sd-mmcblk0p1/boot.scr 192.168.195.2
tftp -g -r rootfs.tar.gz -l rootfs.tar.gz 192.168.195.2
tar -zxvf rootfs.tar.gz -C /media/sd-mmcblk0p2 && sync
?
#重啟
reboot
#燒錄完成后進(jìn)入系統(tǒng)后關(guān)閉防火墻
iptables -P INPUT ACCEPT && iptables -P OUTPUT ACCEPT && iptables-save > /etc/iptables.rules