将驱动程序添加到 Yocto raspberry pi 图像
Adding drivers to Yocto raspberry pi image
我想将 AD5628(http://cateee.net/lkddb/web-lkddb/AD5064.html) DAC 设备驱动程序添加到 yocto 的内核中。
所以我按照指南 http://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/about/
为 raspberry Pi 构建了一个 yocto 图像
现在我想将 Dac 驱动程序模块添加到内核,所以我尝试使用 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驱动程序添加到内核中。谢谢
我们需要在元层目录中创建一个.bbappend文件(在我的例子中它应该是meta-raspberrypi),bbappend文件的内容应该是
SRC_URI += "file:///path/to/config.cfg"
然后在同目录下新建一个config.cfg,内容应该是
CONFIG_AD5604 = y
我命名为 AD5604,因为该驱动程序支持 ad5628 设备。
感谢支持
我想将 AD5628(http://cateee.net/lkddb/web-lkddb/AD5064.html) DAC 设备驱动程序添加到 yocto 的内核中。
所以我按照指南 http://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/about/
为 raspberry Pi 构建了一个 yocto 图像现在我想将 Dac 驱动程序模块添加到内核,所以我尝试使用 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驱动程序添加到内核中。谢谢
我们需要在元层目录中创建一个.bbappend文件(在我的例子中它应该是meta-raspberrypi),bbappend文件的内容应该是
SRC_URI += "file:///path/to/config.cfg"
然后在同目录下新建一个config.cfg,内容应该是
CONFIG_AD5604 = y
我命名为 AD5604,因为该驱动程序支持 ad5628 设备。
感谢支持