<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Marcin Juszkiewicz - pcmcia</title><link href="https://marcin.juszkiewicz.com.pl/" rel="alternate"/><link href="https://marcin.juszkiewicz.com.pl/tag/pcmcia/feed/" rel="self"/><id>https://marcin.juszkiewicz.com.pl/</id><updated>2006-06-14T07:56:00+02:00</updated><entry><title>Handling PCMCIA/CF cards in Linux</title><link href="https://marcin.juszkiewicz.com.pl/2006/06/14/handling-pcmciacf-cards-in-linux/" rel="alternate"/><published>2006-06-14T07:56:00+02:00</published><updated>2006-06-14T07:56:00+02:00</updated><author><name>Marcin Juszkiewicz</name></author><id>tag:marcin.juszkiewicz.com.pl,2006-06-14:/2006/06/14/handling-pcmciacf-cards-in-linux/</id><summary type="html">&lt;p&gt;I do not like a way how &lt;span class="caps"&gt;PCMCIA&lt;/span&gt;/&lt;span class="caps"&gt;CF&lt;/span&gt; cards are handled under Linux. For kernels &amp;lt; 2.6.13-rc1 the only choice is &lt;a href="https://pcmcia-cs.sourceforge.net/"&gt;&lt;code&gt;pcmcia-cs&lt;/code&gt;&lt;/a&gt; package with lot of files&amp;nbsp;in &lt;code&gt;/etc/pcmcia/&lt;/code&gt; which are&amp;nbsp;just &lt;code&gt;cardctl ident&lt;/code&gt; output edited a bit with added driver&amp;nbsp;name:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;root@c7x0:~# cardctl ident
Socket …&lt;/code&gt;&lt;/pre&gt;</summary><content type="html">&lt;p&gt;I do not like a way how &lt;span class="caps"&gt;PCMCIA&lt;/span&gt;/&lt;span class="caps"&gt;CF&lt;/span&gt; cards are handled under Linux. For kernels &amp;lt; 2.6.13-rc1 the only choice is &lt;a href="https://pcmcia-cs.sourceforge.net/"&gt;&lt;code&gt;pcmcia-cs&lt;/code&gt;&lt;/a&gt; package with lot of files&amp;nbsp;in &lt;code&gt;/etc/pcmcia/&lt;/code&gt; which are&amp;nbsp;just &lt;code&gt;cardctl ident&lt;/code&gt; output edited a bit with added driver&amp;nbsp;name:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;root@c7x0:~# cardctl ident
Socket 0:
  product info: "Pretec", "CompactWLAN Card 802.11b", "2.5"
  manfid: 0x0156, 0x0002
  function: 6 (network)
root@c7x0:~# tail -n4 /etc/pcmcia/hostap_cs.conf
card "Pretec WLAN"
  version "Pretec", "CompactWLAN Card 802.11b", "2.5"
  manfid 0x0156, 0x0002
  bind "hostap_cs"
root@c7x0:~#
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With newer kernels we have two&amp;nbsp;options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;stick&amp;nbsp;with &lt;code&gt;pcmcia-cs&lt;/code&gt; and it&amp;#8217;s&amp;nbsp;configs&lt;/li&gt;
&lt;li&gt;use&amp;nbsp;new &lt;code&gt;pcmciautils&lt;/code&gt; and &lt;code&gt;udev&lt;/code&gt; rules&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;Pcmciautils&lt;/code&gt; way is nice &amp;#8212; no extra daemon running, cards are handled as hotpluggable &amp;#8212; everything looks nice and clear&amp;#8230; But there is something other &amp;#8212; list of devices handled by driver is in driver itself &amp;#8212; so if you get card which is not there then you have to provide patch for it (like I &lt;a href="/2006/05/23/my-first-linux-26-kernel-patch-accepted/"&gt;already did for some cards&lt;/a&gt;) or try module&amp;nbsp;aliases.&lt;/p&gt;
&lt;p&gt;But both methods has one nasty thing &amp;#8212; no way to tell &amp;#8216;this card &lt;span class="caps"&gt;HAS&lt;/span&gt; to use &lt;span class="caps"&gt;THIS&lt;/span&gt; driver &lt;span class="caps"&gt;NOT&lt;/span&gt; that&amp;#8217; ;( This situation is common for Prism2 based WiFi cards which can be used with &lt;a href="http://www.nongnu.org/orinoco/"&gt;&lt;code&gt;orinoco_cs&lt;/code&gt;&lt;/a&gt; driver (will appear&amp;nbsp;as &lt;code&gt;eth0&lt;/code&gt;) or with &lt;a href="http://hostap.epitest.fi/"&gt;&lt;code&gt;hostap_cs&lt;/code&gt;&lt;/a&gt; driver (appear&amp;nbsp;as &lt;code&gt;wlan0&lt;/code&gt;). For example my Pretec card (ident shown above) is handled by both drivers but only HostAP give me possibility to connect to my home network which use &lt;span class="caps"&gt;WPA&lt;/span&gt;-&lt;span class="caps"&gt;PSK&lt;/span&gt; for security (Orinoco does not support &lt;span class="caps"&gt;WPA&lt;/span&gt; at all). And all because some manufacturers was to lazy to change manfid/prodid of card from the one which reference card&amp;nbsp;had&amp;#8230;&lt;/p&gt;</content><category term="hostap"/><category term="openembedded"/><category term="openzaurus"/><category term="orinoco"/><category term="pcmcia"/><category term="wlan"/><category term="wpa"/></entry><entry><title>Another Nokia product which I do not like.</title><link href="https://marcin.juszkiewicz.com.pl/2006/01/31/another-nokia-product-which-i-do-not-like/" rel="alternate"/><published>2006-01-31T14:02:00+01:00</published><updated>2006-01-31T14:02:00+01:00</updated><author><name>Marcin Juszkiewicz</name></author><id>tag:marcin.juszkiewicz.com.pl,2006-01-31:/2006/01/31/another-nokia-product-which-i-do-not-like/</id><summary type="html">&lt;p&gt;I have Socket Bluetooth Compact Flash card &amp;#8212; it&amp;#8217;s Rev F so it is based on Nokia &lt;span class="caps"&gt;DTL&lt;/span&gt;-1/&lt;span class="caps"&gt;DTL&lt;/span&gt;-4 card and&amp;nbsp;use &lt;code&gt;dtl1_cs&lt;/code&gt; driver.&lt;/p&gt;
&lt;p&gt;Card lack any developer documentation, does not survive suspend/resume which make it very hard to use in Zaurus (I have to eject/insert …&lt;/p&gt;</summary><content type="html">&lt;p&gt;I have Socket Bluetooth Compact Flash card &amp;#8212; it&amp;#8217;s Rev F so it is based on Nokia &lt;span class="caps"&gt;DTL&lt;/span&gt;-1/&lt;span class="caps"&gt;DTL&lt;/span&gt;-4 card and&amp;nbsp;use &lt;code&gt;dtl1_cs&lt;/code&gt; driver.&lt;/p&gt;
&lt;p&gt;Card lack any developer documentation, does not survive suspend/resume which make it very hard to use in Zaurus (I have to eject/insert it after each resume), is limited to 230400 bps&amp;#8230; And have some extra problems &amp;#8212; each time when I have it in my Zaurus C760 I wonder &amp;#8220;will it work this time or not?&amp;#8221; because by most of time it is not even&amp;nbsp;seen:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;root@c7x0:~# cardctl eject;cardctl insert;cardctl ident
Socket 0:
  no product info available
root@c7x0:~# dmesg|tail -n1
cs: pcmcia_socket0: time out after reset.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Anyone want to exchange for&amp;nbsp;any &lt;code&gt;serial_cs&lt;/code&gt; based&amp;nbsp;card?&lt;/p&gt;</content><category term="bluetooth"/><category term="donations"/><category term="nokia"/><category term="pcmcia"/></entry></feed>