Camera fails to initialize:
Ensure that the camera is enabled and there is enough GPU memory, Note that there isa config.txt in /boot/firmware when ubuntu is running but editing that seems to not do anything. Instead shut down the raspberry pi and pull the MicroSD card and plug it into your laptop so you can view it without ubuntu running.
-
Locate the file config.txt in the boot microsd when viewing it on your laptop.
-
Add the following lines to the
config.txt
file if they are not already there.
And then reboot. Note that the config.txt file will say that you should not modify it and instead make the changes in a file called userconfig.txt. However I found that the userconfig.txt file is not invoked. So I added the lines above directly to config.txt.
- Check the amount of gpu_memory
- Check that the camera is supported and detected:
- Snap a picture to a jpeg