I have installed the "RASPBIAN STRETCH WITH DESKTOP" from https://www.raspberrypi.org/downloads/raspbian/
I have plugged in my camera module correctly (blue stripe facing towards the Ethernet port) to my Raspberry Pi 3
I have updated the packages
1) sudo apt-get update
2) sudo apt-get upgrade
and have also enabled Camera in raspi-config by doing $sudo raspi-config
But still the camera module is not getting detected.
Below are the logs of my Raspberry pi console.
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.9.77-v7+ #1081 SMP Wed Jan 17 16:15:20 GMT 2018 armv7l GNU/Linux
pi@raspberrypi:~ $ vcgencmd get_camera
supported=1 detected=0
pi@raspberrypi:~ $ raspistill -o photo.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 have also tried $sudo rpi-update
to update the firmware but still the camera is not working.
I have followed this post Raspberry Pi Camera Rev 1.3 is not detected , but still no good.
Update:
I used the following command on the Raspberry pi terminal and then the camera worked.
$ sudo modprobe bcm2835-v4l2