ZYNQ Linux相关Image制作

FSBL_SD: fsbl.bif

the_ROM_image:

{
[bootloader] ./fsbl.elf
./ZYNQ_TEST.bit
./u-boot.elf
}

FSBL_SPI_FLASH: flash.bif

the_ROM_image:
{
[bootloader] ./fsbl.elf
./ZYNQ_TEST.bit
./u-boot.elf
[offset = 0x520000] ./zynq-microzus.dtb
[offset = 0x540000] ./uImage
[offset = 0xa00000] ./rootfs_jffs2.img
}

ramdisk:

mkimage -A arm -T ramdisk -C gzip -d zynq_ramdisk.image.gz uramdisk.image.gz

jffs2:

mkfs.jffs2  -d rootfs/ -o rootfs_jffs2.img

 

#!/bin/sh
source /home/software/xilinx/SDK/2017.4/settings64.sh
bootgen -image fsbl.bif -o BOOT.bin -w on
bootgen -image flash.bif -o BOOT_QSPI.bin -w on

program_flash -f ./BOOT_QSPI.bin -offset 0 -flash_type qspi_single -fsbl ./fsbl.elf -verify -cable type xilinx_tcf

 

 

posted @ 2022-05-29 23:58  BH5HSV  阅读(186)  评论(0编辑  收藏  举报