Closed tomtom215 closed 2 years ago
You might want to reduce the memory you've given to the GPU. When you use the libcamera apps, they use memory from the CPU - not the GPU, so if you give too much memory to the GPU - you limit the capabiltiies for allocating camera buffers.
hi, /boot/config.txt
[all] dtparam=act_led_trigger=default-on gpu_mem=76 camera_auto_detect=1 dtoverlay=vc4-fkms-v3d
libcamera is working (but no preview under X) by enable dtoverlay=vc4-fkms-v3d also the old dtoverlay=vc4-kms-v3d you can run libcamera under /bin/bash
also look at
https://forums.raspberrypi.com/viewtopic.php?t=323547&sid=094938929d9e0143916c5a1cf11c3c6f
hi, /boot/config.txt
[all] dtparam=act_led_trigger=default-on gpu_mem=76 camera_auto_detect=1 dtoverlay=vc4-fkms-v3d #dtoverlay=imx477
libcamera is working by enable dtoverlay=vc4-fkms-v3d also the old dtoverlay=vc4-kms-v3d
Thanks @cortmen, that seemed to do the trick.
@kbingham I tried your suggestion first and lowered GPU memory to 16MB but still received the same error
For anyone running on Bullseye, all I need to do is edit my /boot/config.txt to uncomment the line
# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
Then I rebooted and ran this command successfully for the first time:
libcamera-still -n -o test1.jpg --viewfinder-width 1920 --viewfinder-height 1080
Device: Raspberry Pi Zero 2 Kernel: 5.10.92-v7+ Installation Guide Followed: https://arducam.com/downloads/arducam-imx519-start-guide.pdf RPI-Config GPU Memory: 256 MB Glamor GPU: Enabled
Command Ran:
libcamera-still -n -o test1.jpg --viewfinder-width 1920 --viewfinder-height 1080
Error Output: