<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kevin Godby &#187; microdia</title>
	<atom:link href="http://kevin.godby.org/tag/microdia/feed/" rel="self" type="application/rss+xml" />
	<link>http://kevin.godby.org</link>
	<description>My Weblog</description>
	<lastBuildDate>Mon, 17 May 2010 17:40:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HOWTO: Serval Performance (SERP2) webcam</title>
		<link>http://kevin.godby.org/2008/05/09/howto-serval-performance-serp2-webcam/</link>
		<comments>http://kevin.godby.org/2008/05/09/howto-serval-performance-serp2-webcam/#comments</comments>
		<pubDate>Fri, 09 May 2008 06:41:43 +0000</pubDate>
		<dc:creator>Kevin Godby</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[microdia]]></category>
		<category><![CDATA[serval]]></category>
		<category><![CDATA[system76]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://kevin.godby.org/?p=77</guid>
		<description><![CDATA[I spent a little time this evening working on getting the built-in webcam of my Serval Performance (SERP2) to function under Ubuntu Hardy (8.04). I found a driver for the webcam here: https://groups.google.com/group/microdia. Instructions on downloading and building the driver follow. For more thorough instructions, I&#8217;d recommend looking at Testing the Microdia driver. Since we&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[<p>I spent a little time this evening working on getting the built-in webcam of my <a href="http://system76.com/" title="System76 website: manufacturer of the Serval Performance laptops">Serval Performance</a> (SERP2) to function under <a href="http://www.ubuntu.com/" title="Ubuntu Linux">Ubuntu</a> Hardy (8.04).</p>
<p>I found a driver for the webcam here:  <a href="https://groups.google.com/group/microdia" title="Microdia kernel driver">https://groups.google.com/group/microdia</a>.</p>
<p>Instructions on downloading and building the driver follow.  For more thorough instructions, I&#8217;d recommend looking at <a href="https://groups.google.com/group/microdia/web/testing-microdia-driver-draft" title="Testing the Microdia Driver">Testing the Microdia driver</a>.</p>
<p>Since we&#8217;ll be compiling a kernel driver, you&#8217;ll need to install the kernel source files:</p>
<pre>
$ sudo apt-get install kernel-package linux-source build-essential exuberant-ctags
</pre>
<p>Next you&#8217;ll need to install <code>git</code> so we can download the driver&#8217;s source code:</p>
<pre>
$ sudo apt-get install git-core gitk git-gui git-doc curl
</pre>
<p>Now we&#8217;ll download the webcam driver:</p>
<pre>
$ git clone http://repo.or.cz/r/microdia.git
</pre>
<p>Let&#8217;s compile the kernel module (webcam driver):</p>
<pre>
$ cd microdia
</pre>
<p>The Microdia driver uses some functions that only exist in newer kernels.  Check your kernel version:</p>
<pre>
$ uname -r
</pre>
<p>If the kernel version is less than 2.6.22, open the <tt>microdia.h</tt> file in a text editor and add the following two lines after the <tt>#define MICRODIA_H</tt> line (around line 35):</p>
<pre>
#define list_first_entry(ptr, type, member) \
        list_entry((ptr)->next, type, member)
</pre>
<p>Make sure you included the initial hash mark (#).  Save your file and continue with these instructions.</p>
<p>Now we&#8217;ll compile the Microdia driver:</p>
<pre>
$ make
</pre>
<p>Load the <tt>videodev</tt> kernel module so that <tt>/dev/video0</tt> can be created:</p>
<pre>
$ sudo modprobe videodev
</pre>
<p>Now let&#8217;s load our new kernel driver:</p>
<pre>
$ sudo insmod ./microdia.ko
</pre>
<p>Check to see that the driver loaded successfully:</p>
<pre>
$ dmesg
</pre>
<p>You should see something like this at the bottom of the output:</p>
<pre>
[107348.616179] microdia: Microdia USB2.0 webcam driver startup
[107348.616563] microdia: Microdia USB2.0 Webcam - Product ID 624F.
[107348.616570] microdia: Release: 0100
[107348.616574] microdia: Number of interfaces : 1
[107348.623570] microdia: Microdia USB2.0 Camera is now controlling video device /dev/video0
[107348.623950] usbcore: registered new interface driver usb_microdia_driver
</pre>
<p>Now we can test the driver with Ekiga:</p>
<pre>
$ sudo apt-get install ekiga
</pre>
<p>Run Ekiga by selecting &#8220;Ekiga Softphone&#8221; from the &#8220;Internet&#8221; menu.  After walking through the configuration wizard (if this is the first time you&#8217;ve run Ekiga), you should be able to test your webcam.  During configuration, set the video manager to V4L2.  You should see &#8220;Microdia <acronym title="Universal Serial Bus">USB</acronym> Video Camera&#8221; listed in the video devices.</p>
<p>If all goes well, you may wish to install the kernel module/driver so that it will be loaded automatically each time you boot your computer.</p>
<p>Copy the driver to the kernel tree:</p>
<pre>
$ sudo cp microdia.ko /lib/modules/`uname -r`/kernel/drivers/media/video/usbvideo/
</pre>
<p>Now add the <tt>videodev</tt> and <tt>microdia</tt> drivers to your <tt>/etc/modules</tt> file so that they get loaded automatically every time you boot your computer:</p>
<pre>
$ sudo sh -c "echo videodev >> /etc/modules"
$ sudo sh -c "echo microdia >> /etc/modules"
</pre>
<p>The biggest hurdle that I see is that you&#8217;d have to recompile the driver each time the kernel is upgraded.  <a href="http://system76.com" title="System76">System76</a> is working on packaging it up as a System76 driver that can be updated as new kernels are released, and so that users don&#8217;t have to compile kernel drivers themselves (&rsquo;cause let&rsquo;s face it, no one should have to learn to do that!).</p>
<p>Please note that I didn&#8217;t write the driver; I just discovered it this evening and got it running.</p>
<p>If you run into any problems, see <a href="https://groups.google.com/group/microdia/web/testing-microdia-driver-draft">the Microdia kernel driver site</a> for more details from the driver developers themselves.  There is also a <a href="http://ubuntuforums.org/showthread.php?t=774863" title="&ldquo;SERP2 built-in webcam and Hardy?&rdquo; forum thread">thread</a> on the <a href="http://ubuntuforums.org/" title="Ubuntu Forums">Ubuntu Forums</a> covering this topic.</p>
]]></content:encoded>
			<wfw:commentRss>http://kevin.godby.org/2008/05/09/howto-serval-performance-serp2-webcam/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.423 seconds -->

