如何修复 Raspi 相机 'mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)'
问题:
你正在尝试使用 raspistill 或 raspivid 访问 Raspberry Pi 相机,但你看到类似这样的错误消息:
raspi_camera_mmal_error.txt
mmal: Cannot read camera info, keeping the defaults for OV5647
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 启用 Raspberry Pi 相机了解如何操作。
如果相机接口已经启用(记住你需要重启才能使更改生效),出现类似此错误消息的最可能原因是相机没有正确连接到 Raspberry Pi:
- CSI 电缆插入方向正确吗?银色触点需要朝向远离以太网连接器的方向!
- CSI 电缆是否完全插入?
- 你是否将 CSI 电缆插入了 Display 连接器?它需要插入 CSI 连接器,即更靠近以太网连接器的那个。
- CSI 电缆的另一端是否正确连接到相机板?
Check out similar posts by category:
Embedded, Raspberry Pi
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow