Again: Linux and the Vaio TZ webcam

Today I have found this page, which has a ready-to-use version of the r5u870 webcam driver for Linux. I have also added an ebuild to Gentoo bug #176824 which fetches driver sources using Subversion, so you will get always the latest working code when installing. Heck, I am starting to think I should publish my local Gentoo overlay somewhere…

Update: I have just published my overlay here. You can sync against rsync://foobar.homeunix.org/hario-overlay or get a branch using Bazaar (bzr co rsync://foobar.homeunix.org/hario-overlay).

Update: Removed check for CONFIG_VIDEO_BUF kernel option, updated ebuilds should work with zen-sources as well as gentoo-sources 😀

Advertisements

10 thoughts on “Again: Linux and the Vaio TZ webcam

  1. Thanks for the ebuild. Unfortunately, it won’t compile using zen-sources kernel 2.6.24-rc6-zen0. The kernel option CONFIG_VIDEO_BUF is not available, but VIDEOBUF_GEN is. zen-sources was the easiest way for me to apply alsa patches for snd-intel-hda on my Vaio SZ640 (speaker mute problem with headphones).

  2. I have updated the live subversion ebuild so it does not check for CONFIG_VIDEO_BUF anymore, as the proper dependency is selected by CONFIG_VIDEO_VIVI. Also, I have added an ebuild for version 0.10.2 which fetches the tarball instead of using subversion. I hope the updated ebuilds work better, because I will take a look at zen-sources in the next couple of days (I am tired of the speaker mute bug). Thanks for your advice 😀

  3. The build compiled now, but loading the module produces these errors:

    r5u870: Unknown symbol usbcam_ctrl_add
    r5u870: Unknown symbol usbcam_curframe_get
    r5u870: Unknown symbol usbcam_claim_interface
    r5u870: Unknown symbol usbcam_curframe_testpattern
    r5u870: Unknown symbol usbcam_urbstream_stop
    r5u870: Unknown symbol usbcam_urbstream_start
    r5u870: Unknown symbol usbcam_ctrl_add_tmpl
    r5u870: Unknown symbol usbcam_urbstream_cleanup
    r5u870: Unknown symbol usbcam_register_mod
    r5u870: Unknown symbol usbcam_curframe_abortall
    r5u870: Unknown symbol usbcam_curframe_complete_detail
    r5u870: Unknown symbol usbcam_unregister
    r5u870: Unknown symbol usbcam_urbstream_init
    r5u870: Unknown symbol usbcam_choose_altsetting
    r5u870: Unknown symbol usbcam_ctrl_alloc
    r5u870: Unknown symbol usbcam_urbstream_config_iso

    These symbols appear to be part of the USBCAM library that the driver depends on:
    http://lwn.net/Articles/232690/

    Perhaps I missed some option in the 2.6.24-rc6 kernel or the kernel doesn’t support these options.

    Also, I found r5u870-0.20.0.tar.bz2 here:
    http://ubuntuforums.org/showthread.php?t=514292&page=4

  4. I modified the svn-based ebuild so it also installs the usbcam driver. Also I added an ebuild for version 0.10.2 and set up a Trac instance to organize myself regarding the overlay 🙂

    I tested the latest zen-sources, and I found that the issue with the speakers is gone, which is great, but the virtual video driver used by the r5u870 driver was splitted, so you will need to apply this single-line patch to recent kernel sources, and then the r5u870 driver will work again.

    Regarding the usbcam driver, it was not merged in the main kernel tree, as far as I know.

    The 0.20.0 tarball which can be found in Ubuntuforums is approximately the same as the 0.10.2 which I made the ebuild for.

  5. Thanks again for the patch. All modules loading correctly
    I have a Vaio VGN-FE41M.

    The output of the #lsusb command is:
    Bus 001 Device 004: ID 05ca:1836 Ricoh Co., Ltd

    I’m using the 2.6.24.3 kernel source recompiled by me with the r5u870-0.11.2 driver.
    I patched the kernel sources and recompled. Now the webcam is working!

    Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s