LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   sagem adsl modem on SuSE 9.1 (https://www.linuxquestions.org/questions/suse-opensuse-60/sagem-adsl-modem-on-suse-9-1-a-246775/)

JeTa 10-24-2004 01:04 PM

sagem adsl modem on SuSE 9.1
 
Hi

After a long battle, I have sucessfully installed my Sagem adsl modem with a eagleusb driver and my modem works now fine.

The only thing is that I have to restart the modem, each time I want to connect, manually with a terminal window (SU ... usr/sbin/startadsl). This part of the installer does not work.

I found a hint on a french forum to work around this (see also below).
//forum.eagle-usb.org/viewtopic.php?t=2463&highlight=automatic+connect

I did everything down to number 4. I can not work out what I have to do in number 4. I can not find where I have to activate adsl.boot.

Any ideas? Or any other way to autoconnect the modem?

Thanks

jens


___________________________________________________________________________________________


J'ai automatisé la connexion au boot + reconnect automatique car le script de connect auto installé par eagleconfig ne fonctionne pas chez moi non plus.

Comme je ne suis pas une brute j'ai repris et modifié le script "adsl.watchdog" que j'utilisais avec SuSE 8 (je ne me souviens plus de l'auteur )

Pour info je suis dégroupé avec free... (donc pas de DHCP)

---------------------------------------------------
1-créer le fichier /usr/local/sbin/adsl.connect

#!/bin/bash
/usr/local/sbin/eaglectrl -w
#
/sbin/SuSEfirewall2 stop
#
/usr/local/sbin/startadsl
#
/sbin/SuSEfirewall2 start
# lancement de Wondershaper pour la qualité de service et ntop pour les stats
# C'est vous qui voyez...
/etc/init.d/ntop start
/etc/init.d/wondershaper start

---------------------------------------------------
2- créer le fichier /etc/init.d/adsl.boot

#!/bin/bash
/usr/local/sbin/adsl.connect >/var/log/adsl.boot.log&

---------------------------------------------------
3- créer le fichier adsl.watchdog

# !/bin/bash
sleep 50
while [ "" == "" ] ; do
sleep 6
# on pingue sa passerelle pas plus loin...
INTERNET_TEST=$(ping -W 1 -c 1 XX.XX.XX.254 |grep '1 received')
if [ "$INTERNET_TEST" == "" ] ; then
INTERNET_TEST2=$(ping -W 1 -c 1 XX.XX.XX.254 |grep '1 received')
if [ "$INTERNET_TEST2" == "" ] ; then
INTERNET_TEST3=$(ping -W 1 -c 1 XX.XX.XX.254 |grep '1 received')
if [ "$INTERNET_TEST3" == "" ] ; then
# Là plus de doute possible, gros reset dans sa face...
/etc/init.d/ntop stop
/etc/init.d/wondershaper stop
rmmod uhci_hcd
insmod /lib/modules/2.6.5-7.108-default/kernel/drivers/usb/host/uhci-hcd.ko
# adapter avec sa version de kernel
sleep 1
/usr/local/sbin/adsl.connect

fi
fi
fi
done ;

---------------------------------------------------
4- Dans Yast -> Système-> éditeur de niveaux d'execution

activer adsl.boot en mode expert pour sélectionner les niveaux 3, 4 et 5
Au boot la connect. sera donc lancée

--------------------------------------------------
5- Reste a modifier /etc/inittab pour que l"adsl.watchdog monte la garde.
ajouter la ligne:

adsl:345:respawn:/usr/sbin/adsl.watchdog

---------------------------------------------------
6- On reboote pour voir si au boot tout se lance normalement

7- Pour tester le watchdog on fait un ifdown eth0 (ou ethX)
la connect. doit retomber sur ces pattes. (~ 40 secondes)

Voilà, c'est du bourrin, et ca marche...

Major2 10-26-2004 07:16 PM

Hi JeTa,

Congratulations with your working adsl modem!
I haven't succeded, trying for more than a week now.

My sagem 800 usb modem did't work with the eagle-usb drivers.
Maybe you can give me a "short' rapport of your 'struggle'
That would be nice eh?

Well anyway, is your problem fixed already?
If not read this, as i understand this maybe your problem, and try it out.
Specific the bottom lines.


To connect a Suse 9.1 (Kernel 2.6) machine via a Sagem Fast800? E2T to a UK-ADSL network with Tiscali as provider.

See the detailed instructions below.

Especially note steps 4 and 8 which were unexpected.


0. Install development packages (via Yast)
- kernel-sources
- gcc (C-Compiler)
- cpp
- libgcc (C-Bibliotheken)
- eazy (SUSE Compatibilty Links)
- lsb (Standard Base Tools)
- bison (C Parser Generator)
- libusb (USB-Bibliotheken)
- usbutils
- make
- ncurses
- ncurses - devel (kernel-menuconfig)


1. Start a root console

2. Preparing the kernel-sources: The sources must belong to the installed kernel.

cd /usr/src/linux
Save an old config if exists:

mv .config .config.old
Type "uname -r" to find out the version of the installed kernel and copy the respective file from "/boot/config*" to "/usr/src/linux/.config".

cp /boot/config-`uname -r` /usr/src/linux/.config
Run

make menuconfig
and exit with saving.

3. Prepare the eagle-usb-driver
Download: eagle-usb-1.9.8.tar.bz2 from SourceForge download area (you may take latest version and adapt)
Unpack it somewhere: e.g. into /opt

cd /opt
tar xvfj eagle-usb-1.9.8.tar.bz2
cd /opt/eagle-usb-1.9.8
If no configure-file exists run

./autogen.sh
Then a configure-file should exist. Run

./configure --prefix=/usr

4. Normally you would proceed with "make" etc. but I had the problem that after completing the installation my modem seemed to be too new:
The modem wouldn't become operational, after waiting and when typing "eaglectrl -p" something like this would appear:

Post-firmware device on USB bus 4 (type=POTS)

The solution for this was to use the original *.bnm-files from the Tiscali-Windows-Installation-CD instead of the *.bnm-files in the eagle-usb-1.9.8-package:
The directory /media/cdrecorder/ASSETS/Sagem/L1/IDMA contains the files:
RTBLDEP0.BNM, RTBLDEP1.BNM, RTBLDEP2.BNM, RTBLDEP3.BNM, RTBLDEP4.BNM

Copy them to /opt/eagle-usb-1.9.8/driver/firmware/sagem/pots and /opt/eagle-usb-1.9.8/driver/firmware/usr/pots and also rename them from uppercase to lowercase letters e.g.:

cp /media/cdrecorder/ASSETS/Sagem/L1/IDMA/RTBLDEP0.BNM /opt/eagle-usb-1.9.8/driver/firmware/sagem/pots/rtbldep0.bnm
etc. (for files 0...4)

Note you may use this alternate method :
dowload latest windows drivers from sagem http://www.sagem.com/web-modems/down....2.0.31_fr.zip

cd /opt/eagle-usb-1.9.8/
unzip $(DIR_DL)/eagle-w.2.0.31_fr.zip # where DIR_DL is the directory where you downloaded
cp W.2.0.31_fr/L1/IDMA/rtbldep*.bnm driver/firmware/sagem/pots
cp W.2.0.31_fr/L1/IDMA/rtbldei*.bnm driver/firmware/sagem/isdn

Those .bnm work with E2L modem and work with Fast 800 WA (wanadoo origin) and Fast 908
I don't know the difference from E2T to E2L but I suspect T mind Tiscaly, for L, I don't know.

Do you know if those bnm work with E2T modems?

5. Now it's finally time for make:

make
make install

6. Configuring the ADSL-connection:

eagleconfig
Some questions about country, username, password and when to launch the ADSL-connection will be asked now.

When everything works then text similar to this will appear:

Loading DSP & options... [ OK ]
Waiting for modem to be operational... [ OK ]
Configuration successful.
You can now type "startadsl" to launch the connection.

7. Now run "startadsl" and try to access the internet via konqueror or similar.
------------------------------------------------------------HERE-------------------------------------
8. After restarting the computer neither eagleconfig nor startdsl worked anymore. The problem seemed to be that the DSP-code wasn't reinitialised.
My solution was to change line 59 in /usr/sbin/eagleconfig to

SEND_DSP_NEEDED=1
which forces the DSP-reinitialisation with every launch of eagleconfig.
Then "startadsl" works again.

9. The connection can finally be terminated with "stopadsl".
--------------------------------------------------------------------------------------------------------------
Good luck, Major2

JeTa 10-27-2004 03:28 PM

Hi Major2

Congratulations to you too. It is quite a struggle, I think. Thanks for your detailed answer.

My procedure was pretty similar.
The only thing I did different was that I have used Kernel 2.6.4(-52) which is supported by the eagle-usb (1.9.9.1) driver without having to copy the bnm-files from the CD.
But it is good to know that my modem is future proof anyway!!

I do not know about the E2T modem. I have got an E2L.

I installed some more development packages as you recommended and reinstalled it again to see if I still have to type "startadsl" to make the connection. Unfortunately yes. I was hoping it would connect automatically when I boot.

Never mind.....

Cheers


JeTa

J.W. 10-27-2004 06:17 PM

JeTa -- per the LQ Rules, all posts should be in English. There may be some folks here who can translate French, but this site is English-based, and you likely would get additional replies if you edited your original post and translated it into English. Thanks -- J.W.

Ace2005 12-20-2004 07:48 PM

I got the solution.

i installed mandrake 10.1 and that installed the drivers automatically and all i had to do was set up the connection. I hope this helps you


All times are GMT -5. The time now is 01:43 AM.