Jump to content

Recommended Posts

Posted

I cant seem to get the webcam working on my laptop. It used to work a few kernels ago, but it seems the way I got it working back then doesnt work anymore. It is a Ricoh webcam, used in my Sony Vaio TZ.

 

Ive just spent the last few hours trying to get it working.

 

Ive tried this:

 

How to install a Sony Vaio MotionEye webcam driver (ricoh r5u870) on Kubuntu 8.04 Hardy Heron - Cranked.Me

 

which i thought was the source i needed to compile, but it gives this:

 

root@rubuntu:/home/robert/r5u870-0.11.2# make
make -C /lib/modules/2.6.28-15-generic/build M=/home/robert/r5u870-0.11.2 V=0 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-15-generic'
 CC [M]  /home/robert/r5u870-0.11.2/r5u870.o
/home/robert/r5u870-0.11.2/r5u870.c:866:1: warning: "V4L2_CID_SHARPNESS" redefined
In file included from include/linux/videodev.h:16,
                from /home/robert/r5u870-0.11.2/usbcam/usbcam.h:40,
                from /home/robert/r5u870-0.11.2/r5u870.c:59:
include/linux/videodev2.h:875:1: warning: this is the location of the previous definition
 CC [M]  /home/robert/r5u870-0.11.2/usbcam/usbcam_dev.o
/home/robert/r5u870-0.11.2/usbcam/usbcam_dev.c: In function ‘usbcam_work_ref’:
/home/robert/r5u870-0.11.2/usbcam/usbcam_dev.c:779: warning: format not a string literal and no format arguments
 CC [M]  /home/robert/r5u870-0.11.2/usbcam/usbcam_fops.o
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c: In function ‘usbcam_v4l_open’:
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:115: error: implicit declaration of function ‘videobuf_queue_pci_init’
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c: In function ‘usbcam_v4l_ioctl’:
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1130: error: implicit declaration of function ‘video_usercopy’
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1134: error: implicit declaration of function ‘video_ioctl2’
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c: At top level:
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1176: error: unknown field ‘type’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1177: error: unknown field ‘type2’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1180: error: unknown field ‘vidioc_querycap’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1180: warning: initialisation makes integer from pointer without a cast
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1180: error: initialiser element is not computable at load time
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1180: error: (near initialisation for ‘usbcam_videodev_template.num’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1181: error: unknown field ‘vidioc_enum_fmt_cap’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1181: warning: initialisation makes integer from pointer without a cast
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1182: error: unknown field ‘vidioc_g_fmt_cap’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1182: warning: initialisation makes integer from pointer without a cast
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1183: error: unknown field ‘vidioc_s_fmt_cap’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1183: warning: initialisation makes integer from pointer without a cast
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1183: error: initialiser element is not computable at load time
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1183: error: (near initialisation for ‘usbcam_videodev_template.tvnorms’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1184: error: unknown field ‘vidioc_try_fmt_cap’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1184: warning: initialisation makes integer from pointer without a cast
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1184: error: initialiser element is not computable at load time
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1184: error: (near initialisation for ‘usbcam_videodev_template.current_norm’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1185: error: unknown field ‘vidioc_reqbufs’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1185: warning: initialisation from incompatible pointer type
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1186: error: unknown field ‘vidioc_querybuf’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1186: warning: initialisation from incompatible pointer type
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1187: error: unknown field ‘vidioc_qbuf’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1187: warning: excess elements in struct initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1187: warning: (near initialisation for ‘usbcam_videodev_template’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1188: error: unknown field ‘vidioc_dqbuf’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1188: warning: excess elements in struct initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1188: warning: (near initialisation for ‘usbcam_videodev_template’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1189: error: unknown field ‘vidiocgmbuf’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1189: warning: excess elements in struct initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1189: warning: (near initialisation for ‘usbcam_videodev_template’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1190: error: unknown field ‘vidioc_enum_input’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1190: warning: excess elements in struct initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1190: warning: (near initialisation for ‘usbcam_videodev_template’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1191: error: unknown field ‘vidioc_streamon’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1191: warning: excess elements in struct initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1191: warning: (near initialisation for ‘usbcam_videodev_template’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1192: error: unknown field ‘vidioc_streamoff’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1192: warning: excess elements in struct initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1192: warning: (near initialisation for ‘usbcam_videodev_template’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1193: error: unknown field ‘vidioc_g_input’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1193: warning: excess elements in struct initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1193: warning: (near initialisation for ‘usbcam_videodev_template’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1194: error: unknown field ‘vidioc_s_input’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1194: warning: excess elements in struct initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1194: warning: (near initialisation for ‘usbcam_videodev_template’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1195: error: unknown field ‘vidioc_queryctrl’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1195: warning: excess elements in struct initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1195: warning: (near initialisation for ‘usbcam_videodev_template’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1196: error: unknown field ‘vidioc_g_ctrl’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1196: warning: excess elements in struct initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1196: warning: (near initialisation for ‘usbcam_videodev_template’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1197: error: unknown field ‘vidioc_s_ctrl’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1197: warning: excess elements in struct initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1197: warning: (near initialisation for ‘usbcam_videodev_template’)
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1198: error: unknown field ‘vidioc_querymenu’ specified in initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1198: warning: excess elements in struct initialiser
/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.c:1198: warning: (near initialisation for ‘usbcam_videodev_template’)
make[3]: *** [/home/robert/r5u870-0.11.2/usbcam/usbcam_fops.o] Error 1
make[2]: *** [/home/robert/r5u870-0.11.2/usbcam] Error 2
make[1]: *** [_module_/home/robert/r5u870-0.11.2] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-15-generic'
make: *** [all] Error 2

 

I had the uvcvideo module loaded so i did rmmod before running the above but it still didnt work

and i found this but not sure how to make use of it: Ricoh R5U870 webcam driver [LWN.net]

 

Also, i found this Webcam Ricoh Motion Eye on fedora 11 - FedoraForum.org so I installed the libusb-dev in case that was why.. still no.. and this article seems to suggest it should just work ..:: Palmix.org R5U870 Linux ::..

 

Ive been all over the interwebs trying to find out how to get this working... posting here as a last resort (should have tried here first, could maybe have saved me the last 3 hours!)

 

Oh, and I also tried this Ubuntu Forums - View Single Post - Sony Vaio MotionEye Webcam... Any Success? but it gave me errors about pub_key not being in place or something..

 

This is a current skype topic about my exact model, UVC Webcam-Ricoh(05ca:183a)-r5u870 - can see good pic in test (640x480), but during video call caller can see only small distorted pic (320x240) - Skype Community and they seem to have it working

 

Sorry for the long post with a lot of externel links.. hopefully someone can figure out whats up..

Posted (edited)

The module you're compiling is trying to link to the video4linux headers, make sure you've got them installed. Looks like version incompatibility though :(

 

Oh, and I also tried this Ubuntu Forums - View Single Post - Sony Vaio MotionEye Webcam... Any Success? but it gave me errors about pub_key not being in place or something..

 

It's a package from a Ubuntu Personal Package Archive and has a different signing key from the official respositories; you can install the key (if you trust the author) from https://launchpad.net/~intuitivenipple/+archive/ppa

 

I had the uvcvideo module loaded so i did rmmod before running the above but it still didnt work

and i found this but not sure how to make use of it: Ricoh R5U870 webcam driver [LWN.net]

 

That one's a patch for the kernel source itself. Unless you're familiar with building your own kernels and modules (and all the other dangers that entails, like a non-booting system) you probably want to avoid that one if you can.

 

I think the Ubuntu PPA is probably your best bet to try first.

Edited by powdarrmonkey
Posted

ok added the source

 

robert@rubuntu:~$ sudo apt-get install r5u870-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed
 r5u870-dkms
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
Need to get 178kB of archives.
After this operation, 647kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
 r5u870-dkms
Install these packages without verification [y/N]? y
Get: 1 http://ppa.launchpad.net jaunty/main r5u870-dkms 0.11.3-0ubuntu1~tj~ppa1j [178kB]
Fetched 178kB in 3s (46.1kB/s)      
Selecting previously deselected package r5u870-dkms.
(Reading database ... 194468 files and directories currently installed.)
Unpacking r5u870-dkms (from .../r5u870-dkms_0.11.3-0ubuntu1~tj~ppa1j_all.deb) ...
Processing triggers for man-db ...
Setting up r5u870-dkms (0.11.3-0ubuntu1~tj~ppa1j) ...
Loading new r5u870-0.11.3 DKMS files...

Creating symlink /var/lib/dkms/r5u870/0.11.3/source ->
                /usr/src/r5u870-0.11.3

DKMS: add Completed.
Installing prebuilt kernel module binaries (if any)
Building module...

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area.....
make KERNELRELEASE=2.6.28-15-generic -C /lib/modules/2.6.28-15-generic/build M=/var/lib/dkms/r5u870/0.11.3/build...........
cleaning build area....

DKMS: build Completed.
Installing module...

usbcam.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/2.6.28-15-generic/updates/dkms/

r5u870.ko:
Running module version sanity check.
- Original module
  - No original module exists within this kernel
- Installation
  - Installing to /lib/modules/2.6.28-15-generic/updates/dkms/

depmod.....................

DKMS: install Completed.

 

seems to have gone on with no error

 

guess ill need to reboot to see if its worked

Posted

Nah, that didnt work.

 

What do you reckon is causing a conflict?

 

Im not sure why I cant just compile that module and modprobe?

 

Also, how would I check if I have the video4linux headers?

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...