Sagem F@st 800 E4 - Net24 (PPPoE)
27 Grudzień 2007
W tym artykule jest opisany proces instalacji oraz konfiguracji połączenia internetowego na modemie Sagem Fast 800 E4, używać będziemy protokołu PPPoE jest on używany przez Netię (Net24). Ten artykuł powinien pasować do wszystkich dystrybucji między innymi : Slackware 12, Debian ETCH, Mandriva 2007/2008, itp. Rozwiążemy tutaj problem braku synchronizacji i połączenia przez rp-pppoe.
Sterowniki (konieczne do synchronizacji modemu) :
Pobierz sterowniki
Firmware :
Pobierz firmware
br2684ctl (wymaga linux-atm):
Pobierz dla Debian
Pobierz do wszystkich distro(kompilacja)
Inne potrzebne pakiety:
- mc(niewymagane posłuży jako edytor tekstu)
- ppp
- ppp-pppoatm
- ppp-pppoe
- kernel-source
- linux-atm
- gcc
- gcc3.3-c++
- gcc-c++
- cpp
- glibc-devel
- libncurses5-devel
- make
- automake
- autoconf
- binutils
- m4
Instalacja sterowników
W Mandrivie 2008 możemy pominąć proces instalacji sterowników. Gdyż są one zainstalowane!
Logujemy się jako root używamy do tego polecenia "su":
su
#wpisujemy teraz hasło
Teraz podłączamy nasz modem do usb
lsusb
#w wyniku dostajemy takie coś:
ID 1110:9041 Analog Devices Canada, Ltd (Allied Telesyn)
#lub
ID 1110:9042 Analog Devices Canada, Ltd (Allied Telesyn) #Świadczy to o braku załadowania #firmware dla modemu. Zajmiemy się tym później.
mkdir /tmp/ueagle4
#teraz kopiujemy ueagle4-atm.tar.gz i #ueagle4-data.tar.gz do tego folderu /tmp/ueagle4
cd /tmp/ueagle4
ls #powinno zwrócic : ueagle4-atm.tar.gz #ueagle4-data.tar.gz
Rozpakowujemy sterownik:
tar xvf /tmp/ueagle4/ueagle4-atm.tar.gz
cd /tmp/ueagle4/ueagle4-atm
make
#jeżeli nie dostajemy żadnych błędów. Przechodzimy dalej
#Building modules, stage 2.
# MODPOST 2 modules
# CC /tmp/ueagle4-atm/ueagle-atm.mod.o
# LD [M] /tmp/ueagle4-atm/ueagle-atm.ko
#make[1]: Opuszczenie katalogu `/usr/src/`uname -r`'
make install
#otrzymuje coś w tym stylu :
# INSTALL /tmp/ueagle4-atm/ueagle-atm.ko
# INSTALL /tmp/ueagle4-atm/usbatm.ko
# DEPMOD 2.6.17-5mdvcustom
#make[1]: Opuszczenie katalogu `/usr/src/`uname -r`'
Teraz przeniesiemy wygenerowane sterowniki do modułów kernela
find /lib/modules/ -name "ueagle-atm*"
#wynik
#/lib/modules/`uname -r`/extra/ueagle-atm.ko, gdzie `uname -r` to nazwa naszego kernela.
Teraz przekopiujemy ręcznie oba moduły ( ueagle-atm.ko usbatm.ko ) zrobimy to kilkoma poleceniami.
mkdir /lib/modules/`uname -r`/ueagle4
cp /lib/modules/`uname -r`custom/extra/*.ko /lib/modules/`uname -r`/ueagle4
Teraz załadujemy moduł usb i ueagle
modprobe ueagle-atm
modprobe usbatm
lsmod|grep ueagle
Powinniśmy otrzymać coś podobnego do tego:
ueagle_atm 36568 0
usbatm 16320 1 ueagle_atm
usbcore 118504 4 ueagle_atm,usbatm,uhci_hcd
Teraz sprawdzamy informacje o sterowniku.
modinfo ueagle-atm
Ważne jest ta informacja, mówi ona, że moduł został poprawnie załadowany.
Instalacja Firmware
W katalogu firmware dla modemów Sagem Fast 800 powinny być:
eagleIV.fw
DSP4p.bin
CMV4p.bin.v2
e4_dsp_pots.bin
Przechodzimy ponownie do katalogu /tmp/ueagle4 i rozpakowujemy archiwum z firmware.
cd /tmp/ueagle4
tar xvf ueagle4-data.tar.gz
Teraz przenosimy firmware do właściwego katalogu.
mkdir /lib/firmware/ueagle-atm
cp /tmp/ueagle4/ueagla4-data/* /lib/firmware/ueagle-atm
ls /lib/firmware/ueagle-atm/
#otrzymujemy takie coś : CMV4p.bin.v2 DSP4p.bin e4_dsp_pots.bin eagleIV.fw
Sprawdzamy czy załadowało się firmware(może wymagać restartu systemu)
dmesg
#takie coś dostajemy:
#[ueagle-atm] pre-firmware device, uploading firmware
#[ueagle-atm] loading firmware ueagle-atm/eagleIV.fw
#[ueagle-atm] firmware uploaded
Kompilacja br2684ctl
Dla Debiana instalujemy tylko wyżej załączony pakiet!
Ściągamy brctl. Ważne jest żeby zainstalować linux-atm to musisz zrobić we własnym zakresie.
cd /tmp/ueagle4
wget http://home.sch.bme.hu/%7Ecell/br2684/dist/010402/brctl-010226.c
#kompilujemy
gcc -o br2684ctl brctl-010226.c -latm
install -m 744 br2684ctl /usr/sbin
Konfiguracja połączenia
Modyfikujemy pliki /etc/ppp/pap-secrets i /etc/ppp/chap-secrets. Pamiętaj zamiast mcedit możesz użyć swojego ulubionego edytora.
mcedit /etc/ppp/pap-secrets
#dodajemy takie coś:
#login@net24.com.pl * haslo
mcedit /etc/ppp/chap-secrets
#dodajemy takie coś:
#login@net24.com.pl * haslo
Teraz konfigurujemy /etc/pppoe.conf (trzeba go utworzyć)
mcedit /etc/pppoe.conf
Dodajemy taki tekst do pliku:
# example configuration for the kernel space PPP over Ethernet driver
#
# See the manual page pppd(8) for information on all the options.# MUST CHANGE: replace myusername@realm with the PPP login name given to
# your by your provider.
# There should be a matching entry with the password in /etc/ppp/pap-secrets
# and/or /etc/ppp/chap-secrets.
user "myusername@realm"# Load the PPPoE plugin.
plugin rp-pppoe.so# Ethernet interface to which the modem is connected.
nas0# Assumes that your IP address is allocated dynamically by the ISP.
noipdefault
# Try to get the name server addresses from the ISP.
usepeerdns
# Use this connection as the default route.
defaultroute# Makes pppd "dial again" when the connection is lost.
persist# Do not ask the remote to authenticate.
noauth
Zapisujemy!
Włączamy modem!
modprobe br2684
br2684ctl -c 0 -b -a 8.35
#br2684ctl[18144]: Interface "nas0" created sucessfully
#br2684ctl[18144]: Communicating over ATM 0.8.35, encapsulation: LLC
#br2684ctl[18144]: Interface configured
ifconfig nas0 up
pppd file /etc/pppoe.conf
Internet już działa!
Bibliografia