LinuxSir.cn,穿越时空的Linuxsir!

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

PXA27x 的开发板上用PCMCIA卡的问题!

[复制链接]
发表于 2005-11-28 08:44:01 | 显示全部楼层 |阅读模式
各位好,有个问题折腾我半个月了,请大家来帮帮忙!

我想在Intel(R) PXA27x 的开发板上用PCMCIA的无线网卡,
首先我的PXA27x开发板上的arm-linux运行得很好,
然后我严格按照PXA27x的readme文档中的PCMCIA部分操作(该部分文档见下),编译了内核及pcmcia-cs 。
结果pcmcia-cs运行不起来,运行cardmgr时报错:“no pcmcia driver in /proc/devices“ ,
插入16位PCMCIA卡和32位CardBus卡都不亮灯。
后来我查了pcmcia-cs中的HowTo文档,它说是“Base PCMCIA kernel modules do not load“ 。
这是为什么?
编译arm-linux内核时,加入了PCMCIA/CardBus驱动,但这个驱动是为 PXA250/PXA210 写的。  
难道是因为PXA250/PXA210的驱动不支持PXA27x开发板?
不知大家是否遇到过相似问题?
恳请不吝赐教!!!



下面是文档PXA27x_readme.txt中的PCMCIA部分:

12. PCMCIA

This kit includes PCMCIA support in Linux. Refer to
<http://pcmcia-cs.sourceforge.net> for the Linux PCMCIA HOWTO document
and a complete list of supported cards and tools.

12.1) Configuring the Kernel

To build PCMCIA support in Linux, configure the kernel:

% make menuconfig

To configure the kernel, follow these steps:

1.  At the top level, select the Character devices entry:

        ...
        System Type  --->
===>        General setup  --->
        Parallel port support  --->
        Memory Technology Devices (MTD)  --->

2.  In the General setup page, select PCMCIA/CardBus support:

        ...
       
  • Support for hot-pluggable devices
    ===>        PCMCIA/CardBus support  --->
            MMC device drivers  --->   
            ...
    3.  In the PCMCIA/CardBus support page, select the items with a * as built-ins:

            <*> PCMCIA/CardBus support
            [ ]   i82365 compatible bridge support
            [ ]   Databook TCIC host bridge
            <*>   Intel(R) PXA250 and PXA210 processor support  

    4.  For IBM Micro-driver support, return to the top level and
        select ATA/ATAPI/MFM/RLL support:

            Amateur Radio support  --->
            IrDA (infrared) support  --->
    ===>        ATA/ATAPI/MFM/RLL support  --->
            SCSI support  --->
            I2O device support  --->

    5.  In the ATA/ATAPI/MFM/RLL support page, select ATA/ATAPI/MFM/RLL support and
        then select IDE, ATA and ATAPI Block devices:

            <*> ATA/ATAPI/MFM/RLL support
    ===>        IDE, ATA and ATAPI Block devices --->

    6.  In the IDE, ATA... page, select PCMCIA IDE support as a built-in:

            [ ]     Auto-Geometry Resizing support
    ===>        <*>   PCMCIA IDE support
            < >   Include IDE/ATAPI CDROM support

    7.  For the Xircom(R) Creditcard Mobile Adapter (CEM33), return to the top level and
        select Network device support:

            Networking options  --->
    ===>        Network device support  --->
            Amateur Radio support  --->   

    8.  In the Network device support page, select Network device support and
        select PCMCIA network device support:

           
  • Network device support
            ...
            Wan interfaces  --->
    ===>        PCMCIA network device support  --->  

    9.  In the PCMCIA network device support page, select the items with an * as built-ins:

           
  • PCMCIA network device support
            < >   3Com 3c589 PCMCIA support
            < >   3Com 3c574 PCMCIA support
            < >   Fujitsu FMV-J18x PCMCIA support
            < >   NE2000 compatible PCMCIA support
            < >   Asix AX88190 PCMCIA support
            < >   New Media PCMCIA support
            < >   SMC 91Cxx PCMCIA support
            <*>   Xircom(R) Creditcard Mobile Adapter (CEM33) 16-bit PCMCIA support
            [ ]   PCMCIA Wireless LAN     

    12.2) Using PCMCIA

    To use PCMCIA, download the utilities from http://pcmcia-cs.sourceforge.net
    using the following command:

    - pcmcia-cs-3.2.8.tar.gz

    12.2.1) Unpacking the Tarball

    To unpack the tarball, type the following commands:

    % tar xvf pcmcia-cs-3.2.8.tar.gz
    % cd pcmcia-3.2.8

    12.2.2) Modifying the config.in in pcmcia-cs-3.2.8

    To Modify the config.in, type the following commands:

    % vi config.in
    % cat config.in
      LINUX=/usr/src/linux
      PREFIX=
      MODDIR=
      UCC=arm-linux-gcc
      KCC=arm-linux-gcc
      LD=arm-linux-ld
      ...

    12.2.3) Building the PCMCIA Tools

    To build the PCMCIA tools in the Linux kernel tree, type the following commands:

    % make mainstone_config
    % make menuconfig         <= configure the kernel as above
    % make oldconfig

    To build the PCMCIA tools in pcmcia-cs-3.2.8, type the following commands:

    % make config

    -------- Linux PCMCIA Configuration Script --------

    The default responses for each question are adequate for most users.

    Consult the Linux PCMCIA HOWTO document for additional information about each option.

    Linux kernel source directory [/usr/src/linux]: /path/to/kernel
    ...
    Build 'trusting' versions of card utilities (y/n) [n]: y
    Include 32-bit (CardBus) card support (y/n) [y]: n
    Include PnP BIOS resource checking (y/n) [n]: n
    Module install directory [/lib/modules/2.4.21-rmk1-pxa1-intc2]:
    ...
    The Forms library is not available.

    Configuration successful.
    ....
    % cd cardmgr
    % make

    NOTE: cardmgr and cardctl are built-ins in the directory.
       
    12.2.4) Run on target

    To run on target, follow these steps:

    1.  Include the following commands into root file-system:

    - cardmgr/cardctl
    - cardmgr/cardmgr
    - etc

    % cp cardmgr/cardctl rootfs/sbin
    % cp cardmgr/cardmgr rootfs/sbin
    % cp etc rootfs/etc/pcmcia -R

    2.  Run cardmgr to monitor the PCMCIA slots by typing the following command:

    % cardmgr

    3.  Run cardctl to show PCMCIA information by typing the following command:

    % cardctl ident

    For other tool usage information, refer to the Linux PCMCIA HOWTO document.

    ---------------------------------------------------------------


    全文完。
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则

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