Welcome to the CSIR Meraka Institute's "COIN" Blog

Monday, June 14, 2004

PCMCIA: Notes about specific Linux distributions

Source: http://ftp.idilis.ro/mirrors/ftp.suse.com/pub/suse/i386/8.0/docu/PCMCIA-HOWTO

Notes about specific Linux distributions

This section is incomplete. Corrections and additions are welcome.

2.5.1. Debian


2.5.2. Red Hat, Caldera, Mandrake

These distributions use a System V boot script organization. The
PCMCIA startup script is installed as /etc/rc.d/init.d/pcmcia, and
boot options are kept in /etc/sysconfig/pcmcia. Beware that
installing the Red Hat package may install a default boot option file
that has PCMCIA disabled. To enable PCMCIA, the ``PCMCIA'' variable
should be set to ``yes''. Red Hat's default syslogd configuration
will record all interesting messages in /var/log/messages.

Red Hat's PCMCIA package contains a replacement for the network setup
script, /etc/pcmcia/network, which meshes with the Red Hat linuxconf
configuration system. This is convenient for the case where just one
network adapter is used, with one set of network parameters, but does
not have the full flexibility of the regular PCMCIA network script.
Compiling and installing a clean PCMCIA source distribution will
overwrite the network script, breaking the link to the Red Hat tools.
If you prefer using the Red Hat tools, either use only Red Hat RPM's,
or replace /etc/pcmcia/network.opts with the following:

if [ -f /etc/sysconfig/network-scripts/ifcfg-$2 ] ; then
start_fn () {
. /etc/sysconfig/network-scripts/ifcfg-$1
if [ "$ONBOOT" = "yes" ] ; then /sbin/ifup $1 ; fi
stop_fn () {
/sbin/ifdown $1

Starting with the 3.1.22 release, the PCMCIA installation script will
automatically append a variant of this to the default network.opts
file, so this problem should no longer be an issue.

If you do use linuxconf (or netconf) to configure your network
interface, leave the ``kernel module'', ``I/O port'', and ``irq''
parameters blank. Setting these parameters may interfere with proper
operation of the PCMCIA subsystem.

At boot time, when the Red Hat network subsystem starts up, it may say
``Delaying eth0 initialization'' and ``[FAILED]''. This is actually
not a failure: it means that this network interface will not be
initialized until after the PCMCIA network device is configured.

Red Hat bundles their slightly modified PCMCIA source distribution
with their kernel sources, rather than as a separate source package.
When preparing to build a new set of PCMCIA drivers, you will
generally want to install Red Hat's kernel-source RPM (kernel-
source-*.i386.rpm), and not the kernel SRPM (kernel-*.src.rpm). The
SRPM is tailored for building their kernel RPM files, which is not
exactly what you want. With Red Hat 7.0, the kernel-source RPM also
includes a mis-configured PCMCIA source tree; if you want to use it,
delete their PCMCIA config.out file and re-do "make config".


No comments: