Hello brother, finally i can solve this problem after a lot of hours troubleshooting.
I already share it in my YouTube (
https://youtu.be/on8UlkRvLok)
This problem only occur in camera raspberry pi V2.1 (IMX219) from Element14. But in camera raspberry pi V2.1 from OKdo, i don't get this error
So, the solution when error
"mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates"
You need some initialization with a works camera (me camera from OKdo).
So, the step is
1. Plug your works camera to Raspberry Pi (me using Raspberry Pi 4B)
2. Turn on your Raspberry Pi
3. check
"vcgencmd get_camera"
to make sure your hardware is detected the camera
4. capture image using
"raspistill -v"
and camera will capture the image
5. Then replace the works camera with ENOSPC Error Camera (from Element14)
6. then try to capture the image
"raspistill -v"
and the ENOSPC Error will not occur
Notes:
- But, after the ENOSPC Error Camera works, and then you restart/shutdown the raspberry pi, the error will occur again :(
OS Raspberry Pi 4 Model B (4GB)
- Linux raspberrypi 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l GNU/Linux