如何更改Yocto中特定机器的内核配置?

问题描述:

我正在构建core-image-minimal,将“beaglebone”作为目标机器。如何更改Yocto中特定机器的内核配置?

我想编辑内核配置以删除一些功能以提高启动时间。我已经学会了我可以做一个bitbake -c menuconfig虚拟/内核来启动ncurses编辑器,但我并不真正了解我正在编辑的配置。它是用于beablebone还是仅仅是一个通用内核?

如何在构建core-image-minimal时使用基准beablebone内核配置,编辑它,然后让bitbake使用它?

谢谢。

确保beaglebone正在使用哪个内核。你必须找到它的机器配置。例如,beaglebone.conf

在那里,你将看到PREFERRED_PROVIDER_virtual/kernel = "linux-mainline"

要确定哪些内核beaglebone,需要内recipes-kernel找到它。例如,linux-mainline

之后,要做配置,我们有两种方法可以进入内核的图形化配置工具。

  1. bitbake -c menuconfig linux-mainline

  2. bitbake -c devshell linux-mainline

    make nconfig

没有安装驱动程序的教程HERE