EMotaWeb - Wireless - SWL-2100N/E/P
Data: 12/11/2003


1. Apresentação
Placas Samsung/MagicLAN modelo: SWL-2000N/E/P e SWL-2100N/E/P .
Sendo as versões:
N - Cartão PCMCIA
E - Cartão PCMCIA com suporte a anteCartxterna P - Adaptador PCI
U - Adaptador USB*
*obs.: esse tutorial não tem suporte ao Adaptador USB.

1.1. Descrição dos Drivers
swld11_cs-1.22.tar.gz - Driver para Cartão PCMCIA (SWL-2100N/E)
swldpc11_cs-1.22.tar.gz - Driver para Placa PCI (SWL-2100P)
pcmcia-cs-3.1.33 - Suporte a PCMCIA-CS (é obrigatório em ambos os casos)

Estes drivers são compatíveis com Kernel 2.2 e 2.4


2. Dependências / Recomendações
Ao usar o Kernel 2.4, é necessário retirar o suporte a PCMCIA do Kernel.

2.1. Links
http://pcmcia-cs.sourceforge.net/ftp/pcmcia-cs-3.1.33.tar.gz
http://pcmcia-cs.sourceforge.net/ftp/contrib/wireless_tools.23.tar.gz


3. Descompactando
3.1. PCMCIA-CS
# tar -xvzf pcmcia-cs-3.1.33.tar.gz

3.2.1 swldpc11_cs-1.22 (SWL-2100P)
# tar -xvzf swldpc11_cs-1.22.tar.gz -C pcmcia-cs-3.1.33

3.2.2 swld11_cs-1.22 (SWL-2100N/E)
# tar -xvzf swld11_cs-1.22.tar.gz -C pcmcia-cs-3.1.33

Obs.: Você somente pode usar um dos driver "swl" por vez.


4. Compilando
# cd pcmcia-3.1.33
# ./configure
ou
# make config
Configurando Kernel PCMCIA ...
Linux source directory [/usr/src/linux]:
The kernel source tree is version 2.2.14-14cl.
The current kernel build date is ter fev 29 18:11:23 2000.
Build 'trusting' versions of card utilities (y/n) [n]:
Include 32-bit (CardBus) card support (y/n) [n]:
Include PnP BIOS resource checking (y/n) [n]:
Module install directory [/lib/modules/2.2.14-14cl]:
Kernel configuration options:
...
Configuration successful.

# make all
make[1]: Entering directory `/usr/src/linux-2.2.14/pcmcia-cs-3.1.29/modules'
cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c cs.c
cc -MD -O2 -Wall -Wstrict-prototypes -pipe -I../include -I/usr/src/linux/include -D__KERNEL__ -DMODULE -c cistpl.c
...
make[2]: Leaving directory `../pcmcia-cs-3.1.33/clients'
make[1]: Leaving directory `../pcmcia-cs-3.1.33'

# make install
make[1]: Entering directory `../pcmcia-cs-3.1.33/modules'
cp pcmcia_core.o ds.o cb_enabler.o i82365.o tcic.o /lib/modules/2.2.14-14cl/pcmcia
...
make[2]: Leaving directory `../pcmcia-cs-3.1.33/etc'
make[1]: Leaving directory `../pcmcia-cs-3.1.33'

Pronto, seu Adaptador PCMCIA já está funcionando!
Agora precisamos Configurar o Cartão!!


5. Configurando
# vi /etc/pcmcia/config.opts

Esse driver apresenta alguns problemas com o suporte ao "wireless.opts"
Então, recomendados carregar suas configurações no "config.opts"

### MaigcLAN - Ad-Hoc
# module "swld11_cs" opts "networkmode=3"
# module "swldpc11_cs" opts "networkmode=3"
### MaigcLAN - Access Point
# module "swld11_cs" opts "essid=MagicLAN"
module "swldpc11_cs" opts "essid=MagicLAN"

# vi /etc/pcmcia/network.opts
# Network adapter configuration
case "$ADDRESS" in
*,*,*,*)
    INFO="Samsung 11 Mbps WLAN - Conectiva Linux"
    # Transceiver selection, for some cards -- see 'man ifport'
    IF_PORT=""
    # Use BOOTP (via /sbin/bootpc, or /sbin/pump)? [y/n]
    BOOTP="n"
    # Use DHCP (via /sbin/dhcpcd, /sbin/dhclient, or /sbin/pump)? [y/n]
    DHCP="n"
    IPADDR=""
    NETMASK="255.255.255.0"
    NETWORK="10.0.1.0"
    BROADCAST="10.0.1.255"
    GATEWAY="10.0.1.1"
    # Extra stuff to do after setting up the interface
    start_fn () { return; }
    # Extra stuff to do before shutting down the interface
    stop_fn () { return; }
    ;;
esac

# vi /etc/sysconfig/pcmcia
PCMCIA=yes
PCIC=i82365
PCIC_OPTS=
CORE_OPTS=
CARDMGR_OPTS=


6. Carregando o dirver
Em algumas distribuições você pode encontrar o seguinte script de controle:
# /etc/init.d/pcmcia [start|stop]
# /etc/init.d/pcmcia start

Ao carregar ele irá soar um alerta.
PCMCIA Starting [ OK ] (PI - PI)

6.1. Carregando passo-a-passo (manualmente)
Usaremos como exemplo o driver feito para Adapatador PCI
# insmod pcmcia_core
# insmod i82365
# insmod ds
# insmod swldpc11_cs
# cardmgr &

Após executar o comando "cardmgr &", deverá ter o alerta sonoro!

6.2. Legenda do Alerta Sonoro
PI = Agudo
PU = Grave

Identificando Sons no START do PCMCIA:
PI PI - cartão identificado e configurado
PI PU - cartão identificado, mas não configurado
PU - cartão não pôde ser identificado
PU PI - Hardware não suportando


Qualquer dúvida ou informação, entre em contato emota@emota.com.br

EMotaWeb | Textos | Programação | Linux | Wireless | Contato | Topo ^