添加驱动程序到Yocto树莓派图像

时间:2016-11-21 08:58:17

标签: linux linux-kernel drivers yocto bitbake

我想在yocto中将AD5628(http://cateee.net/lkddb/web-lkddb/AD5064.html)DAC设备驱动程序添加到内核。

所以我按照指南http://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/about/

为树莓派建立了一个yocto图像

现在我想将Dac Driver模块添加到内核中,所以我尝试了bitbake命令

bitbake -c menuconfig rpi-hwup-image

这样我就可以获得配置菜单并添加驱动程序。但它给了我一个错误,说目标不存在菜单配置。所以我试过

 bitbake linux-raspberrypi -c menuconfig 

但我收到错误

"there was error creating child process for this terminal, failed to execute child process "oe-gnome-terminal-phonehome" (no such files or directory)"。

所以有人请帮我将AD5628驱动程序添加到内核中。谢谢

1 个答案:

答案 0 :(得分:0)

我们需要在元层目录中创建一个.bbappend文件(在我的例子中应该是meta-raspberrypi),bbappend文件的内容应该是

SRC_URI += "file:///path/to/config.cfg"

然后在同一目录中创建一个config.cfg,内容应该是

CONFIG_AD5604 = y

我已经命名为AD5604,因为该驱动程序支持ad5628设备。

感谢您的支持

相关问题