加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Petalinux boot from QSPI flash

发布时间:2020-12-15 20:03:59 所属栏目:百科 来源:网络整理
导读:64GB SD卡 exfat文件系统 竟然没有让Petalinux启动成功,那就试试QSPI吧。 1 ?在u-boot build时要加上 串行flash命令,所以要在 petalinux-project/subsystems/linux/configs/u-boot/platform-top.h头文件中加上宏 #define CONFIG_ZYNQ_QSPI 重新build u-boo

64GB SD卡 exfat文件系统 竟然没有让Petalinux启动成功,那就试试QSPI吧。


1 ?在u-boot build时要加上 串行flash命令,所以要在

<petalinux-project>/subsystems/linux/configs/u-boot/platform-top.h头文件中加上宏

#define CONFIG_ZYNQ_QSPI


重新build u-boot.


2 ?配置QSPI启动方式


petalinux-config?

To set the boot image location as QSPI:
a. In the configuration GUI select:
i. Subsystem AUTO Hardware Settings ?
ii. Advanced bootable images storage Settings ?
iii. boot image settings ?
iv. Image storage media ?
b. Change the device selection to primary flash.




3?Select:
a. Kernel image settings ?
b. Image storage media (primary sd) ?

Change the device selection to primary flash.

petalinux-build

有2种方法 可以烧写 boot.bin 和 image.ub, 一个是xilinx sdk里的program flash 命令,另一个就是我喜欢的 串行flash的命令。

把生成的新的boot.bin 重新起个名字 BOOT_qspi.BIN,然后考到sd卡里,利用sd卡启动方式 启动板卡

mount /dev/mmcblk0p1 /mnt
flashcp /mnt/BOOT_QSPI.BIN /dev/mtd0

很快 10多秒就考完了,

flashcp /mnt/image.ub /dev/mtd2

umount ?/mnt

搞定。开心。。

串行 flash的命令:

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读