QEMU QSPI SD Xilinx Quick Emulator User Guide

https://github.com/Xilinx/qemu

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842060/QEMU

Xilinx Quick Emulator  User Guide

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_2/ug1169-xilinx-qemu.pdf#page=27

Using QSPI for Boot
1. Create the QSPI boot image(s) for either or both single flashmode and dual parallel
mode.
Single Flash Mode
dd if=/dev/zero of=qemu_qspi.bin bs=64M count=1
dd if=BOOT.BIN of=qemu_qspi.bin bs=1 seek=0 conv=notrunc
Dual Parallel Mode
dd if=/dev/zero bs=128M count=1 of=qemu_qspi_tmp.bin
dd if=BOOT.BIN of=qemu_qspi_tmp.bin bs=1 seek=0 conv=notrunc
flash_strip_bw qemu_qspi_tmp.bin qemu_qspi_low.bin qemu_qspi_high.bin

2. Boot either the single or dual image(s) on QEMU.
Single Flash Mode
qemu-system-aarch64 -M arm-generic-fdt -nographic
-dtb <proj_dir>/images/linux/zynqmp-qemu-arm.dtb
-device loader,file=<proj_dir>/ images/linux/zynqmp_a53_fsbl.elf,cpu-num=0
-device loader,addr=0xfd1a0104,data=0x8000000e,data-len=4
-drive file=qemu_qspi.bin,if=mtd,format=raw,index=0
-boot mode=1

原文地址:https://www.cnblogs.com/sinferwu/p/13006159.html