1

全志F1C200S嵌入式驱动开发(uboot自动加载kernel和dtb)

 1 year ago
source link: https://feixiaoxing.blog.csdn.net/article/details/131731818
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嵌入式驱动开发(uboot自动加载kernel和dtb)

嵌入式-老费 已于 2023-07-15 21:23:28 修改 500

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

        这两天都在解决linux无法进入rootfs的问题,目前为止还没有什么进展。在处理过程当中,换了编译器、换了kernel、换了buildroot版本,但是都没有从根本上解决这一问题。唯一还没有换的,估计只剩下sd卡了。

        由于测试过程当中需要一直输入uboot命令,比较麻烦。所以就想着怎么从uboot直接跳转到linux里面,需要在哪个头文件里面进行添加。

1、查找合适的头文件

        在uboot的include/configs目录下面,有两个头文件。一个是sun4i.h,一个是suniv.h。这里面真正需要放置配置文件的地方其实是suniv.h,而不是sun4i.h,这个需要注意下。

2、准备好之前的bootcmd和bootargs配置

3、将命令替换成宏,添加到suniv.h


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK