Can't modprobe bcm2835-v4l2 to use RPi2 camera module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-raspi2 (Ubuntu) |
New
|
Undecided
|
Paolo Pisati |
Bug Description
I have the RPi camera module for my RPi2, and I'm using the following kernel:
ubuntu@raspi2:~$ uname -a
Linux raspi2 4.3.0-1006-raspi2 #6-Ubuntu SMP Tue Dec 8 03:45:57 UTC 2015 armv7l armv7l armv7l GNU/Linux
I tried to modprobe the camera and got the following:
ubuntu@raspi2:~$ sudo modprobe bcm2835-v4l2
modprobe: ERROR: could not insert 'bcm2835_v4l2': Operation not permitted
dmesg shows:
[ 48.302953] media: Linux media interface: v0.10
[ 48.365596] Linux video capture interface: v2.00
[ 48.455186] : bcm2835-v4l2: error -1 while loading driver
If I use raspi-config to enable the camera I get the following error:
Your firmware appears to be out of date (no start_x.elf). Please update
Changed in linux-raspi2 (Ubuntu): | |
assignee: | nobody → Paolo Pisati (p-pisati) |
Edit /boot/firmware/ config. txt (or wherever you mounted the vfat boot partition) and comment out these lines:
#dtparam=i2c_arm=on
#dtparam=i2c_vc=on
and add these:
gpu_mem=128
start_x=1
Reboot the board, and install:
apt-get install libraspberrypi-bin libraspberrypi-dev
Then, if the camera module is correctly connected you should be able to snap a picture with:
sudo raspistill -o foobar.jpg
To avoid using 'sudo' everytime, the default user should be added to the video group.