+ Post New Thread
Results 1 to 5 of 5
*nix Thread, Webcam Driver help needed please in Technical; ...
  1. #1

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,521
    Thank Post
    1,333
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199

    Webcam Driver help needed please

    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:

    Code:
    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..

  2. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    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.
    Last edited by powdarrmonkey; 20th September 2009 at 09:38 PM.

  3. #3

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,521
    Thank Post
    1,333
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    ok added the source

    Code:
    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

  4. #4

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,521
    Thank Post
    1,333
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    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?

  5. #5

    Join Date
    Feb 2010
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

SHARE:
+ Post New Thread

Similar Threads

  1. Using a webcam as a CCTV.
    By Midget in forum Hardware
    Replies: 7
    Last Post: 13th September 2013, 07:49 AM
  2. Webcam Driver Help, Please!
    By tmcd35 in forum Hardware
    Replies: 4
    Last Post: 17th October 2009, 09:39 PM
  3. Yet another webcam query
    By LeMarchand in forum Hardware
    Replies: 9
    Last Post: 3rd April 2009, 03:38 PM
  4. Webcam software
    By Chuckster in forum Windows
    Replies: 2
    Last Post: 8th October 2008, 04:12 PM
  5. Webcam Software
    By trekmad in forum Educational Software
    Replies: 2
    Last Post: 5th March 2008, 05:28 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •