6

全志F1C200S嵌入式驱动开发(制作根文件系统)

 1 year ago
source link: https://feixiaoxing.blog.csdn.net/article/details/131744221
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嵌入式驱动开发(制作根文件系统)

original.png
嵌入式-老费 newCurrentTime2.png 于 2023-07-15 21:47:12 发布 articleReadEyes2.png 265

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

        前两天我们制作f1c200s内核的时候,其实已经使用了根文件系统。只不过当时使用的系统是v3s的根文件系统,没有运行起来,这也算正常。毕竟f1c200s和v3s的cpu是不一样的,一些指令肯定有所差别。所以我们有必要使用arm-linux-gnueabi-gcc 7.2的版本来对buildroot重新编一下。不出意外的话,应该是可以实现根文件系统启动的。

        然而结果却非常地不顺利,中间经历了换kernel、换buildroot、换编译器等很多方法,都不行。最终还是通过一步步排查,加上busybox的调试打印信息,才确定问题是出在arm-linux-gnueabi上面。要正确编译rootfs,只能要么自己编译一个gcc,要么选用另外一个版本较老、但是可以使用的编译器才行。

1、准备buildroot代码

https://buildroot.org/downloads/

        buildroot的下载地址如上所示,我们挑选了一个,比如说buildroot-2018.02.11.tar.bz2。

2、拷贝到ubuntu虚拟机、解压

        将buildroot拷贝到虚拟机之后,就可以开始解压操作,

tar xjvf buildroot-2018.02.11.tar.bz2

3、开始准备配置buildroot-201


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK