====== Installation d'une carte Sierra Wireless AC850 sous Linux ====== ===== Installation du firmware et configuration de udev ===== Télécharger le [[http://www.sierrawireless.com/software/8x0/AirCard_8xx_Linux.tar.gz|firmware]] de la carte, puis extraire le fichier SW_8xx_SER.dat : $ wget http://www.sierrawireless.com/software/8x0/AirCard_8xx_Linux.tar.gz $ tar -xf AirCard_8xx_Linux.tar.gz SW_8xx_SER.dat Puis, en tant que root, déplacer le firmware dans /lib/firmware et créer un lien pour que le firmware soit correctement chargé (la carte 850 a le même id de firmware que la carte 770 ...) : # mv SW_8xx_SER.dat /lib/firmware/SW_8xx_SER.cis # ln -s /lib/firmware/SW_8xx_SER.cis /lib/firmware/SW_7xx_SER.cis # ls -l /lib/firmware/SW* lrwxrwxrwx 1 root root 28 2007-07-16 15:24 /lib/firmware/SW_7xx_SER.cis -> /lib/firmware/SW_8xx_SER.cis -rw-r--r-- 1 root root 132 2005-11-07 19:37 /lib/firmware/SW_8xx_SER.cis Il faut ensuite créer les règles udev nécessaires à la création du device '/dev/umts'. Créer le fichier '/etc/udev/rules.d/99-aircard.rules' contenant la ligne suivante : BUS=="pcmcia", SYSFS{card_id}=="0x0710", name="umts", SYMLINK="tts/umts" On recharge udev : # /etc/init.d/udev restart * Loading additional hardware drivers... [ OK ] On peut ensuite insérer la carte si ce n'est pas fait et le device est créé : $ ls -l /dev/umts crw-rw---- 1 root dialout 4, 64 2007-07-16 15:14 /dev/umts ===== Paramétrage de la connexion ===== Editer le fichier '/etc/wvdial.conf' : ### /etc/wvdial.conf [Dialer Defaults] Modem = /dev/noz0 # reliquat de la conf. de la carte fournie par Orange Baud = 460800 SetVolume = 0 Dial Command = ATDT FlowControl = NOFLOW Init1 = ATZ Init2 = ATM0 [Dialer bouygues] Modem = /dev/umts Username = any Password = any Phone = *99# Stupid Mode = 1 #Init3 = AT+CGDCONT=1,"IP","a2bouygtel.com" Dial Attempts = 3 La ligne 'Init3 = [...]' censée permettre de choisir l'apn auquel on se connecte est rejetée, je l'ai donc commentée et ça fonctionne comme sur des roulettes ! Peut-être une particularité de la SIM de test que bouygues nous a prêtée ? On se connecte avec wvdial : $ wvdial bouygues --> WvDial: Internet dialer version 1.56 --> Cannot set information for serial port. --> Initializing modem. --> Sending: ATZ ATZ OK --> Sending: ATM0 ATM0 OK --> Modem initialized. --> Sending: ATDT*99# --> Waiting for carrier. ATDT*99# CONNECT --> Carrier detected. Starting PPP immediately. --> Starting pppd at Mon Jul 16 15:34:28 2007 --> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied --> --> PAP (Password Authentication Protocol) may be flaky. --> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied --> --> CHAP (Challenge Handshake) may be flaky. --> Pid of pppd: 8096 --> Using interface ppp0 --> local IP address 10.xx.xx.xx --> remote IP address 10.xx.xx.xx --> primary DNS address 62.xx.xx.xx --> secondary DNS address 62.xx.xx.xx >/file> Et voilà !!! ;) naz@zappy:~$ ping www.google.com PING www.l.google.com (64.233.183.147) 56(84) bytes of data. 64 bytes from nf-in-f147.google.com (64.233.183.147): icmp_seq=1 ttl=238 time=255 ms 64 bytes from nf-in-f147.google.com (64.233.183.147): icmp_seq=2 ttl=238 time=296 ms 64 bytes from nf-in-f147.google.com (64.233.183.147): icmp_seq=3 ttl=238 time=260 ms 64 bytes from nf-in-f147.google.com (64.233.183.147): icmp_seq=4 ttl=238 time=396 ms --- www.l.google.com ping statistics --- 5 packets transmitted, 4 received, 20% packet loss, time 3999ms rtt min/avg/max/mdev = 255.676/301.971/396.008/56.527 ms naz@zappy:~$ ===== Sources ===== * [[https://help.ubuntu.com/community/AirCard8X0|Ubuntu AirCard8X0]] * [[http://lea-linux.org/cached/index/AC775.html|Lea-Linux AC775]] + [[http://lea-linux.org/cached/index/Discuter:AC775.html|Discussions]] * [[http://ubuntuforums.org/showthread.php?t=154092|Ubuntu Forums Sierra 860]] * [[http://mycusthelp.com/sierrawireless/supportkbitem.asp?sSessionID=&Inc=2870&sFilA=FAQ%20Category&sFilB=Products&sFilC=&FA=19&FB=23&FC=-1|Sierra Wireless Knowledge]] ====== Installation d'une carte Option Globetrotter 3G/EDGE sous Linux ====== Petit HowTo décrivant l'utilisation d'une carte 3G/Edge "Mobile PC Card 3G/EDGE" "Option GlobetTrotter 3G/EDGE" Orange sous Linux et plus particulièrement Ubuntu ===== Installation du driver Nozomi ===== - Télécharger le driver à l'url suivante : [[http://www.pharscape.org/3G/nozomi_2.1_060703.tar.gz]] et décompresser l'archive (il existe un paquet Ubuntu, mais il faut tout de même le compiler et il ne compile pas sans modification ...) : wget http://www.pharscape.org/3G/nozomi_2.1_060703.tar.gz mkdir nozomi21 tar -C nozomi21 -zxf nozomi_2.1_060703.tar.gz cd nozomi21 - Compiler le driver (module kernel) et l'installer (le make install ne fonctionne pas correctement chez moi, donc installation à la main) :make sudo cp nozomi.ko /lib/modules/`uname -r`/kernel/drivers/pci/hotplug/ sudo depmod - Il suffit ensuite d'insérer la carte dans le port pcmcia pour qu'elle soit reconnue :[17194210.124000] pccard: CardBus card inserted into slot 0 [17194210.760000] [1504] nozomi_card_init(): Init, cards_found: 1 [17194210.760000] [1390] nozomi_get_card_type(): Card type is: 2048 [17194210.760000] PCI: Enabling device 0000:02:00.0 (0000 -> 0002) [17194210.760000] ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [LNKA] -> GSI 10 (level, low) -> IRQ 10 [17194210.768000] Nozomi driver nozomi_tty<6>Initializing Nozomi driver 2.1 (build date: Dec 27 2006 14:23:12) [17194210.980000] [836] nozomi_read_config_table(): Version of card: 3 [17194210.980000] [828] nozomi_read_config_table(): Initialization OK! ===== Configuration de la carte ===== Je passe les détails de configuration, [[http://contrib.xarli.net/optionfusionsousdebian/|ce HowTo]] étant très bien fait ! En résumé, il faut éditer le fichier /etc/wvdial.conf pour qu'il ressemble à ceci afin de pouvoir se connecter à tous les apn disponibles : ### /etc/wvdial.conf #[Dialer Defaults] #Phone = #Username = #Password = #New PPPD = yes [Dialer Defaults] Modem = /dev/noz0 Baud = 460800 SetVolume = 0 Dial Command = ATDT FlowControl = NOFLOW Init1 = ATZ Init2 = ATM0 [Dialer orange-public] Username = any Password = any Phone = *99***1# Stupid Mode = 1 Init3 = AT+CGDCONT=1,"IP","orange.fr" Dial Attempts = 3 [Dialer orange-entreprise] Username = any Password = any Phone = *99***1# Stupid Mode = 1 Init3 = AT+CGDCONT=1,"IP","internet-entreprise" Dial Attempts = 3 [Dialer orange-vpn] Username = any Password = any Phone = *99***1# Stupid Mode = 1 Init3 = AT+CGDCONT=1,"IP","orange.vpn" Dial Attempts = 3 Editer le fichier /etc/ppp/peers/wvdial comme ceci : ### /etc/ppp/peers/wvdial plugin passwordfd.so noauth name wvdial replacedefaultroute noipdefault nomagic usepeerdns ipcp-accept-local ipcp-accept-remote nomp noccp nopredictor1 novj novjccomp nobsdcomp ===== Utilisation ===== - Insertion de la carte - Installer gcom si ce n'est pas fait root# apt-get install gcom Puis exécuter les commandes suivantesroot# gcom -d /dev/noz0 SIM ready Waiting for Registration..(120 sec max) Registered on Home network: "Orange F",2 Signal Quality: 19,0 root# gcom -d /dev/noz0 3G2G Set 3G preferred mode root# wvdial orange-vpn ... - Avec orange-vpn, seuls quelques protocoles/ports sont autorisés tels que ssh, TSE, pptp, ipsec, ... et il faut obligatoirement un point de chute supportant ce type de connexion pour accéder à internet. (VPN, Tunnel, etc. ...) ===== Sources ===== * [[http://forum.ubuntu-fr.org/viewtopic.php?id=53012|3G/Edge et business everywhere]] : liens et howto. * [[http://www.pharscape.org/3G/|Téléchargement du driver Nozomi]] (j'ai utilisé la version 2.1) * [[http://contrib.xarli.net/optionfusionsousdebian/|Carte Orange Fusion+ sous Debian]] : HowTo sur lequel je me suis basé.