You are not logged in.

#1 2008-11-24 19:20:23

malachi
Member
Registered: 2008-11-11
Posts: 15

[SOLVED] r5u870 and Kernel 2.6.27

Apparently these don't mesh well - there are a -lot- of compiler complaints when installing r5u870 from pacman, or from the sources at http://wiki.mediati.org/R5u870. The closest I could get to getting this damn thing working (I have the 05ca:1836 Ricoh motioneye webcam in my laptop) was by following the wiki page:
http://wiki.archlinux.org/index.php/Web … 28Ricoh.29
Basically this said to install r5u87x-hg from aur. After eventually figuring out I needed the mercurial package for that to work, I get some errors. The building seems to work fine but since I don't know what they mean, I include them here:

pulling from http://bitbucket.org/ahixon//r5u87x
/usr/lib/python2.6/site-packages/mercurial/demandimport.py:46: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  mod = _origimport(head, globals, locals)
real URL is http://bitbucket.org/ahixon/r5u87x/
searching for changes
no changes found
rm -fr *.o loader
rm -fr *.gch loader
rm *~
rm: cannot remove `*~': No such file or directory
make: *** [clean] Error 1
cc -g -Wall -march=x86-64 -mtune=generic -O2 -pipe `pkg-config --cflags glib-2.0 libusb` -c loader.c loader.h
loader.c: In function 'r5u87x_ucode_upload':
loader.c:113: warning: 'dump_fd' may be used uninitialized in this function
cc -g -Wall -march=x86-64 -mtune=generic -O2 -pipe -o loader loader.o `pkg-config --libs glib-2.0 libusb`

After this, the package appears to install successfully, and I am told I need to run "loader". This, run as a regular user or as root, returns:

Searching for device...
Found camera   : 05ca:1836
Firmware       : ucode/r5u87x-05ca-1836.fw


Error: Failed to open ucode/r5u87x-05ca-1836.fw. Does it exist?

I had a quick look for that file, and it appears to exist as /lib/firmware/r5u87x-05ca-1836.fw. I tried linking /lib/ucode to /lib/firmware but no go.

I'd really like to get this webcam working. Does anyone have any insight?

Thanks!

Last edited by malachi (2008-12-01 16:40:27)

Offline

#2 2008-11-24 19:34:41

malachi
Member
Registered: 2008-11-11
Posts: 15

Re: [SOLVED] r5u870 and Kernel 2.6.27

So, a little bit closer...

loader -f /lib/firmware/r5u87x-05ca-1836.fw returns:

Searching for device...
Found camera   : 05ca:1836
Firmware       : /lib/firmware/r5u87x-05ca-1836.fw

Camera reports positive microcode state.
Camera reports microcode version 0x0115.
Not doing anything - camera already setup.

Successfully uploaded firmware to device 05ca:1836!

(I'm not sure if it said the whole "camera already setup" the first time, I've run it twice now and don't have the original output). Anyway, it looks like it's working fine but as far as I can tell I still can't use my webcam (ekiga doesn't find it).

UPDATE: the wiki page referred to above suggests testing the webcam with the command:
vlc v4l:// :v4l-vdev="/dev/video0" :v4l-adev="/dev/audio2"
I don't have a /dev/video0, or any other /dev/video for that matter... what have I done wrong?

Last edited by malachi (2008-11-24 20:18:04)

Offline

#3 2008-11-29 21:31:58

virtual
Member
From: Thesaloniki/Greece
Registered: 2006-10-17
Posts: 9

Re: [SOLVED] r5u870 and Kernel 2.6.27

You need to reload module uvcvideo after using loader. Try (as root):

modprobe -r uvcvideo; loader; modprobe uvcvideo

Offline

#4 2008-12-01 16:39:41

malachi
Member
Registered: 2008-11-11
Posts: 15

Re: [SOLVED] r5u870 and Kernel 2.6.27

Thanks! Works a charm.

Do I need to do this on every reboot?

Offline

#5 2008-12-01 18:35:12

OrionFyre
Member
Registered: 2008-03-16
Posts: 68

Re: [SOLVED] r5u870 and Kernel 2.6.27

Malachi, yes the loader simply loads a small chunk of code to the camera's volatile . Anytime the power to your webcam shuts off (turn off the laptop or put it into hibernate) the code will disappear from the camera's ram.

You can go into your boot scripts and have loader run before module loading I would think, so that re-modprobe will not be necessary.

I personally use my cam quite infrequently so I just have an alias in root's .bashrc
alias loadcam = "modprobe -r uvcvideo && loader -f /lib/firmware/r5u87x-05ca-1836.fw && modprobe uvcvideo"

Offline

#6 2009-01-14 02:08:01

jack82
Member
Registered: 2009-01-13
Posts: 3

Re: [SOLVED] r5u870 and Kernel 2.6.27

It doesn't work form me, so i used this and it finally works:

http://avilella.googlepages.com/r5u870_patched.tar.bz2

cd ~/r5u870_patched
make
sudo make install

sudo modprobe -r uvcvideo
sudo modprobe r5u870

found here http://ubuntuforums.org/showthread.php? … 870&page=6

Last edited by jack82 (2009-01-14 02:08:47)

Offline

Board footer

Powered by FluxBB