I did an apt-get update && apt-get upgrade about twelve hours ago on all of the systems.
Most of the systems still work fine, with my code unchanged. However, three systems are now having different issues, despite being set-up identically, and running the exact same software.
I have a separate post about two of the three problematic systems (here: https://www.raspberrypi.org/forums/view ... 8&t=262647), but in this post I'd like to troubleshoot the issue with one of the three systems, which is unable to use the camera...
I have a fairly complicated script, but the gist of it is that it uses raspistill to take a photo. So I decided to test raspistill itself with the minimum options:
Code: Select all
$ raspistill -o image.jpg
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly
I also understand this error could mean a lack of memory. But I ran my script while viewing the output of htop, which showed a barely-noticeable increase in memory usage (it hovered around 80MB used, and an awful lot more free/available). So it's not an out-of-memory issue.
I tried running memtester to check the memory, and it passed the tests.
I haven't changed my code at all and it's working perfectly on all my other systems so I know it isn't my code. To be sure, I deleted the code running on the Pi and downloaded a fresh copy from my git repo.
I have tried rebooting, and also completely powering down and having someone unplug and re-plug the power in to turn it back on, but that didn't help.
Clutching at straws, I opted to run sudo rpi-update (I know you're not meant to do it normally, but I felt I had exhausted every other option). That ran and no errors appeared. I then rebooted as it instructed, and then re-ran the above raspistill command, but that resulted in the same error again.
I also tried uninstalling and then reinstalling raspistill:
Code: Select all
sudo apt remove libraspberrypi-bin
Code: Select all
sudo apt-get install -y libraspberrypi-bin
I also tried sudo apt purge libraspberrypi-bin (to remove config files) and then reinstalling, but again, same error.
I have also checked raspi-config; the camera interface is definitely enabled, and the graphics memory is set to 200MB, which is the same settings as all the other systems.
Last night I tried to install python 3.5.3 on all my systems. It worked on all but two (I can't remember what the error message said) - not this particular system, though. For the two where it didn't work, I had to uninstall python3 and then reinstalled it and it seemed to work. But again, that wasn't this system, so I don't think that's related.
The power logs I have show 100% uptime and no sudden loss of power for the system, so I don't think it is a corrupt SD card, although I haven't done any tests to prove such...
Can anyone please suggest any possible solutions or ways of at least diagnosing what the problem might be?
Thanks in advance.
David
Some potentially-useful diagnostics:
Code: Select all
$ vcgencmd get_camera
supported=1 detected=0
Code: Select all
$ vcgencmd version
Jan 16 2020 16:00:12
Copyright (c) 2012 Broadcom
version a15d66d3615281e13110f10573bf580c4d1156fa (clean) (release) (start_x)
Code: Select all
$ sudo raspi-gpio get
BANK0 (GPIO 0 to 27):
GPIO 0: level=1 fsel=0 func=INPUT
GPIO 1: level=1 fsel=0 func=INPUT
GPIO 2: level=1 fsel=0 func=INPUT
GPIO 3: level=1 fsel=0 func=INPUT
GPIO 4: level=1 fsel=0 func=INPUT
GPIO 5: level=1 fsel=0 func=INPUT
GPIO 6: level=1 fsel=0 func=INPUT
GPIO 7: level=1 fsel=0 func=INPUT
GPIO 8: level=1 fsel=0 func=INPUT
GPIO 9: level=0 fsel=0 func=INPUT
GPIO 10: level=0 fsel=0 func=INPUT
GPIO 11: level=0 fsel=0 func=INPUT
GPIO 12: level=0 fsel=0 func=INPUT
GPIO 13: level=0 fsel=0 func=INPUT
GPIO 14: level=1 fsel=4 alt=0 func=TXD0
GPIO 15: level=1 fsel=4 alt=0 func=RXD0
GPIO 16: level=0 fsel=0 func=INPUT
GPIO 17: level=0 fsel=0 func=INPUT
GPIO 18: level=0 fsel=0 func=INPUT
GPIO 19: level=0 fsel=0 func=INPUT
GPIO 20: level=0 fsel=0 func=INPUT
GPIO 21: level=0 fsel=0 func=INPUT
GPIO 22: level=0 fsel=0 func=INPUT
GPIO 23: level=0 fsel=0 func=INPUT
GPIO 24: level=0 fsel=0 func=INPUT
GPIO 25: level=0 fsel=0 func=INPUT
GPIO 26: level=0 fsel=0 func=INPUT
GPIO 27: level=0 fsel=0 func=INPUT
BANK1 (GPIO 28 to 45):
GPIO 28: level=1 fsel=4 alt=0 func=SDA0
GPIO 29: level=1 fsel=4 alt=0 func=SCL0
GPIO 30: level=0 fsel=1 func=OUTPUT
GPIO 31: level=0 fsel=1 func=OUTPUT
GPIO 32: level=1 fsel=0 func=INPUT
GPIO 33: level=1 fsel=0 func=INPUT
GPIO 34: level=1 fsel=7 alt=3 func=SD1_CLK
GPIO 35: level=1 fsel=7 alt=3 func=SD1_CMD
GPIO 36: level=1 fsel=7 alt=3 func=SD1_DAT0
GPIO 37: level=1 fsel=7 alt=3 func=SD1_DAT1
GPIO 38: level=1 fsel=7 alt=3 func=SD1_DAT2
GPIO 39: level=1 fsel=7 alt=3 func=SD1_DAT3
GPIO 40: level=0 fsel=1 func=OUTPUT
GPIO 41: level=1 fsel=1 func=OUTPUT
GPIO 42: level=0 fsel=0 func=INPUT
GPIO 43: level=1 fsel=4 alt=0 func=GPCLK2
GPIO 44: level=0 fsel=1 func=OUTPUT
GPIO 45: level=0 fsel=1 func=OUTPUT
BANK2 (GPIO 46 to 53):
GPIO 46: level=1 fsel=0 func=INPUT
GPIO 47: level=1 fsel=1 func=OUTPUT
GPIO 48: level=0 fsel=4 alt=0 func=SD0_CLK
GPIO 49: level=1 fsel=4 alt=0 func=SD0_CMD
GPIO 50: level=1 fsel=4 alt=0 func=SD0_DAT0
GPIO 51: level=1 fsel=4 alt=0 func=SD0_DAT1
GPIO 52: level=1 fsel=4 alt=0 func=SD0_DAT2
GPIO 53: level=1 fsel=4 alt=0 func=SD0_DAT3
Code: Select all
$ uname -a
Linux v1iOTS3 4.19.95+ #1292 Thu Jan 16 15:39:51 GMT 2020 armv6l GNU/Linux
Code: Select all
$ cat /etc/*-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Code: Select all
$ cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 697.95
Features : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7
Hardware : BCM2835
Revision : 9000c1
Serial : 00000000674f94fe
Model : Raspberry Pi Zero W Rev 1.1