Libcamera & IMX519 FAQ

Question 3:
I got an error similar to the following when I ran libcamera:

terminate called after throwing an instance of \'std::runtime_error\'
what(): failed to import fd 21
Aborted

Solution:
For Raspbian Buster users, please also:

  1. Open /boot/config.txt
  2. Add the following line under [all]:
    dtoverlay=vc4-fkms-v3d
  3. Save and reboot

For Raspbian Bullseye users running on Pi Zero ~ Pi 3:,

  1. Open a terminal
  2. Run sudo raspi-config
  3. Navigate to Advanced Options
  4. Enable Glamor graphic acceleration
  5. Reboot your Pi

For more details, please refer to the official forum guide on how to configure the camera module >>