old-www/LDP/Mobile-Guide/html/mobile-guide-p2c1s2-pcmcia-...

530 lines
7.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>PCMCIA Controller</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Linux on the Road"
HREF="index.html"><LINK
REL="UP"
TITLE="Hardware in Detail: CPU, Display, Keyboard, Sound and More"
HREF="mobile-guide-p2c1-hardware-in-detail.html"><LINK
REL="PREVIOUS"
TITLE="Centrino(tm), Centrino-Duo(tm)"
HREF="mobile-guide-p2c1s1-centrino.html"><LINK
REL="NEXT"
TITLE="Graphics Chip"
HREF="mobile-guide-p2c1s4-graphic-chip.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Linux on the Road: </TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="mobile-guide-p2c1s1-centrino.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 12. Hardware in Detail: CPU, Display, Keyboard, Sound and More</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="mobile-guide-p2c1s4-graphic-chip.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="mobile-guide-p2c1s2-pcmcia-controller"
></A
>12.5. <SPAN
CLASS="acronym"
>PCMCIA</SPAN
> Controller</H1
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN1849"
></A
>12.5.1. Linux Compatibility Check</H2
><P
>&#13; With the <B
CLASS="command"
>probe</B
> command, which is included in the
<SPAN
CLASS="acronym"
>PCMCIA</SPAN
>-CS package by David Hinds you can get the type
of the <SPAN
CLASS="acronym"
>PCMCIA</SPAN
> controller. Also available by the
command <B
CLASS="command"
>cat /proc/pci</B
>.
</P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN1856"
></A
>12.5.2. Related Documentation</H2
><P
>&#13;
<P
></P
><OL
TYPE="1"
><LI
><P
>&#13; <A
HREF="http://pcmcia-cs.sourceforge.net/ftp/doc/PCMCIA-HOWTO.html"
TARGET="_top"
><SPAN
CLASS="acronym"
>PCMCIA</SPAN
>-HOWTO</A
>
</P
></LI
></OL
>
</P
></DIV
><DIV
CLASS="sect2"
><H2
CLASS="sect2"
><A
NAME="AEN1864"
></A
>12.5.3. <SPAN
CLASS="acronym"
>PCMCIA</SPAN
> Configuration - Survey</H2
><P
>&#13; In the mailing lists where I'm a member, the question
"How can I set up <SPAN
CLASS="acronym"
>PCMCIA</SPAN
> support,
after the Linux installation?" comes up sometimes.
Therefore I try to give a short survey. But the
authoritative source for the latest information about the
<EM
><SPAN
CLASS="acronym"
>PCMCIA</SPAN
> Card Services for Linux</EM
>,
including documentation, files, and generic
<SPAN
CLASS="acronym"
>PCMCIA</SPAN
> information is the
<A
HREF="http://pcmcia-cs.sourceforge.net/"
TARGET="_top"
>Linux <SPAN
CLASS="acronym"
>PCMCIA</SPAN
> Information Page</A
>
. For problems with <SPAN
CLASS="acronym"
>PCMCIA</SPAN
> and
<SPAN
CLASS="acronym"
>APM</SPAN
> see the chapter <SPAN
CLASS="acronym"
>APM</SPAN
>.
</P
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN1877"
></A
>12.5.3.1. Software</H3
><P
>&#13;
<P
></P
><OL
TYPE="1"
><LI
><P
>&#13; Install the newest available <SPAN
CLASS="acronym"
>PCMCIA</SPAN
>-CS package, if
you take a rpm or deb package it is quite easy.
</P
></LI
><LI
><P
>&#13; Read the <SPAN
CLASS="acronym"
>PCMCIA</SPAN
> HOWTO, usually included in the
<SPAN
CLASS="acronym"
>PCMCIA</SPAN
>-CS package.
</P
></LI
><LI
><P
>&#13; If necessary, install a new kernel.
</P
></LI
><LI
><P
>&#13; Make sure your kernel has module support and <SPAN
CLASS="acronym"
>PCMCIA</SPAN
>
support enabled (and often <SPAN
CLASS="acronym"
>APM</SPAN
> support)
</P
></LI
><LI
><P
>&#13; Make sure your kernel also includes support for the cards you want to
use, e.g. network support for a NIC card, serial support for a modem
card, SCSI support for a SCSI card and so on.
</P
></LI
><LI
><P
>&#13; If you have a custom made kernel, don't forget to compile the
<SPAN
CLASS="acronym"
>PCMCIA</SPAN
>-CS source against your kernel.
</P
></LI
></OL
>
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN1899"
></A
>12.5.3.2. <SPAN
CLASS="acronym"
>PCMCIA</SPAN
> Controller</H3
><P
>&#13;
<P
></P
><OL
TYPE="1"
><LI
><P
>&#13; Use the <B
CLASS="command"
>probe</B
> command to get information whether your
<SPAN
CLASS="acronym"
>PCMCIA</SPAN
> controller is detected or not.
</P
></LI
><LI
><P
>&#13; Edit the file <TT
CLASS="filename"
>/etc/sysconfig/pcmcia</TT
>. It should
include <B
CLASS="command"
>PCMCIA=y</B
> and the type of your
<SPAN
CLASS="acronym"
>PCMCIA</SPAN
> controller, e.g.
<B
CLASS="command"
>PCIC=i82365</B
>. Since Kernel 2.6 there
is a standard driver <B
CLASS="command"
>PCIC=yenta_socket</B
>.
</P
></LI
><LI
><P
>&#13; Start the <SPAN
CLASS="acronym"
>PCMCIA</SPAN
> services typically via
<B
CLASS="command"
>/etc/init.d/pcmcia start</B
>. If you get two high beeps,
everything should be fine.
</P
></LI
><LI
><P
>&#13; If something doesn't work, check the messages in
<TT
CLASS="filename"
>/var/log/messages</TT
> .
</P
></LI
></OL
>
</P
></DIV
><DIV
CLASS="sect3"
><H3
CLASS="sect3"
><A
NAME="AEN1922"
></A
>12.5.3.3. <SPAN
CLASS="acronym"
>PCMCIA</SPAN
> Card</H3
><P
>&#13;
<P
></P
><OL
TYPE="1"
><LI
><P
>&#13; Check your card with <B
CLASS="command"
>cardctl ident</B
> .
</P
></LI
><LI
><P
>&#13; If your card is not in <TT
CLASS="filename"
>/etc/pcmcia/config</TT
>, edit the
file <TT
CLASS="filename"
>/etc/pcmcia/&#60;MYCARD&#62;.conf</TT
> appropriately. Take an
entry in the first file as a model. You may try every driver, just in
case it might work, for instance the <B
CLASS="command"
>pcnet_cs</B
>
supports many NE2000 compatible <SPAN
CLASS="acronym"
>PCMCIA</SPAN
> network cards.
Note: it is a bad practice to edit <TT
CLASS="filename"
>/etc/pcmcia/config</TT
>
directly, because all changes will be lost with the next update.
</P
></LI
><LI
><P
>&#13; A list of supported cards is included in the
<SPAN
CLASS="acronym"
>PCMCIA</SPAN
>-CS package. The current list you may find at
<A
HREF="http://pcmcia-cs.sourceforge.net/ftp/SUPPORTED.CARDS"
TARGET="_top"
>SUPPORTED.CARDS</A
>.
</P
><P
>&#13; Since there are not all cards mentioned I have set up a
<A
HREF="http://tuxmobil.org/pcmcia_linux.html"
TARGET="_top"
><SPAN
CLASS="acronym"
>PCMCIA</SPAN
> Cards Survey of Cards Supported by Linux</A
>
.
</P
></LI
><LI
><P
>&#13; If you use a X11 GUI, you can use <B
CLASS="command"
>cardinfo</B
> to insert,
suspend, or restart a <SPAN
CLASS="acronym"
>PCMCIA</SPAN
> card via a nice
graphical interface.
</P
></LI
></OL
>
</P
><P
>&#13;
<DIV
CLASS="figure"
><A
NAME="AEN1949"
></A
><P
><B
>Figure 12-1. Screenshot of cardinfo</B
></P
><DIV
CLASS="mediaobject"
><P
><IMG
SRC="images/cardinfo.png"></P
></DIV
></DIV
>
</P
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="mobile-guide-p2c1s1-centrino.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="mobile-guide-p2c1s4-graphic-chip.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Centrino(tm), Centrino-Duo(tm)</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="mobile-guide-p2c1-hardware-in-detail.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Graphics Chip</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>