7

全志V3S嵌入式驱动开发(full image制作)

 10 months ago
source link: https://blog.csdn.net/feixiaoxing/article/details/131466532
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.

全志V3S嵌入式驱动开发(full image制作)

嵌入式-老费 于 2023-06-29 23:33:45 发布 7

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

        所谓的full image制作,就是制作一个image,上面包含了所有的嵌入式软件、库和配置文件。之前虽然我们也构建了spi-nor、spi-nand、sd的image,但是上面缺少了一个关键的部分,也就是app代码的构建。这部分的内容今天也有必要加入进去。

        另外,顺便借助这篇文章,我们可以顺便回忆一下之前uboot、kernel和rootfs是怎么编译的,这也非常重要。此外这一次构建的full image是spi-nor启动的,大家可以稍微注意下。

2362202fa279420cb75d0c3517943ecb.png

1、编译uboot代码

2、编译内核

3、编译rootfs

4、编译app代码

5、将app执行文件拷贝到rootfs,生成jffs2.img文件

6、将所有的文件集中到一个目录下

7、创建一个镜像文件,并且将之前copy过来的文件复制到镜像文件中去


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK