/etc/rd.c/init.d/pcmcia broken in YDL 3.0
yellowdog-general@lists.terrasoftsolutions.com
yellowdog-general@lists.terrasoftsolutions.com
Sun Dec 14 07:32:02 2003
I don't know if this is old news or not. I had to change
/etc/rc.d/init.d/pcmcia for Yellow Dog 3.0. Is there an update I missed?
Thanks, George
Details:
I was finally able to get my Linksys WPC11, version 3 card working in
my Wallstreet PowerBook G3 under Yellog Dog Linux 3.0. The problem is
that the /etc/rc.d/pcmcia script is broken.
I modified /etc/rc.d/pcmcia as shown:
# 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.o $CORE_OPTS
# /sbin/modprobe $PCIC.o $PCIC_OPTS
# /sbin/modprobe ds.o
# 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
*For reference, here are the contents of some of the other config files and some other info:
*contents of /etc/modules.conf
alias char-major-4 off
alias eth1 orinoco_cs
alias sound-slot-0 dmasound_pmac
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
*contents of /etc/sysconfig/pcmcia
PCMCIA=yes
PCIC=i82365
CORE_OPTS=
CARDMGR_OPTS=-f
*contents of /etc/sysconfig/network-scripts/ifconfig-eth1
USERCTL=no
PEERDNS=yes
GATEWAY=
TYPE=Wireless
DEVICE=eth1
HWADDR=00:06:25:2a:ee:38
BOOTPROTO=dhcp
NETMASK=
ONBOOT=no
DHCP_HOSTNAME=
IPADDR=
NAME=
DOMAIN=
ESSID=
CHANNEL=1
MODE=Auto
KEY=s:
RATE=11Mb/s
*contents of /etc/pcmcia/config.opts
# Many comments not shown
# powerbook g3
# GGG 20031124 As per www.mpifr-bonn.mpd.de...
# include memory 0x80000000-0x80ffffff
include memory 0x90000000-0x9003ffff
include port 0x100-0x1ff
# Options for Raylink/WebGear driver: uncomment only one line...
# Generic ad-hoc network
module "ray_cs" opts "essid=ADHOC_ESSID hop_dwell=128 beacon_period=256 translate=1"
*Output from /sbin/lsmod
Module Size Used by Not tainted
orinoco_cs 6504 1
orinoco 36816 0 [orinoco_cs]
ds 9984 2 [orinoco_cs]
hermes 10944 0 [orinoco_cs orinoco]
yenta_socket 13744 2
pcmcia_core 55040 0 [orinoco_cs ds yenta_socket]
dmasound_pmac 75856 0 (autoclean)
dmasound_core 15488 0 (autoclean) [dmasound_pmac]
i2c-core 19968 0 (autoclean) [dmasound_pmac]
soundcore 6920 3 (autoclean) [dmasound_core]
autofs 13376 0 (autoclean) (unused)
iptable_filter 2544 0 (autoclean) (unused)
ip_tables 16496 1 [iptable_filter]
*Commands to get the card going
service pcmcia start
ifup eth1