<?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>Nicolas Kuttler &#187; kernel</title>
	<atom:link href="http://www.nkuttler.de/tag/kernel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nkuttler.de</link>
	<description>WordPress Services, IT Services</description>
	<lastBuildDate>Wed, 28 Jul 2010 23:49:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Canon Powershot A60 on Debian</title>
		<link>http://www.nkuttler.de/2009/10/04/canon-powershot-a60-on-debian/</link>
		<comments>http://www.nkuttler.de/2009/10/04/canon-powershot-a60-on-debian/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 13:02:52 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[gphoto2]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[powershot]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de/?p=1093</guid>
		<description><![CDATA[Edit: This is a very old (2003) page of mine that needs a new location, and I think this blog is the best place. I bought my camera at the end of april 2003 and after a few minutes of toying around i wanted to connect it to my favorite OS. I have been told [...]]]></description>
			<content:encoded><![CDATA[<p><b>Edit</b>: This is a <strong>very old</strong> (2003) page of mine that needs a new location, and I think this blog is the best place.</p>
<p>I bought my camera at the end of april 2003 and after a few minutes of toying around i wanted to connect it to my favorite OS. I have been told that some of the stuff on this page will work with a powershot A70 or A75 too.<span id="more-1093"></span></p>
<p>Feel free to contact me if you have questions or solutions to any problems. But I&#8217;m in no way an expert. Please notice that I haven&#8217;t changed this page for a very long time and probably won&#8217;t update it any more.</p>
<p>Debian sarge comes with gphoto 2.1.5, I tested 2.1.3.</p>
<a name="wptoc_0_0_0"></a><h1>Preparations</h1>
<a name="wptoc_0_1_0"></a><h2>gphoto2 and hotplug</h2>
<pre># apt-get install gphoto2 hotplug</pre>
<a name="wptoc_0_1_1"></a><h2>Kernel</h2>
<p>I&#8217;m not sure but i guess stock Debian kernels should have all the USB stuff compiled in, if you build your own kernel figure out what you need reading the <a href="http://gphoto.sourceforge.net/doc/manual/">fine gphoto2 manual</a>.</p>
<a name="wptoc_0_1_2"></a><h2>Connect the cam</h2>
<p>Connect the camera to your USB port and and turn it on in replay mode. Try</p>
<pre>$ grep Canon /proc/bus/usb/devices </pre>
<p>You will hopefully see something like</p>
<pre>
S:  Manufacturer=Canon Inc.
S:  Product=Canon Digital Camera
</pre>
<p>If not have a look at <tt>/var/log/messages</tt>. Does your kernel support USB?</p>
<a name="wptoc_0_1_3"></a><h2>Setting permissions</h2>
<p>You don&#8217;t want to run gphoto2 as root, so follow the steps in <tt>/usr/share/doc/libgphoto2-2/README.Debian</tt>. If you don&#8217;t have a usb group yet create it (<tt>man addgroup</tt>) and remember to logout and login after adding yourself (<tt>man adduser</tt>) to the group. Change fstab and set the correct devgid there (<tt>man id</tt>).</p>
<p>I added the following line to my /etc/fstab:</p>
<pre>
none  /proc/bus/usb  usbfs devuid=0,devgid=1002,devmode=0660  0   0
</pre>
<a name="wptoc_0_1_4"></a><h2>First test</h2>
<p>If hotplug found your camera try</p>
<pre>$ gphoto2 --auto-detect</pre>
<p>The output should be</p>
<pre>
Model                          Port
----------------------------------------------------------
Canon PowerShot A60            usb:
</pre>
<p>To download the first picture from your camera type</p>
<pre>$ gphoto2 --get-file 1 </pre>
<p>You will need at least one file (photo, movie) on the cam of course.</p>
<a name="wptoc_0_0_1"></a><h1>Gphoto2 drivers</h1>
<p>The camera can be accessed by two different kind of drivers:</p>
<ol>
<li>The PTP protocol is a manufacturer-independent picture transfer protocol. Libgphoto2 doesn&#8217;t fully support PTP completeley yet.<br />
There is also a project called jphoto that seems supports PTP but looks inactive, I haven&#8217;t tried it yet.</li>
<li>Canon protocol.</li>
</ol>
<p>If you want to capture images with gphoto2 you need the ptp driver. This may work or not with the canon driver in the future.</p>
<a name="wptoc_1_1_0"></a><h2>Driver status</h2>
<table class="sci">
<thead>
<tr>
<th>feature</th>
<th>ptp2 driver 2.1.3</th>
<th>canon driver 2.1.3</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#8211;capture-image</td>
<td>yes</td>
<td>no</td>
</tr>
<tr>
<td>&#8211;capture-movie</td>
<td>no</td>
<td>no</td>
</tr>
<tr>
<td>&#8211;delete-all-files</td>
<td>no (4)</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;delete-file range</td>
<td>no (4)</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;get-all-files</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;get-all-thumbnails</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;get-audio-data</td>
<td>?</td>
<td>?</td>
</tr>
<tr>
<td>&#8211;get-file range</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;get-thumbnail range</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;list-files</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;list-folders</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;mkdir folder</td>
<td>no</td>
<td>yes (1,3)</td>
</tr>
<tr>
<td>&#8211;num-files</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;rmdir folder</td>
<td>?</td>
<td>?</td>
</tr>
<tr>
<td>&#8211;show-info range</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;summary</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;upload-file file</td>
<td>no</td>
<td>yes (2)</td>
</tr>
</tbody>
</table>
<p>Comments:</p>
<ol>
<li>the folder will be in capitals</li>
<li>the .deb in sid DOESN&#8217;T SUPPORT upload.</li>
<li>hm, can&#8217;t create a folder &#8216;folder&#8217;&#8230;
<li>doesn&#8217;t delete everything properly (firmware bug?)</li>
</ol>
<p><b>Note:</b> Mixing the usage of both drivers seems to crash the camera.</p>
<a name="wptoc_0_0_2"></a><h1>More tools for the A60</h1>
<ul>
<li><a href="http://sourceforge.net/projects/libptp">libptp</a> is part of gphoto but there is a stand-alone tool included that uses it to set camera properties.<br />
You can&#8217;t do that with gphoto2.
</li>
<li>
Petr Danecek wrote a tool for for <a href="http://www.ucl.cas.cz/~petr/plant-growth/">periodic capturing</a> for the A70.<br />
It should work with the A60 too (I didn&#8217;t test it yet).
</li>
</ul>
<a name="wptoc_0_0_3"></a><h1>More links&#8230;</h1>
<ul>
<li>I love <a href="http://hugin.sf.net">hugin</a> to stitch my photos!
</li>
<li>Have a look at <a href="http://www.patrice.ch/en/computer/linux/articles/2003/0509">this page about the A60</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/10/04/canon-powershot-a60-on-debian/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Filesystem with huge files cannot be mounted read-write without CONFIG_LBDAF</title>
		<link>http://www.nkuttler.de/2009/09/14/filesystem-with-huge-files-cannot-be-mounted-read-write-without-config_lbdaf/</link>
		<comments>http://www.nkuttler.de/2009/09/14/filesystem-with-huge-files-cannot-be-mounted-read-write-without-config_lbdaf/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 15:43:07 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ext4]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de/?p=956</guid>
		<description><![CDATA[After skipping 2.6.30 and building a new 2.6.31 I suddenly couldn&#8217;t mount my ext4 drive anymore and got this rather confusing error in dmesg: EXT4-fs (sda1): Filesystem with huge files cannot be mounted read-write without CONFIG_LBDAF But&#8230; I don&#8217;t have any huge files on that disk. Not bigger than some DVD iso anyway. After a [...]]]></description>
			<content:encoded><![CDATA[<p>After skipping 2.6.30 and building a new 2.6.31 I suddenly couldn&#8217;t mount my ext4 drive anymore and got this rather confusing error in <tt>dmesg</tt>:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">EXT4-fs (sda1): Filesystem with huge files cannot be mounted
read-write without CONFIG_LBDAF</pre></div></div>

<p>But&#8230; I don&#8217;t have any huge files on that disk. Not bigger than some DVD iso anyway.<span id="more-956"></span></p>
<p>After a few days I finally get the time to check the kernel configuration docs, and they say:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">CONFIG_LBDAF:
&nbsp;
Enable block devices or files of size 2TB and larger.
&nbsp;
This option is required to support the full capacity of large
(2TB+) block devices, including RAID, disk, Network Block
Device, Logical Volume Manager (LVM) and loopback.
&nbsp;
This option also enables support for single files larger than
2TB.
&nbsp;
The ext4 filesystem requires that this feature be enabled in
order to support filesystems that have the huge_file feature
enabled.  Otherwise, it will refuse to mount in the read-write
mode any filesystems that use the huge_file feature, which is
enabled by default by mke2fs.ext4.
&nbsp;
The GFS2 filesystem also requires this feature.
&nbsp;
If unsure, say Y.</pre></div></div>

<p>Well, alright. <tt>mkfs.ext4</tt> has said feature enabled by default. That&#8217;s what you get for building your own kernels and not reading everything in <tt>make oldconfig</tt>.</p>
<p><strong>Edit</strong>:  The feature can be activated at <tt>Enable the block layer  ---&gt;  Support for large (2TB+) block devices and files</tt>, thanks to Arix.</p>
<p><strong>Edit:</strong>: The feature can be removed from an existing filesystem by running the following commands:<br />
<tt>tune2fs -O ^huge_file /dev/whatever</tt><br />
<tt>fsck /dev/whatever</tt><br />
This should allow you to mount the drive without CONFIG_LBDAF in the kernel. Thanks Marcus!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/09/14/filesystem-with-huge-files-cannot-be-mounted-read-write-without-config_lbdaf/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Using any Debian box as a wireless access point</title>
		<link>http://www.nkuttler.de/2009/02/25/using-any-debian-box-as-wireless-access-point/</link>
		<comments>http://www.nkuttler.de/2009/02/25/using-any-debian-box-as-wireless-access-point/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 14:02:45 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[wlan]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=664</guid>
		<description><![CDATA[I just lost an hour trying to configure a Thinkpad T41 as a wireless access point. Most of that time was due to problems with the built-in wlan interface and a kernel recompile to use a prism54-based PCMCIA card. This is mostly a post to remind myself what to do, and how to do it [...]]]></description>
			<content:encoded><![CDATA[<p>I just lost an hour trying to configure a Thinkpad T41 as a wireless access point. Most of that time was due to problems with the built-in wlan interface and a kernel recompile to use a  prism54-based PCMCIA card. This is mostly a post to remind myself what to do, and how to do it on Debian. It&#8217;s not the first time I create an access point, but I do it so infrequently that I always forget something.<span id="more-664"></span></p>
<a name="wptoc_0_0_0"></a><h2>The NIC</h2>
<p>Make sure there&#8217;s a Linux driver for your network interface card. Make sure the card can be run in <tt>master</tt> mode.</p>
<a name="wptoc_0_0_1"></a><h2>DHCP</h2>
<p>The boxes that will connect need an IP. Install <tt>dhcp3-server</tt> and do something like this in <tt>/etc/dhcp3/dhcpd.conf</tt>:</p>
<pre>
[...]
option domain-name "192.168.6.0";
option domain-name-servers 192.168.6.1;
[...]
subnet 192.168.6.0 netmask 255.255.255.0 {
  range 192.168.6.10 192.168.6.15;
  option routers 192.168.6.1;
}
[...]
</pre>
<a name="wptoc_0_0_2"></a><h2>Configure the network</h2>
<p>Configure the interface so that it can be started with <tt>ifup</tt>. Usually you want the connected boxes to have access to whatever internet connection the access point has, so I enable forwarding and masquerading in <tt>/etc/network/interfaces</tt>:</p>
<pre>
iface eth1 inet static
    address 192.168.6.1
    netmask 255.255.255.0
    network 192.168.6.0
    wireless-mode master
    wireless-essid debianftw
    wireless-key1 s:12345
    post-up /bin/echo 1 &gt; /proc/sys/net/ipv4/ip_forward
    post-up /sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
    post-up /etc/init.d/dhcp3-server restart
</pre>
<p><tt>13245</tt> is the WEP password and the network will be called <tt>debianftw</tt>.</p>
<a name="wptoc_0_0_3"></a><h2>Optional: DNS</h2>
<p>You may want to have name servers for the connected boxes. A quick solution is to take those from your <tt>/etc/resolv.conf</tt> and to put them in your <tt>/etc/dhcp3/dhcpd.conf</tt>. There are other solutions, like a caching only DNS server.</p>
<a name="wptoc_0_0_4"></a><h2>Security</h2>
<p>WEP isn&#8217;t a very good encryption but it&#8217;s enough for me. You probably don&#8217;t want to run this setup for a long time, it&#8217;s really just some notes to get me started quickly. Maybe I&#8217;ll add more about security in an update.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/02/25/using-any-debian-box-as-wireless-access-point/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
