【问题标题】:Adding drivers to Yocto raspberry pi image将驱动程序添加到 Yocto 覆盆子 pi 映像
【发布时间】:2017-04-04 14:40:29
【问题描述】:

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

所以我按照指南 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 驱动程序添加到内核中。谢谢

【问题讨论】:

  • 驱动代码位于 build/tmp/work-shared/drivers/iio/dac/AD5628.c ,但我不知道如何添加到图像中
  • 如果有人可以通过指定如何将 dac 驱动程序添加到我的图像来帮助我。驱动程序已经存在于 yocto/build/temp/work-shared/drivers/iio/dac

标签: linux linux-kernel drivers yocto bitbake


【解决方案1】:

我们需要在meta-layer目录下创建一个.bbappend文件(我这里应该是meta-raspberrypi),bbappend文件的内容应该是

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

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

CONFIG_AD5604 = y

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

感谢支持

【讨论】:

  • 那是如何工作的,bbappend 不应该是这样的:FILESEXTRAPATHS_prepend := "${THISDIR}/files:" SRC_URI += "file://myconfig.cfg" 如果 myconfig 位于 meta-mylayer/recipes-kernel/linux/files/myconfig.cfg
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-11-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-05-06
相关资源
最近更新 更多