Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97248 - eagle-usb init script doesn't have the good initialisation command to load firmware
Summary: eagle-usb init script doesn't have the good initialisation command to load fi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-27 12:47 UTC by Jean-Christian Hassler
Modified: 2005-12-14 10:33 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
My /etc/conf.d/eagle-usb file (eagle-usb,804 bytes, text/plain)
2005-06-28 11:42 UTC, Daniel Plaza
Details
Hassler eagle-usb (eagle-usb,805 bytes, text/plain)
2005-07-04 13:11 UTC, Jean-Christian Hassler
Details
Hassler eagle-usb.conf (eagle-usb.conf,1.47 KB, text/plain)
2005-07-04 13:12 UTC, Jean-Christian Hassler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Christian Hassler 2005-06-27 12:47:06 UTC
The init script use this line to send dsp top usb modem sagem fast 800 :
  ${EAGLECTRL} -w -o${OPTIONS} -d${DSP} -s${SYNCHRO_TIMEOUT} | \
                                             ${LOGGERCMD} 1>/dev/null 2>&1
It doesn't work with my version of eagle-usb modem (net-dialup/eagle-usb
2.3.1).



Reproducible: Always
Steps to Reproduce:
1.plug the sagem 800 usb modem
2.execute /etc/init.d/eagle-usb start
3.

Actual Results:  
The script waits for the timeout (which is 120s !!) and no firmware is loaded.
It doesn't use no more exactly the same options.

Expected Results:  
The script should have load the firmware and synchronized.

I made this correction which works perfectly for my configuration but I don't
konw for others: 
        ${EAGLECTRL}  -d  1>/dev/null 2>&1
        ${EAGLECTRL}  -s  1>/dev/null 2>&1
Just writing in two lines with the default options is OK.
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2005-06-27 13:47:36 UTC
So add the two lines before or after or replace the first line? What do you suggest?

Can you please suggest a unified diff?
diff -u oldfile newfile

I added some people to CC who own the driver in case they want to test it.
Comment 2 Jean-Christian Hassler 2005-06-27 14:20:46 UTC
Sorry I didn't keep the orginal eagle-usb script, so I am not sure the
patch will work immediately.

--- eagle-usb.ori       2005-06-28 23:06:45.000000000 +0200
+++ eagle-usb   2005-06-20 23:07:46.000000000 +0200
@@ -237,12 +237,14 @@
     if modem_is_operational
     then
        einfo "Modem already operational"
     else
        einfo "Loading firmware, DSP and trying to sync ..."
-       ${EAGLECTRL} -w -o${OPTIONS} -d${DSP} -s${SYNCHRO_TIMEOUT} | \
-                                                 ${LOGGERCMD}
1>/dev/null 2>&1
+       ${EAGLECTRL}  -d  1>/dev/null 2>&1
+       ${EAGLECTRL}  -s  1>/dev/null 2>&1
+       #${EAGLECTRL} -w -o${OPTIONS} -d${DSP} -s${SYNCHRO_TIMEOUT} | \
+       #                                          ${LOGGERCMD}
1>/dev/null 2>&1
     fi

     return $?
 }


(In reply to comment #1)
> So add the two lines before or after or replace the first line? What do you
suggest?
> 
> Can you please suggest a unified diff?
> diff -u oldfile newfile
> 
> I added some people to CC who own the driver in case they want to test it.

Comment 3 Daniel Plaza 2005-06-27 14:42:37 UTC
  The original ebuild works fine for me. Are you sure that you have configured
your /etc/conf.d/eagle-usb file?. Check the option METHOD in this file; by
default dchpip is set but if you use ppoa the init.d script fails as you say.
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2005-06-27 22:13:55 UTC
Daniel: Can you please attach a sane conf.d-script so that we have sane defaults
and can solve the problem?
Comment 5 Daniel Plaza 2005-06-28 11:42:42 UTC
Created attachment 62175 [details]
My /etc/conf.d/eagle-usb file

As you requested, this is my /etc/conf.d/eagle-usb file. You should configure
yours properly.
Comment 6 Jean-Christian Hassler 2005-07-04 13:09:39 UTC
Here are my configuratio files.
I use the dhcp configuration.
Comment 7 Jean-Christian Hassler 2005-07-04 13:11:01 UTC
Created attachment 62610 [details]
Hassler eagle-usb

My eagle-usb file
Comment 8 Jean-Christian Hassler 2005-07-04 13:12:31 UTC
Created attachment 62611 [details]
Hassler eagle-usb.conf

My eagle-usb conf file
Comment 9 Daniel Plaza 2005-07-04 14:07:09 UTC
  Have you set the dhcp use flag when you emerge eagle-usb?
Comment 10 Daniel Plaza 2005-07-04 14:09:54 UTC
  Also, make sure you have dhcpcd emerged.
Comment 11 Jean-Christian Hassler 2005-07-04 14:58:36 UTC
(In reply to comment #10)
>   Also, make sure you have dhcpcd emerged.

Here are my emerge answers :

localhost ~ # emerge -pv eagle-usb

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-dialup/eagle-usb-2.3.1  0 kB



localhost ~ # emerge -pv dhcp

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-misc/dhcp-3.0.1-r1  (-selinux) -static 0 kB

Total size of downloads: 0 kB

I would like to precise exactly my problem because maybe you're not looking at
the good place.
I can get my connection following these steps:
1- send dsp to sagem fast 800 modem (eaglectrl -d)
2- synchronise with sagem fast 800 modem (eaglectrl -s)
3- get ip adress dhclient eth1 (eaglectrl -i gives the interface name eth0 or
eth1...)
4- that's it !! 

The bug that I report is during the first step, the init script
/etc/init.d/eagle-usb try to do steps 1 & 2 at the same time and in my case it
failed to load firmware and just qait for the timeout.

I will try to re-emerge the package to get the original eagle-usb init script
and find the bad option in thedsp/synchronisatin.



Comment 12 Peter Robb 2005-12-07 06:31:57 UTC
I've just installed eagle-usb in Poland, Szczecin.. using the Sagem f@st 800
from TPSA..

After installation, I ran 'eagleconfig' to select the DSP parameters.
hotplug found the modem, loaded the kernel module and it initialised.

/etc/conf.d/eagle-usb contains a METHOD, pppoa for Poland

But incorrectly sets the DSP locations.
It specifies a dsp/ sub directory which is not created by the ebuild.
All files are in /etc/eagle-usb/

>>> Merging net-dialup/eagle-usb-2.3.1-r1 to /
... snip..
--- /etc/
>>> /etc/eagle-usb/
>>> /etc/eagle-usb/eagle-usb.conf.template
>>> /etc/eagle-usb/CMVei.txt
>>> /etc/eagle-usb/CMVeiWO.txt
>>> /etc/eagle-usb/CMVepWO.txt
>>> /etc/eagle-usb/CMVepES.txt
>>> /etc/eagle-usb/CMVepFR.txt
>>> /etc/eagle-usb/CMVepFR04.txt
>>> /etc/eagle-usb/CMVepFR10.txt
>>> /etc/eagle-usb/CMVepIT.txt
>>> /etc/eagle-usb/CMVep.txt
>>> /etc/eagle-usb/setvars
>>> /etc/eagle-usb/ppp_options.template
>>> /etc/eagle-usb/eagle-usb_must_be_configured

Regards,
Peter
Comment 13 Peter Robb 2005-12-08 03:42:45 UTC
(In addition to comment #12)

The file /etc/conf.d/eagle-usb sets the DSP location as /etc/eagle-usb/dsp.
But it should be /usr/share/eagle-usb/dsp

Also on first installation, device /dev/ppp is not created.
Could this be tested in the post-install script pls..
mknod /dev/ppp c 108 0

Regards,
Peter
Comment 14 Alin Năstac (RETIRED) gentoo-dev 2005-12-14 10:33:06 UTC
following changes have been made:
 - DSP var changed to /usr/share/eagle-usb/dsp
 - /dev/ppp is created in init script (if doesn't exist, of course)