LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 549|回复: 0

谁能帮我看一下为什么不能启动pcmcia网卡

[复制链接]
发表于 2004-10-17 12:57:32 | 显示全部楼层 |阅读模式
谁能帮我看一下为什么不能启动pcmcia网卡
没有网卡我很难用呀!!!
先thx
btw
我系统是Vectorlinux2.5
rc.S
rc.M
rc.pcmcia
rc.modules
我都粘到附件里了
希望高手救我
不能上BBS真是郁闷呀!!!



下面是开机log


==> rc.M Entering multiuser mode....
...............................................
Setting up PCMCIA                             .
...............................................
PCIC module not defined in startup options!   .
...............................................
这是为什么???
Setting up serial devices
Configuring modem serial port: /dev/ttyS3
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
Setting up net subsystem
Configuring eth0 as 219.242.108.100...
SIOCSIFADDR: No such device
eth0: unknown interface: No such device
SIOCSIFBRDADDR: No such device
eth0: unknown interface: No such device
SIOCSIFNETMASK: No such device
SIOCADDRT: Network is unreachable
Setting up characters devices: keyboard
Starting local setup
INIT: Entering runlevel: 2
............................................................

下面是/etc/pcmcia/config 和config.opts
..........................................................
/etc/pcmcia/config

# PCMCIA Card Configuration Database
#
# config 1.189 2001/12/20 13:50:57 (David Hinds)
#

# config.opts is now included at the very end

#
# Device driver definitions
#
device "3c589_cs"
  class "network" module "3c589_cs"
......................................
                                   这正是我的网卡
device "axnet_cs"
  class "network" module "axnet_cs"

device "ibmtr_cs"
  class "network" module "ibmtr_cs"

.....
...
...............................................
/etc/pcmcia/config.opts
.........................................................
# Local PCMCIA Configuration File
#
#----------------------------------------------------------------------

# System resources available for PCMCIA devices

include port 0x100-0x4ff, port 0x800-0x8ff, port 0xc00-0xcff
include memory 0xc0000-0xfffff
include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff

# High port numbers do not always work...
# include port 0x1000-0x17ff

# Extra port range for IBM Token Ring
include port 0xa00-0xaff

# Resources we should not use, even if they appear to be available

# First built-in serial port
exclude irq 4
# Second built-in serial port
#exclude irq 3
# First built-in parallel port
exclude irq 7

#----------------------------------------------------------------------

# Examples of options for loadable modules

# To fix sluggish network with IBM ethernet adapter...
#module "pcnet_cs" opts "mem_speed=600"

# Options for IBM Token Ring adapters
#module "ibmtr_cs" opts "mmiobase=0xd0000 srambase=0xd4000"

# 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"
# Infrastructure network for older cards
#module "ray_cs" opts "net_type=1 essid=ESSID1"
# Infrastructure network for WebGear
#module "ray_cs" opts "net_type=1 essid=ESSID1 translate=1 hop_dwell=128 beacon_period=256"

# Options for WaveLAN/IEEE driver (AccessPoint mode)...
#module "wvlan_cs" opts "station_name=MY_PC"
# Options for WaveLAN/IEEE driver (ad-hoc mode)...
#module "wvlan_cs" opts "port_type=3 channel=1 station_name=MY_PC"

# Options for Xircom Netwave driver...
#module "netwave_cs" opts "domain=0x100 scramble_key=0x0"









#!/bin/sh

# rc.pcmcia 1.39 2001/10/04 12:30:05 (David Hinds)
#
# This is designed to work in BSD as well as SysV init setups.  See
# the HOWTO for customization instructions.

# Tags for Red Hat init configuration tools
#
# chkconfig: 2345 45 96
# processname: cardmgr
# pidfile: /var/run/cardmgr.pid
# config: /etc/pcmcia/config
# config: /etc/pcmcia/config.opts
# description: PCMCIA support is usually to support things like ethernet \
#              and modems in laptops.  It won't get started unless \
#              configured so it is safe to have it installed on machines \
#              that don't need it.

# Save option values passed in through the environment
for N in PCMCIA PCIC PCIC_OPTS CORE_OPTS CARDMGR_OPTS SCHEME ; do
    V=`eval echo '$'$N` ; if [ "$V" ] ; then eval ENV_$N="$V" ; fi
done

# Source PCMCIA configuration, if available
if [ -f /etc/pcmcia.conf ] ; then
    # Debian startup option file
    . /etc/pcmcia.conf
elif [ -f /etc/sysconfig/pcmcia ] ; then
    # Red Hat startup option file
    . /etc/sysconfig/pcmcia
else
    # Slackware startup options go right here:
    # Should be either i82365 or tcic
    PCIC=
    # Put socket driver timing parameters here
    PCIC_OPTS=
    # Put pcmcia_core options here
    CORE_OPTS=
    # Put cardmgr options here
    CARDMGR_OPTS=
    # To set the PCMCIA scheme at startup...
    SCHEME=
fi
for N in PCMCIA PCIC PCIC_OPTS CORE_OPTS CARDMGR_OPTS SCHEME ; do
    V=`eval echo '$'ENV_$N` ; if [ "$V" ] ; then eval $N="$V" ; fi
done
if [ "$PCMCIA" -a "$PCMCIA" != "yes" ] ; then exit 0 ; fi

usage()
{
    echo "Usage: $0 {start|stop|status|restart|reload}"
}

cleanup()
{
    while read SN CLASS MOD INST DEV EXTRA ; do
    if [ "$SN" != "Socket" ] ; then
        /etc/pcmcia/$CLASS stop $DEV 2> /dev/null
    fi
    done
}

EXITCODE=1
for x in "1" ; do

    if [ "$PCIC" = "" ] ; then
    echo "CIC module not defined in startup options!"
    break
    fi

    if [ $# -lt 1 ] ; then usage ; break ; fi
    action=$1

    case "$action" in

    start)
    echo -n "Starting PCMCIA services:"
    if [ -d /var/lib/pcmcia ] ; then
        SC=/var/lib/pcmcia/scheme
        RUN=/var/lib/pcmcia
    else
        SC=/var/run/pcmcia-scheme
        RUN=/var/run
    fi
    if [ -L $SC -o ! -O $SC ] ; then rm -f $SC ; fi
    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/insmod $PC/pcmcia_core.o $CORE_OPTS
        /sbin/insmod $PC/$PCIC.o $PCIC_OPTS
        /sbin/insmod $PC/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
    if [ -s /var/run/cardmgr.pid ] && \
        kill -0 `cat /var/run/cardmgr.pid` 2>/dev/null ; then
        echo " cardmgr is already running."
    else
        if [ -r $RUN/stab ] ; then
        cat $RUN/stab | cleanup
        fi
        echo " cardmgr."
        /sbin/cardmgr $CARDMGR_OPTS
    fi
    touch /var/lock/subsys/pcmcia 2>/dev/null
    ;;

    stop)
    echo -n "Shutting down PCMCIA services:"
    if [ -s /var/run/cardmgr.pid ] ; then
        PID=`cat /var/run/cardmgr.pid`
        kill $PID
        echo -n " cardmgr"
        # Give cardmgr a few seconds to handle the signal
        kill -0 $PID 2>/dev/null && sleep 2 && \
        kill -0 $PID 2>/dev/null && sleep 2 && \
        kill -0 $PID 2>/dev/null && sleep 2 && \
        kill -0 $PID 2>/dev/null
    fi
    killall -q "CardBus Watcher"
    if grep -q "ds  " /proc/modules ; then
        echo -n " modules"
        /sbin/rmmod ds
        /sbin/rmmod $PCIC
        /sbin/rmmod pcmcia_core
    fi
    echo "."
    rm -f /var/lock/subsys/pcmcia
    EXITCODE=0
    ;;

    status)
    pid=`/sbin/pidof cardmgr`
    if [ "$pid" != "" ] ; then
        echo "cardmgr (pid $pid) is running..."
        EXITCODE=0
    else
        echo "cardmgr is stopped"
        EXITCODE=3
    fi
    ;;

    restart|reload)
    $0 stop
    $0 start
    EXITCODE=$?
    ;;

    *)
    usage
    ;;

    esac

done

# Only exit if we're in our own subshell
case $0 in *rc.pcmcia) exit $EXITCODE ;; esac

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表