Camera not available in libcamera
Just got libcamera working on an RPi4B running Ubuntu 22.04 LTS, but "cam -l" does not list a camera available. (Confirmed the camera and hardware work with RPi OS and libcamera-hello prior to the build.)
From preliminary troubleshooting suspect it may have something to do with permissions.
Initial error codes indicate libcamera (or the OS) recognized the camera (imx477), but had problems with dmaHeap. "ERROR RPI dma_heaps.cpp:53 Could not open any dmaHeap device", and "ERROR RPI raspberrypi.
From reading about dmaHeap issues online I added my username to the 'video' group and no longer get those errors, but still no camera is available.
Not sure what to make of the debug output below, other than things generally look good (no errors).
Any recommendations on what else to look into?
luis@RPi4-Ubuntu:~$ LIBCAMERA_
[0:10:29.031297600] [3202] DEBUG IPAModule ipa_module.cpp:329 ipa_rkisp1.so: IPA module /usr/local/
[0:10:29.031920457] [3202] DEBUG IPAManager ipa_manager.cpp:245 Loaded IPA module '/usr/local/
[0:10:29.033633179] [3202] DEBUG IPAModule ipa_module.cpp:329 ipa_rpi.so: IPA module /usr/local/
[0:10:29.034040170] [3202] DEBUG IPAManager ipa_manager.cpp:245 Loaded IPA module '/usr/local/
[0:10:29.034515567] [3202] INFO Camera camera_
[0:10:29.034992705] [3205] DEBUG Camera camera_
[0:10:29.052254924] [3205] DEBUG DeviceEnumerator device_
[0:10:29.052679674] [3205] DEBUG DeviceEnumerator device_
[0:10:29.058059409] [3205] DEBUG DeviceEnumerator device_
[0:10:29.058322440] [3205] DEBUG DeviceEnumerator device_
[0:10:29.060125198] [3205] DEBUG DeviceEnumerator device_
[0:10:29.060326675] [3205] DEBUG DeviceEnumerator device_
[0:10:29.061321116] [3205] DEBUG DeviceEnumerator device_
[0:10:29.061479539] [3205] DEBUG DeviceEnumerator device_
[0:10:29.065747705] [3205] DEBUG DeviceEnumerator device_
[0:10:29.065879906] [3205] DEBUG DeviceEnumerator device_
[0:10:29.069546567] [3205] DEBUG DeviceEnumerator device_
[0:10:29.069689675] [3205] DEBUG DeviceEnumerator device_
[0:10:29.070569564] [3205] DEBUG DeviceEnumerator device_
[0:10:29.071008221] [3205] DEBUG DeviceEnumerator device_
[0:10:29.072645574] [3205] DEBUG Camera camera_
[0:10:29.073274987] [3205] DEBUG Camera camera_
[0:10:29.073481056] [3205] DEBUG DeviceEnumerator device_
[0:10:29.073627035] [3205] DEBUG DeviceEnumerator device_
[0:10:29.073813771] [3205] DEBUG Camera camera_
[0:10:29.074557088] [3205] DEBUG Camera camera_
[0:10:29.074890711] [3205] DEBUG Camera camera_
Available cameras:
luis@RPi4-Ubuntu:~$
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu libcamera Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Luis Melendez
- Solved:
- Last query:
- Last reply: