3

全志F1C200S嵌入式驱动开发(spi-nor image制作)

 1 year ago
source link: https://feixiaoxing.blog.csdn.net/article/details/131906489
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

全志F1C200S嵌入式驱动开发(spi-nor image制作)

嵌入式-老费 已于 2023-07-26 00:47:15 修改 224

【 声明:版权所有,欢迎转载,请勿用于商业用途。 联系信箱:feixiaoxing @163.com】

        一般soc系统里面添加spi-nor flash芯片,特别是对linux soc来说,都是把它当成文件系统来使用的。spi-nor flash和spi-nand flash相比,虽然空间小了点,但是胜在稳定,这是很多工业场景所必须达到的要求。之前我们也说过,这次spi-nor芯片还是采用了mx25l25645g,它的大小是32MB,比通常使用的spi-norflash要大一倍左右。

a62f058a49374fbea08a29af28d275cd.png

1、规划spi-nor flash的适用范围

        拿到一颗flash之后,很重要的一部分工作就是规划整个flash的使用区间。这里为了方便,我们可以直接复制v3s的使用方法,将整个flash分成四个区域,分别是uboot、dtb、zImage和rootfs。他们的区间分布是这样的,

        uboot这里安排了1M大小,dtb安排了64K,zImage安排了5M,剩下来的空间都给了rootfs。0x19f0000的大小,其实就是0x2000000-0x100000-


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK