I seem to have received a bad Pi Camera v2.1, SKU DEV-14028.
https://www.sparkfun.com/products/14028
It has an internal problem.
Symptoms are: when trying to access the camera with raspistill always get these error messages:
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
Possible causes/solutions found on-line are
“Increase the GPU memory in /boot/config.txt” (done that)
“Upgrade to the latest version of Raspbian” (done that)
“Double check the cables” (Done that 4 times)
“make sure another program isn’t using the camera module” (done that)
“The camera module has an internal problem. replace it”
The final possibility that the module is bad is the only one left. It has been confirmed by trying the camera module connected to two different raspberry Pi’s and cables, both of which work correctly with my older v1.3 Pi camera, but swapping in the new camera gives the above errors. The only difference is the camera module.
After wasting several hours on this I’m convinced it’s a bad camera. Anything else I should check?