Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[PCMCIA] impossible de l'enlevée <freeze kernel> (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Mickael
Advocate
Advocate


Joined: 05 Sep 2005
Posts: 2387
Location: ~Belfort! - France - EU

PostPosted: Mon May 22, 2006 9:58 am    Post subject: [PCMCIA] impossible de l'enlevée <freeze kernel> (ré Reply with quote

Bonjour,

Cette incapacité d'enlever ma carte wifi pcmcia à chaud ne date pas d'aujourd'hui. Si je l'enlève, j'ai un freeze complet du système, donc l'unique solution consiste à faire un gros hard-reboot. Je n'ai aucun message pouvant me mettre sur une piste. Suis-je seul ?

Ce qui est installé : sys-apps/pcmciautils et sys-apps/pcmcia-cs-cis. Config du noyo : genkernelisée, donc demander les modules qui vous intéresse. Pour ma part, un première info j'utilise le module yenta-socket et la carte est une linksys wpc54G. Le script qui suit me permet de me connecter avec ndiswrapper :
Code:

#!/sbin/runscript
depend()
{
        need net
}

start   ()
{
        modprobe ndiswrapper;
        loadndisdriver lsbcmnds
        iwconfig wlan0 mode Managed channel xx essid xxxxxx;
        iwconfig wlan0 key restricted xxxxxxx;
        ifconfig wlan0 192.168.0.3 netmask 255.255.255.0 up;
        route add default gw 192.168.0.254 wlan0;
        echo "Wifi activé.";
}

stop()
{
        iwconfig wlan0 down
        #rmmod ndiswrapper
        echo    "Wifi off.";
}


Merci!

EDIT : un extrait de lsmod :
Code:

rsrc_nonstatic         12672  1 yenta_socket
pcmcia                 35388  0
pcmcia_core            38928  3 yenta_socket,rsrc_nonstatic,pcmcia
firmware_class          9984  1 pcmcia


EDIT 2 : Un extrait de lspci -v
Code:

02:09.0 CardBus bridge: O2 Micro, Inc. OZ601/6912/711E0 CardBus/SmartCardBus Controller
        Subsystem: Wistron Corp. Unknown device 3102
        Flags: bus master, stepping, slow devsel, latency 168, IRQ 177
        Memory at d0101000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=02, secondary=03, subordinate=06, sec-latency=176
        Memory window 0: 40000000-41fff000 (prefetchable)
        Memory window 1: 44000000-45fff000
        I/O window 0: 00003400-000034ff
        I/O window 1: 00003800-000038ff
        16-bit legacy interface ports at 0001


EDIT 3 : Le même avec la carte pcmcia WPC54G insérée : lspci -v :
Code:

03:00.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
        Subsystem: Linksys WPC54G
        Flags: bus master, fast devsel, latency 64, IRQ 177
        Memory at 44000000 (32-bit, non-prefetchable) [size=8K]
        Capabilities: [40] Power Management version 2


avec une info issue de la commande pccardctl :
Code:
 pccardctl status
Socket 0:
  3.3V 32-bit PC Card


EDIT 4 : Un début de solution qui convergerait :? Cette réponse est tirée du mini-howto sur le kernel et pcmcia (pcmciautils) :
Quote:

3. Usage
3.1. devices

Plug the cards in, watch them appear in /sys/bus/pcmcia/devices/, use them. Don't forget to unmount block devices before ejecting a PCMCIA card!


Ben voilà c'est dit : j'arrête le script wifi, puis je lance la commande pccardctl eject, et je peux enlever ma carte sans freeze, peutêtre que cela servira.

EDIT 5 : La documentation se trouve ici :
Quote:

/usr/share/doc/pcmciautils-013/cardmgr-to-pcmciautils.txt.gz
/usr/share/doc/pcmciautils-013/mini-howto.txt.gz


et sur le la Toile allez cliquer sur kernel.org
_________________
À LIRE : COMMENT POSTER ET OBTENIR DE L'AIDE ?
Qui suis-je ? Bon j'ai relu, comme d'habitude, je suis bon a rien le vendredi
Qui suis-je ? Je ne serai jamais modo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum