This shows you the differences between two versions of the page.
adsl [2012/11/04 20:58] |
adsl [2022/04/16 12:22] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | * @related : [[unicorn]] [[Modem]] | ||
+ | |||
+ | |||
+ | === [[BeWAN]] ADSL USB st (Gris et Plat)=== | ||
+ | |||
+ | * Driver [[unicorn]] A1012-A1006-A904-A888-0.8.7.tgz | ||
+ | * [[ISP]] : Tele2 Internet ADSL 1 Méga | ||
+ | * [[Knoppix]] 3.6 | ||
+ | |||
+ | |||
+ | Installation de la Knoppix sur le DD | ||
+ | * Demarrer en Live CD | ||
+ | * Ouvrir un terminal | ||
+ | PROMPT>knoppix-installer | ||
+ | * Partition Swap | ||
+ | * Mode Debian | ||
+ | * Ext3 | ||
+ | |||
+ | Eteindre l'ordinateur | ||
+ | |||
+ | Brancher le Modem sur un port USB libre | ||
+ | |||
+ | Demarrer l'ordinateur et se loguer en mode Administrateur root | ||
+ | |||
+ | Ouvrir un terminal | ||
+ | |||
+ | cd /usr/local/src | ||
+ | |||
+ | Placer le fichier téléchargé A1012-A1006-A904-A888-0.8.7.tgz dans le répértoire | ||
+ | /usr/local/src | ||
+ | |||
+ | cd /usr/local/src | ||
+ | tar xvzf A1012-A1006-A904-A888-0.8.7.tgz | ||
+ | cd unicorn/libm | ||
+ | make | ||
+ | cd .. /unicorn_usb | ||
+ | |||
+ | Editer le Makefile | ||
+ | ================================================================================= | ||
+ | ## Makefile for UNICORN USB ADSL Modem | ||
+ | # | ||
+ | src ?= . | ||
+ | obj ?= . | ||
+ | export PATCHLEVEL=4 # Commentaire # Ligne a ajouter # | ||
+ | ifndef KERNEL_SOURCES | ||
+ | KERNEL_SOURCES=/usr/src/linux-2.4.27 # Commentaire # Ajout de la version du | ||
+ | noyau de la distribution Knoppix 3.6 # | ||
+ | endif | ||
+ | ifndef HPATH | ||
+ | HPATH=$(KERNEL_SOURCES)/include | ||
+ | endif | ||
+ | # Commentaire # La fin du fichier reste identique # | ||
+ | ================================================================================= | ||
+ | |||
+ | PROMPT>cd /home/bewan/unicorn/unicorn_usb | ||
+ | PROMPT>make unicorn_usb_atm.o | ||
+ | PROMPT>make install_atm | ||
+ | PROMPT>cd /etc/hotplug/ | ||
+ | |||
+ | Editer le fichier blacklist | ||
+ | ================================================================================= | ||
+ | # | ||
+ | # Listing a module here prevents the hotplug scripts from loading it. | ||
+ | # Usually that'd be so that some other driver will bind it instead, | ||
+ | # no matter which driver happens to get probed first. Sometimes user | ||
+ | # mode tools can also control driver binding. | ||
+ | # | ||
+ | # Syntax: driver name alone (without any spaces) on a line. Other | ||
+ | # lines are ignored. | ||
+ | # | ||
+ | unicorn_usb_atm # Commentaire # Ligne a ajouter au debut du fichier | ||
+ | # Commentaire # La fin du fichier reste identique # | ||
+ | ================================================================================= | ||
+ | |||
+ | PROMPT>cd /etc/ppp | ||
+ | |||
+ | Editer le fichier pap-secrets | ||
+ | ================================================================================= | ||
+ | eu123456@tele2.fr * dxyz-xyz # Commentaire # On ne conserve que cette ligne | ||
+ | dans le fichier # | ||
+ | # Commentaire # On renseigne avec ses propres identifiants fournis par Tele2 # | ||
+ | ================================================================================= | ||
+ | |||
+ | Editer le fichier chap-secrets | ||
+ | ================================================================================= | ||
+ | eu123456@tele2.fr * dxyz-xyz # Commentaire # On ne conserve que cette ligne | ||
+ | dans le fichier # | ||
+ | # Commentaire # On renseigne avec ses propres identifiants fournis par Tele2 # | ||
+ | ================================================================================= | ||
+ | |||
+ | Editer le fichier options | ||
+ | ================================================================================= | ||
+ | usepeerdns | ||
+ | lock | ||
+ | ipparam ppp0 | ||
+ | noipdefault | ||
+ | noauth | ||
+ | default-asyncmap | ||
+ | defaultroute | ||
+ | hide-password | ||
+ | noaccomp | ||
+ | noccp | ||
+ | nobsdcomp | ||
+ | nodeflate | ||
+ | nopcomp | ||
+ | novj | ||
+ | novjccomp | ||
+ | lcp-echo-interval 20 | ||
+ | lcp-echo-failure 3 | ||
+ | mtu 1500 | ||
+ | mru 1500 | ||
+ | sync | ||
+ | # maxfail 0 | ||
+ | persist | ||
+ | plugin /usr/lib/pppd/2.4.2/pppoatm.so | ||
+ | user eu123456@tele2.fr # Commentaire # On renseigne avec ses propres | ||
+ | identifiants fournis par Tele2 # | ||
+ | ================================================================================= | ||
+ | |||
+ | PROMPT>cd /home/bewan/unicorn/scripts | ||
+ | PROMPT>cp unicorn-pppoatm /usr/bin/ | ||
+ | PROMPT>cd /usr/bin | ||
+ | |||
+ | Editer le fichier unicorn-ppoatm | ||
+ | ================================================================================= | ||
+ | #===/bin/sh=== | ||
+ | |||
+ | # Source function library. | ||
+ | #. /etc/rc.d/init.d/functions | ||
+ | |||
+ | # set to correct product (USB or PCI) | ||
+ | #UNICORN="unicorn_pci_atm" | ||
+ | UNICORN="unicorn_usb_atm" | ||
+ | |||
+ | # default VPI, VCI and encapsulation | ||
+ | VPI=8 | ||
+ | VCI=35 | ||
+ | |||
+ | # ANSI=1,G.lite=2,MULTI=3,G.dmt=4, | ||
+ | MODULATION=4 | ||
+ | |||
+ | # pppd version 2.4.0b2 patched | ||
+ | #PPPD="/usr/src/ppp-2.4.0b2/pppd/pppd" | ||
+ | #PLUGIN="/usr/lib/pppd/plugins/pppoatm.so" | ||
+ | |||
+ | # pppd version 2.4.2 | ||
+ | PPPD="/usr/sbin/pppd" | ||
+ | PLUGIN="/usr/lib/pppd/2.4.2/pppoatm.so" | ||
+ | |||
+ | RETVAL= | ||
+ | |||
+ | stop() { | ||
+ | echo demande arret PPPD | ||
+ | killall $PPPD >/dev/null 2>&1 | ||
+ | echo demande decharge module unicorn_usb_atm | ||
+ | /sbin/modprobe -r $UNICORN >/dev/null 2>&1 | ||
+ | } | ||
+ | |||
+ | start() { | ||
+ | echo charge module pppoatm | ||
+ | /sbin/modprobe pppoatm | ||
+ | [[ === "$?" = 0 ]] && return $?=== | ||
+ | echo charge unicorn_usb_atm | ||
+ | /sbin/modprobe $UNICORN ActivationMode=$MODULATION >/dev/null 2>&1 | ||
+ | [[ === "$?" = 0 ]] && return $?=== | ||
+ | echo debut pause | ||
+ | sleep 15 | ||
+ | echo fin pause et lancement connexion | ||
+ | $PPPD plugin $PLUGIN $VPI.$VCI | ||
+ | [[ === "$?" = 0 ]] && return $?=== | ||
+ | return 0 | ||
+ | } | ||
+ | |||
+ | echo -n "$1 $UNICORN $PROTOCOL $VPI.$VCI $ENCAPS" | ||
+ | |||
+ | case "$1" in | ||
+ | stop) | ||
+ | stop | ||
+ | ;; | ||
+ | |||
+ | start) | ||
+ | start | ||
+ | ;; | ||
+ | |||
+ | restart) | ||
+ | stop | ||
+ | start | ||
+ | ;; | ||
+ | |||
+ | *) | ||
+ | echo $"Usage: $0 {start|stop|restart}" | ||
+ | exit 1 | ||
+ | esac | ||
+ | |||
+ | RETVAL=$? | ||
+ | if [[ $RETVAL = 0 ]]; then | ||
+ | echo Success | ||
+ | else | ||
+ | echo Failure | ||
+ | fi | ||
+ | echo | ||
+ | exit $RETVAL | ||
+ | ================================================================================= | ||
+ | |||
+ | PROMPT>depmod -ae | ||
+ | PROMPT>modprobe /lib/modules/2.4.27/extra/unicorn_usb_atm | ||
+ | PROMPT>unicorn-pppoatm start | ||
+ | |||
+ | |||
+ | ===MISC=== | ||
+ | |||
+ | |||
+ | |||
+ | Tester avec un kernel 2.4 : [[linux-kernel]] | ||
+ | |||
+ | pour ubuntu | ||
+ | http://packages.ubuntu.com/cgi-bin/search_packages.pl?keywords=kernel-image&searchon=names&subword=1&version=breezy&release=all ? | ||
+ | |||
+ | |||
+ | ----- | ||
+ | |||
+ | http://www.erenis.fr/mire/vdsl/speedtest5.php | ||