具有buildroot的RaspberryPi相机 [英] RaspberryPi camera with buildroot

查看:83
本文介绍了具有buildroot的RaspberryPi相机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用RaspberryPi 2模型B和使用Buildroot(Linux版本4.0.6-v7)构建的操作系统.我有摄像头模块,但无法与Raspberry连接.相机上的指示灯始终处于关闭状态,但是相机可以正常运行,因为我已使用Raspbian对其进行了测试.我尝试使用默认命令安装"rpi固件"以使用相机,但是当我尝试拍照时,系统返回此错误:

I am working with a RaspberryPi 2 model B and an operating system builded with Buildroot (Linux version 4.0.6-v7). I have the camera module but I can't interface it with my Raspberry. Leds on the camera are always turned off, but the camera is functioning, because I tested it with Raspbian. I tried to install the "rpi firmware" with defaults commands to use the camera, but when I try to take a photo,the system returns this error:

# ./raspistill -o picture.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

命令行工具"vcgencmd"返回以下内容:

The command line tools "vcgencmd" return this:

# vcgencmd get_camera
supported=0 detected=0

因此,看来我的系统确实不支持该相机.

So it seems that the camera is really not supported with my system.

即使使用"V4L2"用户空间驱动程序,我也遇到相同的问题.

Even with "V4L2" userspace driver I have the same problem.

有人可以帮助我吗?对不起,我的英语不好!

Can anyone help me? Sorry for my bad english!

非常感谢您的回答!

推荐答案

这是很老的问答集,但我还是决定回答,因为问题仍然很重要,唯一给出的答案是...指向正确的方向,但不是解决该问题的方法.

This is quite old Q&A but I decided to answer anyway because the question is still relevant and the only given answer is...well pointing to correct direction, but is not how one should fix the issue.

导致该错误的原因是,使用相机需要在RPi版本中启用扩展固件.是的,如果您只是下载所需的文件并像haziman的答案中所建议的那样自行替换它们,则它仍然可能起作用.我什至不确定这是否真的是几年前被问到的唯一方法.无论如何,至少到现在为止,至少在几年之前,都可以在buildroot菜单上对其进行配置:

Reason for the error is that using the camera requires extended firmware to be enabled in your RPi build. Yes, it might still work if you'd just download the required files and replaced them yourself like is suggested in haziman's answer. I'm not even sure if that actually was the only way to do it years ago when this was asked. Anyway if not then, at least for few years now it has been possible to configure it at buildroot menu:

Target packages --> Hardware handling --> Firmware --> ([x] rpi-firmware) --> Firmware to boot

然后选择

(X) extended

这篇关于具有buildroot的RaspberryPi相机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆