Code: Select all
vcgencmd get_camera
Code: Select all
supported=0 detected=0, libcamera interfaces=0
Edit: when running libcamera-hello with sudo like so:
Code: Select all
sudo libcamera-hello
Code: Select all
vcgencmd get_camera
Code: Select all
supported=0 detected=0, libcamera interfaces=0
Code: Select all
sudo libcamera-hello
Code: Select all
sudo apt update && apt full-upgrade
Code: Select all
sudo rpicam-hello
Code: Select all
# vcgencmd get_camera
supported=1 detected=1, libcamera interfaces=0
That implies that something has got messed up with permissions.Bluemethyst wrote: ↑Mon Sep 16, 2024 11:24 pmEdit: when running libcamera-hello with sudo like so:it works perfectly fine... any reason why? and i still cant get it to work with python...Code: Select all
sudo libcamera-hello
Indeed, I did not catch the root v.s. non-root issue, as I usually run as root doing this kind of setups/administration/testing. So just for the topic, I insert 'sudo' as most people use unmodified RPIOS I guess.
Code: Select all
admin@picam:~ $ rpicam-hello
Could not open any dmaHeap device
[0:05:13.870697069] [1591] INFO Camera camera_manager.cpp:316 libcamera v0.3.1+50-69a894c4
[0:05:13.905379190] [1595] ERROR DmaBufAllocator dma_buf_allocator.cpp:116 Could not open any dma-buf provider
[0:05:13.938966830] [1595] WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - please consider moving SDN inside rpi.denoise
[0:05:13.943645741] [1595] ERROR RPI vc4.cpp:216 Failed to register camera imx477 10-001a: -12
Preview window unavailable
ERROR: *** no cameras available ***
Code: Select all
admin@picam:~ $ sudo rpicam-hello
[0:05:07.583339606] [1578] INFO Camera camera_manager.cpp:316 libcamera v0.3.1+ 50-69a894c4
[0:05:07.693058787] [1583] WARN RPiSdn sdn.cpp:40 Using legacy SDN tuning - ple ase consider moving SDN inside rpi.denoise
[0:05:07.699284835] [1583] INFO RPI vc4.cpp:447 Registered camera /base/soc/i2c 0mux/i2c@1/imx477@1a to Unicam device /dev/media0 and ISP device /dev/media1
[0:05:07.699442856] [1583] INFO RPI pipeline_base.cpp:1125 Using configuration file '/usr/share/libcamera/pipeline/rpi/vc4/rpi_apps.yaml'
Preview window unavailable
Mode selection for 2028:1520:12:P
SRGGB10_CSI2P,1332x990/0 - Score: 3456.22
SRGGB12_CSI2P,2028x1080/0 - Score: 1083.84
SRGGB12_CSI2P,2028x1520/0 - Score: 0
SRGGB12_CSI2P,4056x3040/0 - Score: 887
[0:05:07.704570779] [1578] INFO Camera camera.cpp:1191 configuring streams: (0) 2028x1520-YUV420 (1) 2028x1520-SBGGR12_CSI2P
[0:05:07.705300206] [1583] INFO RPI vc4.cpp:622 Sensor: /base/soc/i2c0mux/i2c@1 /imx477@1a - Selected sensor format: 2028x1520-SBGGR12_1X12 - Selected unicam fo rmat: 2028x1520-pBCC
#0 (0.00 fps) exp 15303.00 ag 2.00 dg 1.00
#1 (30.01 fps) exp 15303.00 ag 2.00 dg 1.02
#2 (30.01 fps) exp 15303.00 ag 2.00 dg 1.02
#3 (30.01 fps) exp 15303.00 ag 2.00 dg 1.02
etc, etc....
So it's the permissions on /dev/dma_heap/* that has gone wrong.Code: Select all
Could not open any dmaHeap device