ZYNQ平台UBOOT下烧录程序到Flash中

上篇文章讲述了通过SDK引导启动UBOOT,在UBOOT启动之后可以通过网口tftp功能下载主机提供的相应程序,并通过sf擦除和烧写命令,将新程序烧录到Flash指定位置。
uboot启动之后,首先进行网络配置,如下所示:

setenv serverip 192.168.0.19 && setenv ipaddr 192.168.0.205

然后需要对spi flash进行检测:

 sf probe

然后根据实际工程需要,对SPI进行分区,如下所示:

tftpboot 0x800000 BOOT.bin && sf probe&& sf erase 0x0 0xc0000 && sf write 0x800000  0x0 0xc0000
tftpboot 0x800000 uImage && sf erase 0x100000 0x500000 && sf write 0x800000  0x100000 0x500000 
tftpboot 0x800000 zynq-zed.dtb && sf erase 0xc0000 0x40000 && sf write 0x800000  0xc0000 0x40000
tftpboot 0x800000 uramdisk.image.gz && sf erase 0x600000 0x600000 && sf write 0x800000 0x600000 0x600000
tftpboot 0x800000 design.bin && sf erase 0xc00000 0x400000 && sf write 0x800000 0xc00000 0x400000 

你可能感兴趣的:(ZYNQ)