Linux PCMCIA HOWTODavid Hinds, [email protected]. v2.118, 06 December 2003AbstractThis document describes how to install and use PCMCIA Ca
*For the ActionTec PC 750 card reader, and for the Antec Datachute PCIcard reader, thei82365 driver requires a ``irq_list=0''para
On the NEC Versa S, exclude irq 9, irq 12.*On the NEC Versa 6000 series, exclude port 0x2f8-0x33f, irq 9, irq 10.*On the NEC Versa SX, exclude port 0x
Red Hat, Caldera, MandrakeThese distributions use a System V boot script organization. ThePCMCIA startup script isinstalled as/etc/rc.d/init.d/pcmcia
SuSESuSE uses a System V init script arrangement, with init scripts storedunder /etc/init.d. ThePCMCIA startup script is installed as/etc/init.d/pcmc
Symptoms:*Kernel version mismatch errors are reported when the PCMCIAstartup script runs.*After startup, lsmod does not show any PCMCIA modules.*cardm
Some of the driver modules require kernel services that may or may notbe present,depending on kernel configuration. For instance, the SCSIcard driver
After identifying the host controller type, the socket driver probesfor free ISA bus interrupts. The probe involves programming thecontroller for each
When cardmgr processes IO port ranges listed in/etc/pcmcia/config.opts, the kernel probesthese ranges todetect latent devices that occupy IO space but
Failure to detect card insertions and removalsSymptoms:*Cards are detected and configured properly if present at boottime. *The drivers do not respond
*When a card is inserted, it is identified correctly but cannotbe configured (high/low beeppattern).*One of the following messages will appear in the
This software is a work in progress. It contains bugs, and should beused with caution. I'll domy best to fix problems that are reportedto me, b
Check the system log to see what resources are used by the non-workingcard. Excludethese in /etc/pcmcia/config.opts, and restartthe cardmgr daemon to
The cardmgr daemon configures cards based on a database of knowncard types kept in>cdx>/etc/pcmcia/config>/cdx>. This filedescribes the v
The ``cardctl suspend'' and ``cardctl resume'' commands canbe used to shut down a cardwithout unloading its associated drivers.The
This script will take several seconds to run, to give all clientdrivers time to shut downgracefully. If a device is currently inuse, the shutdown wil
As a general rule, when configuring Linux for a laptop, PCMCIA devicesshould only beconfigured from the PCMCIA device scripts. Do not tryto configure
The following parameters can be defined in network.opts:IF_PORTSpecifies the ethernet transceiver type, for certain 16-bit cards thatdo not
To automatically mount and unmount NFS filesystems, first add allthese filesystems to/etc/fstab, but include noautoin the mount options. In network.o
*The driver used by the IBM and 3Com token ring adaptersseems to behave very badly ifthe cards are not connected to a ringwhen they get initialized.
*Use real network cables. Don't even think about using that old phonecord you found inyour basement. And this means Category 5 cable for100base
device "serial_cs" class "serial" module "misc/serial", "serial_cs"Serial device parametersThe following para
*Intel i82365sl B, C, and DF steps, 82092AA*O2Micro OZ6729, OZ6730, OZ6812, OZ6832, OZ6833, OZ6836, OZ6860,OZ6922,OZ6933, OZ6912*Omega Micro 82C365G,
*Is the modem configured successfully by serial_cs? Again, checkthe systemlog and look for messages from the serial_cs driver.
Parallel device parametersThe following parameters can be defined in parport.opts:LINKSpecifies a path for a symbolic link to be created to the printe
A list of SCSI devices connected to this host adapter will be shown instab, and the SCSIconfiguration script,/etc/pcmcia/scsi, will be called once for
SCSI device parametersThe following parameters can be defined in scsi.opts:LINKSpecifies a path for a symbolic link to be created to this device.DO&am
Comments about specific cards*The Adaptec APA-1480 CardBus card needs a large IO port window (256contiguousports aligned on a 256-port boundary). It
PCMCIA memory cardsThe memory_cs driver handles all types of memory cards, as wellas providingdirect access to the PCMCIA memory address sp
Here is an example of a script that will automatically mount memorycards based on whichsocket they are inserted into:case "$ADDRESS" in*,0,0
Configuration options for FTL partitions can be given inftl.opts, which is similar in structure tomemory.opts.The device address passed to ftl.opts co
Diagnosing problems with ATA/IDE adapters*An IO port conflict may cause the IDE driver to misdetect the drivegeometry and report``INVALID GEOMETRY: 0
Resource allocation for PCMCIA devicesIn theory, it should not really matter which interrupt is allocated towhich device, as long astwo devices are no
When will my favorite (unsupported) card become supported?Unfortunately, they usually don't pay me to write device drivers, soif you would like t
Multiple INT pins are often connected to the same PIRQ pin. Usually,the connections fromINT pins to PIRQ pins are arranged to spreadinstalled devices
If you are having problems that you think may be related to PCIinterrupt configuration, youshould first verify that you have areasonably current PCMCI
In general, it is the responsibility of the BIOS to program a bridgefor the appropriate interruptdelivery method. However, there aresystems that do t
No PCI interrupt assignment; no routing tableSymptoms:*The Intel PCIC probe reports ``no pci irq'' for each socket.*No interrupt routing tab
To find out the current scheme setting, run:cardctl schemeBy default, the scheme setting is persistent across boots. This canhave undesirable effects
This is an advanced configuration technique, and requires a high levelof familiarity with Linuxand the PCMCIA system. Be sure to read allthe relevant
Finally, invoke lilo with:lilo -r /mntWhen lilo is invoked with -r, it performs all actionsrelative to the specified alternate rootdirectory. The rea
lilo -C lilo.confNote that in this case, the lilo.conf file uses absolute pathsthat include /mnt. I did this in theexample because the targetfilesyst
After editing /etc/pcmcia/config, you can signal cardmgrto reload the file with:kill -HUP `cat /var/run/cardmgr.pid`If you do set up an entry for a ne
PCMCIA floppy interface cardsThe PCMCIA floppy interface used in the Compaq Aero and a few otherlaptops is not yetsupported by this package. The snag
Current ``stable'' kernel sources and patches are availablefromftp://ftp.kernel.org/pub/linux/kernel/v2.4. Currentmodule utilities can be f
Interpreting kernel trap reportsIf your problem involves a kernel fault, the register dump from thefault is only useful if youcan translate the fault
So, the fault is located in tc574_attach().In this example, the fault did not cause a total system lockup, soksyms could be executedafter t
There are a few register-level debugging tools in thedebug_tools/ subdirectory ofthe PCMCIA distribution. Thedump_tcic and dump
In many cases, the largest barrier to supporting a new card type isobtaining technicalinformation from the manufacturer. It may bedifficult to figure
With this arrangement, when the contributed driver is unpacked, itbecomes essentially part ofthe PCMCIA source tree. It can make useof the PCMCIA hea
To use the kernel PCMCIA drivers, configure the kernelwithCONFIG_HOTPLUG, CONFIG_PCMCIA, andusuallyCONFIG_CARDBUS ena
Build 'trusting' versions of card utilities?Some of the support utilities (cardctl and cardinfo) can becompiled either in ``safe''
Startup optionsThe PCMCIA startup script recognizes several groups of startupoptions, set via environmentvariables. Multiple options should beseparat
*The pcmcia_core module has the cis_speed parameterforchanging the memory speed used for accessing a card's Card Informatio
Komentarze do niniejszej Instrukcji