Forum
Raspberry Camera module - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Peripherals (/forum-27.html)
+--- Thread: Raspberry Camera module (/thread-2175.html)



Raspberry Camera module - DomoJimbo - 14th Mar, 2014 02:44 AM

Hello all,

I am new to Xbian and I love it !

I wonder to know if the Raspberry Camera module can be supported under Xbian ?

I have give 2 tries to modify /boot/config.txt:

1) add
start_x=1
=> don't work

2) add
start_file=start_x.elf
fixup_file=fixup_x.dat
=> don't work

Any help would be appreciated.

Thanks in advance


RE: Raspberry Camera module - IriDium - 14th Mar, 2014 02:55 AM

I believe the camera module needs to supported in the Kernel, so at the moment it is not supported in Xbian.

It should be included in future updates but as to when, I'm not too sure.

Dare I say it but Raspbmc and of course Raspbian does support the camera module :-(


RE: Raspberry Camera module - mk01 - 16th Mar, 2014 08:26 AM

what about opening an issue on github ? Wink

just checked the kernel and almost all media drivers and platform codecs are compiled as modules.

brcm 2835 platform cam support can be loaded with

modprobe bcm2835-v4l2


Raspberry Camera module NOIR and motion - duno - 2nd Jun, 2014 09:11 PM

(14th Mar, 2014 02:44 AM)DomoJimbo Wrote:  I wonder to know if the Raspberry Camera module can be supported under Xbian ?

Yes.

Try this:

Code:
sudo apt-get install automake autoconf gettext libtool libjpeg62-dev libv4l-dev git gawk g++
git clone git://git.linuxtv.org/v4l-utils.git
cd v4l-utils
autoreconf -vfi
./configure
make
sudo make install

After that, try to test with

Code:
sudo modprobe bcm2835-v4l2
v4l2-ctl --set-fmt-video=width=2592,height=1944,pixelformat=3
v4l2-ctl --stream-mmap=3 --stream-count=1 --stream-to=test1.jpg

I use Xbian 1.0 RC2 with a Raspberry NOIR and it works for me.

Some more informations:
To install the cam as capture device type:
Code:
sudo modprobe bcm2835-v4l2
sudo v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat="H264" -d /dev/video0

Then install "motion"
Code:
sudo apt-get install motion

Here is my motion.conf.txt copy it to /etc/motion/motion.conf

Server is running on port 8008 (http://myXbianServer:8008)

If you want to run as daemon
Code:
sudo nano /etc/default/motion

Code:
#start_motion_daemon=no
start_motion_daemon=yes

and in my motion.conf

Code:
# Daemon
############################################################

# Start in daemon (background) mode and release terminal (default: off)

#daemon off
daemon on

1280x720 is working. On 1920x1080 I get an error Sad

To load the module on startup

"sudo nano /etc/modules" and add bcm2835-v4l2


RE: Raspberry Camera module - IriDium - 3rd Jun, 2014 01:23 AM

Out of interest - what do you use the camera module for, with Xbian?


RE: Raspberry Camera module - duno - 3rd Jun, 2014 06:05 AM

(3rd Jun, 2014 01:23 AM)IriDium Wrote:  Out of interest - what do you use the camera module for, with Xbian?

Just for learning ... maybe later for room control, I don't know yet ...


RE: Raspberry Camera module - uv4l uv4l-raspicam - duno - 6th Jun, 2014 07:55 AM

I have a problem to install uv4l and uv4l-raspicam.

Code:
xbian@xbian ~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be upgraded:
  uv4l
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 543 kB of archives.
After this operation, 139 kB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://www.linux-projects.org/listing/uv4l_repo/raspbian/ wheezy/main uv4l armhf 1.9.1 [543 kB]
Fetched 543 kB in 0s (566 kB/s)
Create a snapshot of '/tmp/btrfs-snap/root/@' in '/tmp/btrfs-snap/root/@btrfs-auto-snap_apt-run-2014-06-05-2342'
Transaction commit: none (default)
Delete subvolume '/tmp/btrfs-snap/root/@last_good_known'
Create a snapshot of '/tmp/btrfs-snap/root/@btrfs-auto-snap_apt-run-2014-06-05-2342' in '/tmp/btrfs-snap/root/@last_good_known'
Transaction commit: none (default)
Delete subvolume '/tmp/btrfs-snap/root/@btrfs-auto-snap_apt-run-2014-06-02-1224'
@btrfs-auto-snap_apt-run-2014-06-05-2342, 1 created snapshots, 1 destroyed snapshots, 0 warnings.
(Reading database ... 50542 files and directories currently installed.)
Preparing to replace uv4l 1.9 (using .../archives/uv4l_1.9.1_armhf.deb) ...
Unpacking replacement uv4l ...
Processing triggers for man-db ...
Setting up uv4l (1.9.1) ...
xbian@xbian

Code:
xbian@xbian ~ $ sudo apt-get install uv4l uv4l-raspicam
Reading package lists... Done
Building dependency tree      
Reading state information... Done
uv4l is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
uv4l-raspicam : Depends: libraspberrypi0 (>= 1.20140107-1) but it is not installable
E: Unable to correct problems, you have held broken packages.
xbian@xbian ~ $

What about these "libraspberrypi0" ?

I followed the instructions from

http://www.linux-projects.org/modules/sections/index.php?op=viewarticle&artid=14

Can someone help?


RE: Raspberry Camera module - mk01 - 23rd Jun, 2014 05:55 AM

@duno

I have the feeling that libraspberrypi0 is just virtual package name (or just virtual dependency) for RPI firmware files and Broadcom libs.

They are of course present on XBian. To confirm, edit /var/lib/dpkg/status, proceed to line
Code:
Package: xbian-package-firmware

(at that line section for xbian-package-firmware deb is starting)
move few lines down to "Provides:" and add "libraspberrypi0" to them.

after that you should be able to finish installing those packages. and if they will also work (and they will) that will be confirmation that those libs are fine and available in XBian. after you confirms, I will change xbian-package-firmware's control file to provide this dependency.


RE: Raspberry Camera module - Boubou - 10th Jul, 2014 04:09 AM

Testing that !
Thanks a lot !


RE: Raspberry Camera module - dkorneel - 13th Aug, 2014 08:09 AM

Hi,

after install the v4l-utils, i can't load the bcm2835-v4l2 module, i simply don't found it. Should it be under /lib/modules?

error message for modprobe:
Code:
FATAL: Module bcm2835-v4l2 not found.

version:
Code:
1.0Beta2
Linux xbian 3.10.12+



RE: Raspberry Camera module - CurlyMo - 13th Aug, 2014 05:14 PM

Code:
root@pi:~# modprobe bcm
bcm203x       bcm2708_wdog  bcm3510       bcm87xx       bcma-hcd
bcm2708-rng   bcm2835-v4l2  bcm5974       bcma

Code:
root@pi:~# uname -r
3.12.20+

Code:
root@pi:~# apt-cache policy xbian-package-kernel
xbian-package-kernel:
  Installed: 1.3-6.20



RE: Raspberry Camera module - IriDium - 14th Aug, 2014 12:36 AM

Just for interest, I got a model A RPi working with Rasbian and "motion" camera streaming program. This could then be viewed in Xbian over the network with a XBMC addon called IP Camera. There is also another addon called Security Cam which shows the image of a networked camera when the door bell is run (I haven't played around with that yet).