From: Daniel Ritz <daniel.ritz@gmx.ch>
To: Aaron Mulder <ammulder@alumni.princeton.edu>,
Dax Kelson <dax@gurulabs.com>, Vibol Hou <vibol@khmer.cc>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
Russell King <rmk+lkml@arm.linux.org.uk>
Subject: Re: Dell TrueMobile 1150 PCMCIA/Orinoco/Yenta problem w/ 2.6.4/5
Date: Mon, 7 Jun 2004 23:24:44 +0200 [thread overview]
Message-ID: <200406072324.44310.daniel.ritz@gmx.ch> (raw)
if pcmcia does not work when the ethX alias is there....then may be this patch
patch against the fedora pcmcia init script may help...
and now i go wash my eyes 'cos i looked at fedora's rc.sysinit...eek.
rgds
-daniel
-------
the standard pcmcia-cs init script and therefor i guess all distro init scripts
get the situation wrong where pcmcia_core is already loaded due to a
dependency. the socket driver is not loaded in this situation...
(and it fixes a bug in stop with kernel 2.6)
--- pcmcia.old 2004-06-06 21:32:38.000000000 +0200
+++ pcmcia 2004-06-06 21:48:39.000000000 +0200
@@ -91,23 +91,46 @@
if [ ! -f $SC ] ; then umask 022 ; touch $SC ; fi
if [ "$SCHEME" ] ; then umask 022 ; echo $SCHEME > $SC ; fi
+
+ if [ -d /lib/modules/preferred ] ; then
+ PC=/lib/modules/preferred/pcmcia
+ else
+ PC=/lib/modules/`uname -r`/pcmcia
+ fi
+ KD=/lib/modules/`uname -r`/kernel/drivers/pcmcia
+
+ # make sure pcmcia_core is there
if ! grep -q pcmcia /proc/devices ; then
- if [ -d /lib/modules/preferred ] ; then
- PC=/lib/modules/preferred/pcmcia
+ if [ -x /sbin/modprobe ] ; then
+ /sbin/modprobe pcmcia_core $CORE_OPTS || break
+ elif [ -d $PC ] ; then
+ /sbin/insmod $PC/pcmcia_core.o $CORE_OPTS
else
- PC=/lib/modules/`uname -r`/pcmcia
+ echo "module directory $PC not found."
+ break
fi
- KD=/lib/modules/`uname -r`/kernel/drivers/pcmcia
+ fi
+
+ # load a socket driver
+ if ! grep -q "$PCIC\|yenta_socket" /proc/modules ; then
if [ -x /sbin/modprobe ] ; then
- /sbin/modprobe pcmcia_core $CORE_OPTS || break
/sbin/modprobe $PCIC $PCIC_OPTS >/dev/null 2>&1 ||
(/sbin/modprobe yenta_socket >/dev/null 2>&1 &&
echo "using yenta_socket instead of $PCIC") ||
/sbin/modprobe $PCIC $PCIC_OPTS || break
- /sbin/modprobe ds || break
elif [ -d $PC ] ; then
- /sbin/insmod $PC/pcmcia_core.o $CORE_OPTS
/sbin/insmod $PC/$PCIC.o $PCIC_OPTS
+ else
+ echo "module directory $PC not found."
+ break
+ fi
+ fi
+
+ # load ds
+ if ! grep -q "ds " /proc/modules ; then
+ if [ -x /sbin/modprobe ] ; then
+ /sbin/modprobe ds || break
+ elif [ -d $PC ] ; then
/sbin/insmod $PC/ds.o
else
echo "module directory $PC not found."
@@ -115,6 +138,7 @@
fi
fi
+ # start cardmgr
if [ -s /var/run/cardmgr.pid ] && \
kill -0 `cat /var/run/cardmgr.pid` 2>/dev/null ; then
echo "cardmgr is already running."
@@ -142,7 +166,7 @@
done
fi
killall -q "CardBus Watcher"
- if grep -q "ds " /proc/modules ; then
+ if grep -q "ds " /proc/modules ; then
/sbin/rmmod ds
/sbin/rmmod $PCIC 2>/dev/null || \
/sbin/rmmod yenta_socket 2>/dev/null
next reply other threads:[~2004-06-07 21:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-07 21:24 Daniel Ritz [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-06-03 3:31 Dell TrueMobile 1150 PCMCIA/Orinoco/Yenta problem w/ 2.6.4/5 Aaron Mulder
2004-06-03 6:54 ` Dax Kelson
2004-06-03 11:54 ` Paulo Marques
2004-06-04 3:09 ` Vibol Hou
2004-06-04 7:40 ` Russell King
2004-06-04 21:03 ` Aaron Mulder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200406072324.44310.daniel.ritz@gmx.ch \
--to=daniel.ritz@gmx.ch \
--cc=ammulder@alumni.princeton.edu \
--cc=dax@gurulabs.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+lkml@arm.linux.org.uk \
--cc=vibol@khmer.cc \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox