Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Alcatel Speedtouch USB with kernel 2.6 Revisited
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Saturation
n00b
n00b


Joined: 29 Mar 2004
Posts: 65

PostPosted: Fri Jul 02, 2004 3:39 pm    Post subject: Reply with quote

What speedtouch package are you trying to install? If you use "emerge -p speedtouch" (-p from pretend) you can see what package is going to be installed.

You can use the "< > =" symbols if you want to install a specific version of a package.

When I do
Code:
emerge -p "<speedtouch-1.2"
I want to see what lower version of the speedtouch-1.2 is available for an install:

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

Calculating dependencies ...done!
[ebuild UD] net-dialup/speedtouch-1.2_beta2 [1.2] -debug -static 0 kB

Total size of downloads: 0 kB

The same counts for
Code:
"emerge -p ">speedtouch-1.2"
when I want to look for a higher version than speedtouch-1.2, and "=" is used if I want to install the exact version.

This way you can install the speedtouch-1.2 package if you leave the -p. If you use -v (verbose) you can also see the USE flags for the package.

You can find more info here about installing and such:

http://www.gentoo.org/doc/en/index.xml#doc_chap3

I did not read much and it helps me a lot from solving these kind of problems.
_________________
EVERYTHING you need to know to SECURE Linux
Back to top
View user's profile Send private message
Ruzbeh
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 223

PostPosted: Fri Jul 02, 2004 4:09 pm    Post subject: Reply with quote

Saturation wrote:
What speedtouch package are you trying to install? If you use "emerge -p speedtouch" (-p from pretend) you can see what package is going to be installed.

You can use the "< > =" symbols if you want to install a specific version of a package.

When I do
Code:
emerge -p "<speedtouch-1.2"
I want to see what lower version of the speedtouch-1.2 is available for an install:

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

Calculating dependencies ...done!
[ebuild UD] net-dialup/speedtouch-1.2_beta2 [1.2] -debug -static 0 kB

Total size of downloads: 0 kB

The same counts for
Code:
"emerge -p ">speedtouch-1.2"
when I want to look for a higher version than speedtouch-1.2, and "=" is used if I want to install the exact version.

This way you can install the speedtouch-1.2 package if you leave the -p. If you use -v (verbose) you can also see the USE flags for the package.

You can find more info here about installing and such:

http://www.gentoo.org/doc/en/index.xml#doc_chap3

I did not read much and it helps me a lot from solving these kind of problems.


thanks but i already know the -p function and have read that :)

ive installed version 1.2 (not the beta) and pppd 2.4.2

and pppoatm.so has been compiled :D

edit: ok it works

i have changed /etc/conf.d/speedtouch line

Code:
MODEM_RUN_EXTRAOPTS="-k -a /usr/share/speedtouch/boot.v123.bin"


into

Code:
MODEM_RUN_EXTRAOPTS="-k"


That boot.v123.bin thing, people with Speedtouch USB modem don't need that, the people with a 330 thing apparently do.

It works, so, thanks :D
Back to top
View user's profile Send private message
Saturation
n00b
n00b


Joined: 29 Mar 2004
Posts: 65

PostPosted: Fri Jul 02, 2004 7:57 pm    Post subject: Reply with quote

:D
_________________
EVERYTHING you need to know to SECURE Linux
Back to top
View user's profile Send private message
Ruzbeh
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 223

PostPosted: Tue Jul 06, 2004 11:29 am    Post subject: Reply with quote

Ok now internet no longer works in Gentoo and i dunno why :roll:

Everything works fine in windows and red hat so it cant be the modem

Loading the firmware in the modem works fine too

its the pppd that goes wrong

PPP doesn't get started properly anymore, and when i do it manually with 'pppd call adsl updetach' i get this
Code:

pppd call adsl updetach
Plugin pppoatm.so loaded.
connect(8.48): No such device
Failed to open 8.48: No such device


Somehow it sees 8.48 as the device!? I check my adsl file, becuz '8.48' comes from that file but its fine

I also double, triple, quadruple checked the config files, and i re-emerged ppp, linux-atm and speedtouch driver, it still doesn't work

I have no idea what could have changed my stuff, i do remember emerging nvidia-kernel-6xxx but i unmerged it, could that have screwed up my system?
Back to top
View user's profile Send private message
Saturation
n00b
n00b


Joined: 29 Mar 2004
Posts: 65

PostPosted: Tue Jul 06, 2004 12:01 pm    Post subject: Reply with quote

Ruzbeh,

Have you checked your kernel configuration?

Code:
cd /usr/src/linux

make menuconfig


I would especialy pay attention to the ppp part in section Device Drivers -> Networking support. It should be setup this way:

Code:
:
<M>   PPP (point-to-point protocol) support
[ ]     PPP multilink support (EXPERIMENTAL) (NEW)
[ ]     PPP filtering (NEW)
< >     PPP support for async serial ports (NEW)
< >     PPP support for sync tty ports (NEW)
<M>     PPP Deflate compression
<M>     PPP BSD-Compress compression
< >     PPP over Ethernet (EXPERIMENTAL) (NEW)
<M>     PPP over ATM



There's more at the start at this thread about the kernel, but maybe you should also build in some things that are mentioned in this thread:

https://forums.gentoo.org/viewtopic.php?t=99759&highlight=speedtouch
_________________
EVERYTHING you need to know to SECURE Linux
Back to top
View user's profile Send private message
Ruzbeh
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 223

PostPosted: Tue Jul 06, 2004 1:20 pm    Post subject: Reply with quote

No i have already done that, it checks out

It doesn't make any sense!!!!!!!!!!!!! :x

ok here my stuff in /var/log/messages:

when it worked:
Code:

Jul  4 13:18:19 celeron modem_run[5913]: modem_run version 1.2 started by root uid 0
Jul  4 13:18:19 celeron usb 1-1: usbfs: interface 1 claimed while 'modem_run' sets config #1
Jul  4 13:18:19 celeron usb 1-1: usbfs: interface 2 claimed while 'modem_run' sets config #1
Jul  4 13:18:21 celeron usb 1-1: bulk timeout on ep5in
Jul  4 13:18:21 celeron usb 1-1: usbfs: USBDEVFS_BULK failed ep 0x85 len 512 ret -110
Jul  4 13:18:25 celeron usb 1-1: usbfs: interface 0 claimed while 'modem_run' sets config #1
Jul  4 13:18:25 celeron usb 1-1: usbfs: interface 1 claimed while 'modem_run' sets config #1
Jul  4 13:18:25 celeron usb 1-1: usbfs: interface 2 claimed while 'modem_run' sets config #1
Jul  4 13:18:47 celeron modem_run[5914]: [monitoring report] ADSL link went up
Jul  4 13:19:05 celeron modem_run[5913]: ADSL synchronization has been obtained
Jul  4 13:19:05 celeron modem_run[5913]: ADSL line is up (2240 kbit/s down | 416 kbit/s up)
Jul  4 13:19:06 celeron pppd[5920]: Plugin pppoatm.so loaded.
Jul  4 13:19:06 celeron pppd[5921]: pppd 2.4.2 started by root, uid 0
Jul  4 13:19:06 celeron pppd[5921]: Using interface ppp0
Jul  4 13:19:06 celeron pppd[5921]: Connect: ppp0 <--> 8.48
Jul  4 13:19:09 celeron pppd[5921]: PAP authentication succeeded
Jul  4 13:19:09 celeron PPP BSD Compression module registered
Jul  4 13:19:09 celeron pppd[5921]: local  IP address <MY CORRECT IP HERE>
Jul  4 13:19:09 celeron pppd[5921]: remote IP address 195.190.249.4
Jul  4 13:19:09 celeron pppd[5921]: primary   DNS address 195.121.1.34
Jul  4 13:19:09 celeron pppd[5921]: secondary DNS address 195.121.1.66


and the present output
Code:

Jul  6 13:00:17 celeron modem_run[5928]: modem_run version 1.2 started by root uid 0
Jul  6 13:00:17 celeron usb 1-1: usbfs: interface 2 claimed while 'modem_run' sets config #1
Jul  6 13:00:19 celeron usb 1-1: bulk timeout on ep5in
Jul  6 13:00:19 celeron usb 1-1: usbfs: USBDEVFS_BULK failed ep 0x85 len 512 ret -110
Jul  6 13:00:23 celeron usb 1-1: usbfs: interface 0 claimed while 'modem_run' sets config #1
Jul  6 13:00:23 celeron usb 1-1: usbfs: interface 2 claimed while 'modem_run' sets config #1
Jul  6 13:00:23 celeron modem_run[5928]: Kernel mode driver not found
Jul  6 13:00:44 celeron modem_run[5929]: [monitoring report] ADSL link went up
Jul  6 13:01:03 celeron modem_run[5928]: ADSL synchronization has been obtained
Jul  6 13:01:03 celeron modem_run[5928]: ADSL line is up (2240 kbit/s down | 416 kbit/s up)
Jul  6 13:01:04 celeron pppd[5935]: Plugin pppoatm.so loaded.
Jul  6 13:01:04 celeron pppd[5936]: pppd 2.4.2 started by root, uid 0
Jul  6 13:01:04 celeron pppd[5936]: connect(8.48): No such device
Jul  6 13:01:04 celeron pppd[5936]: Failed to open 8.48: No such device
Jul  6 13:01:08 celeron pppd[5936]: connect(8.48): No such device
Jul  6 13:01:08 celeron pppd[5936]: Failed to open 8.48: No such device
Jul  6 13:01:12 celeron pppd[5936]: connect(8.48): No such device
Jul  6 13:01:12 celeron pppd[5936]: Failed to open 8.48: No such device
Jul  6 13:01:16 celeron pppd[5936]: connect(8.48): No such device
Jul  6 13:01:16 celeron pppd[5936]: Failed to open 8.48: No such device
Jul  6 13:01:20 celeron pppd[5936]: connect(8.48): No such device
Jul  6 13:01:20 celeron pppd[5936]: Failed to open 8.48: No such device
Jul  6 13:01:24 celeron pppd[5936]: connect(8.48): No such device
Jul  6 13:01:24 celeron pppd[5936]: Failed to open 8.48: No such device
Jul  6 13:01:28 celeron pppd[5936]: connect(8.48): No such device
Jul  6 13:01:28 celeron pppd[5936]: Failed to open 8.48: No such device
Jul  6 13:01:32 celeron pppd[5936]: connect(8.48): No such device
Jul  6 13:01:32 celeron pppd[5936]: Failed to open 8.48: No such device
Jul  6 13:01:36 celeron pppd[5936]: connect(8.48): No such device
Jul  6 13:01:36 celeron pppd[5936]: Failed to open 8.48: No such device
Jul  6 13:01:40 celeron pppd[5936]: connect(8.48): No such device
Jul  6 13:01:40 celeron pppd[5936]: Failed to open 8.48: No such device
Jul  6 13:01:44 celeron pppd[5936]: connect(8.48): No such device
Jul  6 13:01:44 celeron pppd[5936]: Failed to open 8.48: No such device
Jul  6 13:01:48 celeron pppd[5936]: connect(8.48): No such device
Jul  6 13:01:48 celeron pppd[5936]: Failed to open 8.48: No such device


what is causing this!!!!!!!! :evil:

help! :cry:

edit:

hello... :o

Code:
Jul  6 13:00:23 celeron modem_run[5928]: Kernel mode driver not found


What is it referring to? Hmmm my modem_run_options is -k which means use kernel mode driver :roll: i'll try to do without it
Back to top
View user's profile Send private message
Saturation
n00b
n00b


Joined: 29 Mar 2004
Posts: 65

PostPosted: Wed Jul 07, 2004 12:01 pm    Post subject: Reply with quote

I presume your password and your usename are still in /etc/ppp/pap-secrets and /etc/ppp/chap-secrets. Have you checked the permissions of the firmware.bin? Maybe download it again.

What command are you using? I have
Code:
MODEM_RUN_EXTRAOPTS="-k -a /usr/share/speedtouch/boot.v123.bin"


in /etc/conf.d/speedtouch, and do

Code:
modem_run -k -f /root/firmware.bin


and then
Code:
pppd call adsl


Code:
/etc/init.d/speedtouch start


works also with this setup.

Groeten
_________________
EVERYTHING you need to know to SECURE Linux
Back to top
View user's profile Send private message
Ruzbeh
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 223

PostPosted: Wed Jul 07, 2004 1:14 pm    Post subject: Reply with quote

Saturation wrote:
I presume your password and your usename are still in /etc/ppp/pap-secrets and /etc/ppp/chap-secrets. Have you checked the permissions of the firmware.bin? Maybe download it again.

What command are you using? I have
Code:
MODEM_RUN_EXTRAOPTS="-k -a /usr/share/speedtouch/boot.v123.bin"


in /etc/conf.d/speedtouch, and do

Code:
modem_run -k -f /root/firmware.bin


and then
Code:
pppd call adsl


Code:
/etc/init.d/speedtouch start


works also with this setup.

Groeten


Bwuahaha u have noticed from my VPI/VCI pair thing that i am dutch ;)

Anywayz yes i have already checked that like 5 times, i need to know what the things means with kernel mode driver 8O

Im gonna try a different kernel...lets see if that works

edit: i tried gentoo-dev-sources-2.6.7-r7 instead of r6, now im gonna try 2.6.5 and if that wont work, i will have to go back to 2.4.X!!!!!!!!!! :evil: :cry:
Back to top
View user's profile Send private message
Ruzbeh
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 223

PostPosted: Wed Jul 07, 2004 2:33 pm    Post subject: Reply with quote

yes!

YES!!!!

YEEEEEEEEHEHEHEHEHHEESSS!!!!!!! :twisted: :twisted: :twisted:

Ive done it! Omg 1337 pwzn0rz w00tlololo!!1111

What it means with kernel mode driver it meant the module option that the kernel made but it wasnt loaded and i put it in /etc/autload.modules.d/kernel-2.6, i added 'speedtch' cuz thats what the module is called and modem_run said IT FOUND THE MODULE (in /var/log/messages)

AND NOW IT WORKS!!!!!!!!!!!!!!!!!! :twisted:

only problem now is i can only have internet as root but im sure thats an easy fix

thanks saturation for ur help, u were my driving force for trying to fix it lol ;)

this should be editted in the startpost for people who get this error!!!

thank you and god bless you! :D
Back to top
View user's profile Send private message
Saturation
n00b
n00b


Joined: 29 Mar 2004
Posts: 65

PostPosted: Wed Jul 07, 2004 3:17 pm    Post subject: Reply with quote

Glad I could help.
I think you should edit the /etc/ppp/ip-up file and enter something like
Code:
chmod 644 $REALRESOVCONF
or so. I wrote about it in this post. I think that would solve the problem. (Hope I'm right this time ;) )
_________________
EVERYTHING you need to know to SECURE Linux
Back to top
View user's profile Send private message
fazto
n00b
n00b


Joined: 17 Jun 2004
Posts: 19
Location: Alphen aan den Rijn, the Netherlands

PostPosted: Thu Jul 22, 2004 12:35 pm    Post subject: Reply with quote

Ruzbey, it looks like you don't have you're hotplug system working properly. hotplug should detect the speedtouch modem and load the kernel speedtch module. But, as you found out yourself, putting it in autoload will do the trick also if you want to load the module unconditionally.

Groeten :)
Back to top
View user's profile Send private message
teonacalt
n00b
n00b


Joined: 25 Jul 2004
Posts: 3
Location: Brasil

PostPosted: Sun Jul 25, 2004 7:32 am    Post subject: Can't get online Reply with quote

Hi, i am using a Imac.

After days progressing from stage 1 to 2 to 3 i am here...

I've got everything allright, no troubles with ppppoatm.so, or modem_run.
I've got set my kernel like Fazto sad. But speedtouch module depends on CRC32 and automaticaly turns it on (make menuconfig) when i choose USB->Speedtouch<M>.

By the way, i am using kernek 2.6.7-r11 (now the kernel x86 tree merged together with ppc tree, and ppc users emerges the same ebuild for kernel: "gentoo-dev-sources", it's a great unification).

Back to my kernel configs,

i have not set n_hdlc<>
i have not set in ATM-> RFC1483/2684 Bridged Protocol<>
i have not set Device Drivers->Generic drivers option->Hotplug firmware loading support<>

And i am loading all the modules by hand, because i have not set module autoloading too.

Hotplug is enabled in the kernel and working, but i did not emerged hotplug and deps (sys-apps/pciutils sys-app/usbutils sys-app/hotplug)

Well thats what happens:

I load all the needed modules and run speedtouch start ->
The microcode is uploaded , the modem synchronizes and i got:

modem_run started by root,
bla bla bla
usb 1-1: usbfs: interface 0 claimed while ' modem_run' sets config #1
usb 1-1: usbfs: interface 1 claimed while ' modem_run' sets config #1
usb 1-1: usbfs: interface 2 claimed while ' modem_run' sets config #1
bla bla bla
ADSL synchronization has been obtained
ADSL line is up (1184 kbits/s down 128 kbit/s up)


and right after that:

usb 1-1: usbfs process 14958 (modem_run) did not claim interface 0 before use




and the pppd log shows:

Plugin pppoatm.so loaded
pppd started by root
Using interface ppp0
Connect: ppp0<-->8.35
LCP: Timeout sending Config-Requests


My vci/vpi pair is correct because i can get online in my laptop with slackware.

Well i tried not to flood to much with logs and etc. May i just only need to turn on something in the kernel or install the hotplug ebuild.

I do appreciate any help! Thanks. :cry:
Back to top
View user's profile Send private message
fazto
n00b
n00b


Joined: 17 Jun 2004
Posts: 19
Location: Alphen aan den Rijn, the Netherlands

PostPosted: Sun Jul 25, 2004 9:08 am    Post subject: Reply with quote

Hi, teonacalt. Sorry, it seems that my reply notification is off, so I could not find you're message. I'm checking this thread once in a while.

As to you're problem. Well, the hotplug system is only needed to get the right modules loaded automagically, so in the end it's a good thing, but right now you're manually doing stuff, so that seems to be all right.

On the place in you're syslog where is says LCP: Timeout blabla in my syslog it says:
Code:
PAP authentication succeeded


So, are you sure you've got you're PAP secrets set up correct?

And, to make sure you've got the same modules loaded a I have (the relevant, at least), here's my lsmod:

Code:
Module                  Size  Used by
ppp_deflate             2688  0
zlib_deflate           17560  1 ppp_deflate
zlib_inflate           17600  1 ppp_deflate
bsd_comp                3648  0
rivafb                 38116  0
vgastate                8064  1 rivafb
cfbimgblt               1920  1 rivafb
tuner                  14352  0
tvaudio                15180  0
msp3400                16788  0
bttv                  122444  0
video_buf              10820  1 bttv
i2c_algo_bit            6344  1 bttv
v4l2_common             2944  1 bttv
btcx_risc               2248  1 bttv
i2c_core               11792  5 tuner,tvaudio,msp3400,bttv,i2c_algo_bit
videodev                4288  1 bttv
snd_emu10k1            66120  0
snd_rawmidi            12708  1 snd_emu10k1
snd_pcm                55304  1 snd_emu10k1
snd_timer              14084  1 snd_pcm
snd_ac97_codec         46916  1 snd_emu10k1
snd_page_alloc          4936  2 snd_emu10k1,snd_pcm
snd_util_mem            1344  1 snd_emu10k1
snd_hwdep               4164  1 snd_emu10k1
snd                    29924  7 snd_emu10k1,snd_rawmidi,snd_pcm,snd_timer,snd_ac97_codec,snd_util_mem,snd_hwdep
sym53c8xx              59924  0
scsi_transport_spi      7424  1 sym53c8xx
parport_pc             12480  0
parport                12672  1 parport_pc
ipt_TOS                  960  34
ipt_LOG                 4288  155
ipt_TCPMSS              2304  3
ipt_tos                  512  0
iptable_mangle           960  1
ip_nat_ftp              2544  0
iptable_nat            13804  2 ip_nat_ftp
ipt_tcpmss               832  0
ipt_mac                  704  0
iptable_filter          1024  1
ipt_multiport            768  2
ip_conntrack_ftp       69040  1 ip_nat_ftp
ipt_state                576  12
ip_conntrack           18440  4 ip_nat_ftp,iptable_nat,ip_conntrack_ftp,ipt_state
ipt_limit                832  158
ip_tables              11712  12 ipt_TOS,ipt_LOG,ipt_TCPMSS,ipt_tos,iptable_mangle,iptable_nat,ipt_tcpmss,ipt_mac,iptable_filter,ipt_multiport,ipt_state,ipt_limit
pppoatm                 2560  1
ppp_generic            14228  7 ppp_deflate,bsd_comp,pppoatm
slhc                    4928  1 ppp_generic
st                     27676  0
speedtch                8752  1
atm                    24728  4 pppoatm,speedtch
usblp                   7680  0


skip the ipt, snd & bttv stuff
Back to top
View user's profile Send private message
Ruzbeh
Apprentice
Apprentice


Joined: 23 Jun 2004
Posts: 223

PostPosted: Tue Sep 28, 2004 11:30 am    Post subject: Reply with quote

Ok here's an update for all you speedtouch guys (thanks to paulpach).

Here's a way to make the entire loading Speedtouch USB thing and the PPP thing in the background, so your computer starts up faster!!!

In windows, everything loads and THEN the code gets uploaded to the Speedtouch modem, so anyways, you have to edit this.

Make sure you make a backup first, just in case.

Your /etc/init.d/speedtouch script:

Code:
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/speedtouch/files/speedtouch.rc6,v 1.5 2004/07/14
 23:11:58 agriffis Exp $

PPP=$(which pppd)
MODEM_RUN=$(which modem_run)
MOUNT=$(which mount)
UMOUNT=$(which umount)
IFCONFIG=$(which ifconfig)

MAX_LOOP=60

check_modem_run() {
[ "${MICROCODE:-set}" = set ] && ( eend 1 "Please define \$MICROCODE in /etc/conf.d/speedtouch
" ; exit 1 )
[ -f ${MICROCODE} ] ; eend $? "Failed to find the microcode." || exit 1
[ -x ${MODEM_RUN} ] ; eend $? "Failed to find the 'modem_run' executable." || exit 1

# usbdevfs is up ?
( ${MOUNT} | grep -q usbdevfs ) || $MOUNT none /proc/bus/usb -t usbdevfs > /dev/null 2>&1

sleep 1

## Let's check if modem_run is UP. If not let's try lauching it (again)?
( ps -e | grep -q modem_run ) || $MODEM_RUN -v $VERBOSE -m $MODEM_RUN_EXTRAOPTS -f $MICROCODE
RETURNED=$?

sleep 1
if [ $RETURNED -ne 0 ]; then            # modem_run CAN'T run
        eerror "Can't load the microcode !!"
        eerror "Please detach and attach again your modem to the USB port to unload the microc
ode."
        eerror "Then run '/etc/init.d/speedtouch start'"
return 1
fi

}

depend() {
need localmount modules
}

start() {

ebegin "Starting Speedtouch ADSL Modem..."

check_modem_run || eend 1 "Failed to start Speedtouch ADSL Modem..."

[ ! -z $PPP ] ; eend $? "Failed to find ppp" || exit 1
[ -f "/etc/ppp/peers/$PEER" ] ; eend $? "Failed to find peer configuration" || exit 1
[ -x $IFCONFIG ] ; eend $? "Failed to find 'ifconfig'" || exit 1

## Allright. Start pppd.
einfo "Launching the PPP daemon..."
rm -f /var/run/pppoa*.pid
start-stop-daemon --start --exec $PPP call $PEER > /dev/null 2>&1

RETURNED=1
LOOPS=0

# Loop until connection has been established with the ISP
# or the transaction has failed
while [ $RETURNED -ne 0 ] && [ $LOOPS -le $MAX_LOOP ] ; do
    $IFCONFIG | grep -q 'ppp'
    RETURNED=$?
    LOOPS=`expr $LOOPS + 1`
    sleep 1
done

if [ $LOOPS -gt $MAX_LOOP ] && [ $RETURNED -ne 0 ] ; then
    eerror "Failed to start the PPP daemon" ; return 1
fi

                                       
eend $? "Failed to start Speedtouch ADSL Modem..."
}

stop () {
ebegin "Shutting down the SpeedTouch ADSL Modem..."

start-stop-daemon --stop --pidfile /var/run/ppp0.pid pppd

eend $? "Failed to stop 'pppd'."
}


Change

Code:

start() {


to

Code:
start() {
(


secondly,

Code:

eend $? "Failed to start Speedtouch ADSL Modem..."
}


to

Code:
eend $? "Failed to start Speedtouch ADSL Modem..."
) &>/dev/null &
}


That's it. Now you boot and everything loads in the background. ;)
Back to top
View user's profile Send private message
Keffin
Apprentice
Apprentice


Joined: 14 Feb 2004
Posts: 202
Location: England

PostPosted: Tue Sep 28, 2004 2:14 pm    Post subject: Reply with quote

Ruzbeh wrote:
Ok here's an update for all you speedtouch guys (thanks to paulpach).

Here's a way to make the entire loading Speedtouch USB thing and the PPP thing in the background, so your computer starts up faster!!!

/snip


This now seems to be taken care of by the hotplug script installed by the new speedtouch 1.3 package (just hit ~x86). Though I got weird warning messages at boot if my hotplug and speedtouch init scripts weren't BOTH at the boot runlevel.

I messed around with this all last night and this morning and I have no idea how it is working at all but without hotplug (I unmerged it and loaded all the modules manually to try and see what was going on) the speedtouch 1.3 init script takes its time at boot and doesn't work in the background as per usual - it seems not to have changed from 1.2.

Having hotplug on the boot runlevel and speedtouch on the default runlevel causes hotplug to start the modem in the background, then try to stop it again - which fails because it hasn't loaded yet. You end up with a warning (during the boot runlevel) that it couldn't stop the modem but the modem works and you boot faster because it did it in the background. This is how I was set up from the old package, and what prompted me to do all this testing.

Having hotplug at the boot runlevel and speedtouch in NEITHER runlevel causes hotplug to start the script in the background, try to stop it (and fail) whilst still in the boot runlevel, try to stop it (and fail) at the default runlevel, and still you acheieve a fast boot and a working modem, but with 2 warning messages.

Finally I put the speedtouch init script at boot with hotplug and the modem is started in the background - a fast boot with no warnings appearing as it should be.

This seems really bizarre to me, anyway maybe this knowledge will help other people seeing the same problems. Also I noticed that not having hotplug in any runlevel it still starts it at boot, this is probably because udev needs it so starts it anyway. And finally due to the changes in the latest hotplug packages (not sure if they're in x86 but they are in ~x86) I have to load the ohci_hcd module (USB related) manually at boot, though I understand coldplug can be used to automatically load it as hotplug used to - I have not tried this.
_________________
Always cut the deck if it ups your odds.
Back to top
View user's profile Send private message
pepelepew
n00b
n00b


Joined: 28 Sep 2004
Posts: 31

PostPosted: Wed Sep 29, 2004 10:12 am    Post subject: Reply with quote

Just in case anyone is still having problems I had a lot of trouble getting my alcatel 330 usb silver model to work until I compiled all options stated in the first post into my kernel and used the firmware file zzzl_3.012 available from http://www.speedtouch.com/support.htm under Embedded Firmware for Linux users. You do have to register though. Now works a treat however.
Back to top
View user's profile Send private message
volumen1
Guru
Guru


Joined: 01 Mar 2003
Posts: 393
Location: Missoula, MT

PostPosted: Thu Oct 14, 2004 5:35 am    Post subject: Changes for a static IP? Reply with quote

Howdy all. First off, this is a great HOWTO. I think I'm dangerously close to having a functional DSL connection. However, there is one snag. My ISP assigned me a static IP and they are routing a block of 8 IPs to that static. I'm not exactly sure how I need to do these statics. Before I started down this path, I envisioned that I'd be able to create ip aliases for my ppp0 interface after it came up.

The problem is that my ppp0 interface never comes up, nor do I seem to be getting an IP.

Here is what shows up in syslog when I run /etc/init.d/speedtouch start
Code:
Oct 13 23:29:47 elijah pppd[24543]: Plugin pppoatm.so loaded.
Oct 13 23:29:47 elijah pppd[4661]: pppd 2.4.2 started by root, uid 0
Oct 13 23:29:47 elijah pppd[4661]: Using interface ppp0
Oct 13 23:29:47 elijah pppd[4661]: Connect: ppp0 <--> 0.32
Oct 13 23:29:50 elijah pppd[4661]: PAP authentication succeeded


But, that's it. When I do an ifconfig, ppp0 doesn't show up. However, it does show up in an ifconfig -a. It even seems to be seeing some packets?

Code:
ppp0      Link encap:Point-to-Point Protocol
          POINTOPOINT NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:1921 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1923 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:26820 (26.1 Kb)  TX bytes:49685 (48.5 Kb)



However, the interface isn't up and it doesn't have an IP. It's been ages since I've touched a modem, so I suck with ppp. However, I edited my /etc/ppp/pap-secrets and /etc/ppp/chap-secrets file and I added my static IP in there, but that didn't seem to do it. Is there some magic I need to script in ip-up or something?

BTW, I'm using the purple speedtouch modem on a laptop running 2.6.7-hardened-r8.
_________________
I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com
Back to top
View user's profile Send private message
volumen1
Guru
Guru


Joined: 01 Mar 2003
Posts: 393
Location: Missoula, MT

PostPosted: Thu Oct 28, 2004 9:34 pm    Post subject: Reply with quote

Blast. I'm so dang close! I was having doubts as to whether or not my DSL was provisioned right. So, I bought an alcatel modem and tested it from a windows laptop. There were routing problems with my ISP and they've since fixed it. So, now I'm back to trying my Alcatel in linux. When I start speedtouch, I get this
Code:
Oct 28 15:17:11 elijah modem_run[21121]: [monitoring report] ADSL link went up
Oct 28 15:17:26 elijah modem_run[19580]: ADSL synchronization has been obtained
Oct 28 15:17:26 elijah modem_run[19580]: ADSL line is up (1536 kbit/s down | 960 kbit/s up)
Oct 28 15:17:26 elijah pppd[28407]: Plugin pppoatm.so loaded.
Oct 28 15:17:26 elijah pppd[24658]: pppd 2.4.2 started by root, uid 0
Oct 28 15:17:26 elijah pppd[24658]: Using interface ppp0
Oct 28 15:17:26 elijah pppd[24658]: Connect: ppp0 <--> 0.32


However, the ppp0 interface still doesn't come up. However, I know I need to supply my static to sucessfully negotiate my connection. Does anyone know how to make an ADSL connection when you have a static IP? I tried adding my static in /etc/ppp/pap-secrets and chap-secrets, but that doesn't seem to do the trick.
_________________
I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com
Back to top
View user's profile Send private message
volumen1
Guru
Guru


Joined: 01 Mar 2003
Posts: 393
Location: Missoula, MT

PostPosted: Thu Oct 28, 2004 10:04 pm    Post subject: YIPEEE! Reply with quote

I figured it out. Here's how I did it, in case anyone out there has the same issue.

1) I yanked the ip address information out of /etc/ppp/pap-secrets and /etc/ppp/chap-secrets
2) I edited /etc/ppp/peers/adsl and added the following

Code:

debug
#enable debugging so I can see what's up
10.0.0.1:10.0.0.254
#where 10.0.0.1 is your static IP given to you by your ISP
#and 10.0.0.254 is the gateway that the ISP has given you

You might be able to leave the second part blank? Do a man to read about that option.

Anyway, that totally got me rocking. Now I just need to figure out how to add my ppp0 aliases, but I'm sure I can just hack the speedtouch initscript to do that.
_________________
I was born with a freakin' dice bag on my belt.
-- www.howsyournetwork.com
Back to top
View user's profile Send private message
tuppe666
Guru
Guru


Joined: 02 Mar 2004
Posts: 423

PostPosted: Sat Oct 30, 2004 2:48 pm    Post subject: Reply with quote

I noticed in the new releace version of the kernel 2.6.10rc1 that there have been major changes in the kernel driver, no loading the firmware anymore. It all looks pretty good what changes will have to be made to any init.d scripts/hotplug scripts.
Back to top
View user's profile Send private message
DuF
Advocate
Advocate


Joined: 09 Dec 2002
Posts: 2671
Location: Paris

PostPosted: Sun Oct 31, 2004 11:44 am    Post subject: Reply with quote

tuppe666 wrote:
I noticed in the new releace version of the kernel 2.6.10rc1 that there have been major changes in the kernel driver, no loading the firmware anymore. It all looks pretty good what changes will have to be made to any init.d scripts/hotplug scripts.


When I read you it seems that with futur 2.6.10 kernel we will not need anymore to load the firmware with modem_run ? Are you sure ?
Back to top
View user's profile Send private message
tuppe666
Guru
Guru


Joined: 02 Mar 2004
Posts: 423

PostPosted: Mon Nov 01, 2004 12:17 am    Post subject: Reply with quote

If you do a search for speedtouch it seems to conatin some interesting changes, you draw your own conclusions!!

http://www.kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.10-rc1

I refer to this!!

Quote:
<dwmw2@shinybook.infradead.org>
USB: Generic USB ATM/DSL core and completed SpeedTouch driver

This can now load the firmware and initialise the modem for itself,
with no need for any userspace help (except for putting the firmware
in /lib/firmware in the first place).

The core packet I/O code is split out into a separate file where it can
be used by drivers for some of the other similar modems.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Back to top
View user's profile Send private message
PeeJay
n00b
n00b


Joined: 15 Aug 2004
Posts: 46
Location: Sydney, Australia

PostPosted: Tue Nov 02, 2004 8:33 am    Post subject: Reply with quote

Am I right in thinking that the Speedtouch driver has not been included in 2.6 since 2.6.7? I can't find it in 8 or 9?
Back to top
View user's profile Send private message
tuppe666
Guru
Guru


Joined: 02 Mar 2004
Posts: 423

PostPosted: Tue Nov 02, 2004 10:49 am    Post subject: Reply with quote

Short answer No, its in 2.6.8, 2.6.8.1 2.6.9 and as my last post says funky things seem to be happening no user-space loading of the firmware driver anymore.

do a make oldconfig you probable don't have many sections to change between them. I don't rember what/if there have been any changes in the these later versions(post 2.6.7) of the kernel.

I did have a problem with one version of 2.6 and just couldn't get speedtouch working but my memory has got quite fussy.
Back to top
View user's profile Send private message
PeeJay
n00b
n00b


Joined: 15 Aug 2004
Posts: 46
Location: Sydney, Australia

PostPosted: Tue Nov 02, 2004 11:05 am    Post subject: Reply with quote

It's under Device Drivers -> USB Support right? It's not there!
I've tried 2.6.9-gentoo-r2, 2.6.8-gentoo-r3 and 2.6.8-gentoo-r4
That's with a clean .config file. I don't get it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4, 5  Next
Page 2 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum