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

  • 3
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值