将驱动程序添加到Yocto raspberry pi图像
问题描述:
我想在yocto中将AD5628(http://cateee.net/lkddb/web-lkddb/AD5064.html)DAC设备驱动程序添加到内核。将驱动程序添加到Yocto raspberry pi图像
所以我要通过引导http://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/about/
现在,我想补充DAC驱动模块到内核下建立树莓派一个yocto图像,所以我试图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-layer目录下(在我的情况下应该是meta-raspberrypi),bbappend文件的内容应该是
SRC_URI += "file:///path/to/config.cfg"
然后在同一目录下创建的config.cfg和内容应该是
CONFIG_AD5604 = y
我已经定名为AD5604,因为司机suports的ad5628设备。
感谢您的驱动程序代码位于构建的/ tmp支持
/工作共享/司机/ IIO/DAC/AD5628.c,但我没有得到如何添加到图像 –
如果任何人都可以通过指定如何将dac驱动程序添加到我的映像来帮助我。驱动程序已经存在于yocto/build/temp/work-shared/drivers/iio/dac中 –