Zynq ZC702平台 QSPI + eMMC实现
預備知識:
UG821
The processor system boot is a two-stage process:? Another boot mode supported through FSBL is eMMC boot mode. This boot mode is possible only when the primary boot mode (set through the boot mode pins) is QSPI. This is used when you have a small QSPI flash and would like to store all the other partitions on a larger flash memory like eMMC. In this case, place the FSBL on the QSPI flash, and all the other partitions on eMMC flash.指導步驟:
To enable and use this boot mode: 1. Create a BSP with the library and set enable_mmc in the SDK options. For more details, see the library documentation. 2. Enable the MMC_SUPPORT flag through SDK and build FSBL. The FSBL image build (fsbl.elf) now has eMMC support. 3. Stitch the boot image with FSBL as the only partition (using Bootgen). 4. Place the boot image in the QSPI flash. 5. Stitch an image (using Bootgen) with all the other required partitions (like the bitstream or the U-Boot) and place it in the eMMC. 6. Set the boot mode to QSPI. 7. Power cycle the board. 具體實現:Step1.?Create a BSP with the library and set?enable_mmc?in the SDK options. For more details, see the library documentation.?
--建立FSBL,點擊 Modify this BSP's Settings --> Supported Libaries中選中xilffs
--xilffs的pdf見《UG1032》
?
?
Step2:Enable the?MMC_SUPPORT?flag through SDK and build FSBL. The FSBL image build (fsbl.elf) now has eMMC support.
?--FSBL工程,右鍵,彈出菜單中選中 C/C++ Building Settings 添加?-DMMC_SUPPORT
?
Step3.??Stitch the boot image with?FSBL as the?only partition?(using Bootgen).?
--SDK下用Bootgen只添加FSBL,生成BOOT.BIN,
?
Step4.?Place the boot image in the QSPI flash.
--通過JTAG燒錄step3中生產的BOOT.BIN文件到QSPI中
?
Step5.?Stitch an image (using Bootgen) with?all the other required partitions?(like the bitstream or the U-Boot) and place it in the eMMC.
--SDK下用Bootgen添加bitstream or the U-Boot,生成BOOT.BIN, 這個文件要拷貝到eMMC中
?
Step6.?拷貝step5生產的BOOT.bin,以及uImage,devicetree,ramdisk到SD中,啟動
--由于ZC702沒有eMMC,用SD代理,原理一樣。
原文鏈接:
https://www.cnblogs.com/kevin-heyongyuan/p/7529214.html
總結
以上是生活随笔為你收集整理的Zynq ZC702平台 QSPI + eMMC实现的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux小工具(2)终端记录器scri
- 下一篇: ARM uboot Legacy uIm