欢迎光临散文网 会员登陆 & 注册

zynq烧录相关命令

2023-04-25 12:49 作者:10微法  | 我要投稿

#配置tftpd64服务器软件

V:\zynq\tftpboot:镜像地址

192.168.195.2:电脑ip地址


#开机启动按回车键进入uboot

 

#设置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

 

#验证网路是否连通,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

 

#执行完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


#烧录完成后进入系统后关闭防火墙

iptables -P INPUT ACCEPT && iptables -P OUTPUT ACCEPT && iptables-save > /etc/iptables.rules

zynq烧录相关命令的评论 (共 条)

分享到微博请遵守国家法律