PowerBook Wallstreet G3 - PC CARD Support ?
yellowdog-general@lists.terrasoftsolutions.com
yellowdog-general@lists.terrasoftsolutions.com
Fri Feb 6 07:08:01 2004
First make sure that you /etc/rc.d/init.d/pcmcia is working and launching cardmgr.
Is cardmgr running? To find out do a ps -aux | grep card
Mine shows:
root 414 0.0 0.2 1604 708 ? S 05:31 0:00 /sbin/cardmgr -f
If you don't have cardmgr running, pcmcia cards will not work.
I had to change /etc/rc.d/init.d/pcmcia according to this script:
--- pcmcia.01 2004-02-06 05:42:28.000000000 -0800
+++ pcmcia 2004-01-17 08:14:00.000000000 -0800
@@ -96,27 +96,31 @@
if [ ! -f $SC ] ; then umask 022 ; touch $SC ; fi
if [ "$SCHEME" ] ; then umask 022 ; echo $SCHEME > $SC ; fi
grep -q pcmcia /proc/devices
- if [ $? -ne 0 ] ; then
- 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
- if [ -d $PC ] ; then
- echo -n " modules"
- /sbin/modprobe pcmcia_core $CORE_OPTS
- /sbin/modprobe $PCIC $PCIC_OPTS
- /sbin/modprobe ds
- elif [ -d $KD ] ; then
- /sbin/modprobe pcmcia_core
- /sbin/modprobe $PCIC
- /sbin/modprobe ds
- else
- echo $" module directory $PC not found."
- break
- fi
- fi
+# if [ $? -ne 0 ] ; then
+# 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
+# if [ -d $PC ] ; then
+# echo -n " modules"
+# /sbin/modprobe pcmcia_core $CORE_OPTS
+# /sbin/modprobe $PCIC $PCIC_OPTS
+# /sbin/modprobe ds
+# elif [ -d $KD ] ; then
+# /sbin/modprobe pcmcia_core
+# /sbin/modprobe $PCIC
+# /sbin/modprobe ds
+# else
+# echo $" module directory $PC not found."
+# break
+# fi
+# fi
+ /sbin/modprobe pcmcia_core
+ /sbin/modprobe $PCIC
+ /sbin/modprobe ds
+
if [ -s /var/run/cardmgr.pid ] && \
kill -0 `cat /var/run/cardmgr.pid` 2>/dev/null ; then
echo $" cardmgr is already running."