首页 > 解决方案 > 如何在 Yocto 中启用 Raspberry Pi 摄像头

问题描述

我正在尝试让我的 Raspberry Pi 相机与我的 Yocto 图像一起使用。我在这里发现我需要添加以下行:

VIDEO_CAMERA = "1"

我将它添加到我的 meta 的 recipes-core/images/example-image.bb 但是当我尝试拍照时,我仍然得到:

root@user:~# raspistill -o testshot.jpg
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not enabled in this build. Try running "sudo raspi-config" and ensure that "camera" has been enabled

所以它似乎没有启用。而且raspi-config似乎只在 Raspbian 上可用,实际上它不被识别为命令。

我还缺少什么吗?我在那里找不到太多信息,而且我还是 Yocto 的新手。

标签: raspberry-picamerayoctometa-raspberrypi

解决方案


推荐阅读