FreeBSD 5.3 Stable and Speedtouch 330 USB (using pppoA) HOWTO

From: Rekkie (rekcut11_at_excite.com)
Date: 01/31/05


Date: 31 Jan 2005 07:15:58 -0800

Just to let everyone know howto go about using a Speedtouch 330
(rev.4) USB modem under FreeBSD5.3. Hope this useful... I certainly
found it difficult to find all the necessary information and spent
quite some time getting it to work:

1. Download the firmware for this modem from
http://www.speedtouch.com/driver_upgrade_lx_3.0.1.2.htm
2. Download the open source driver from
http://prdownloads.sourceforge.net/speedtouch/speedtouch-1.3.1.tar.bz2?download
(This does not install all that easy under FREEBSD5.3-Release)
3.Download the patch to ugen.c
http://www.bishopston.com/jamie/freebsd/ugen.c-5.3-RELEASE-patched
(thanks for this invaluable information to: Jamie Bishop
http://groups.google.it/groups?q=ugen.c-5.3-RELEASE-patched&hl=it&lr=&selm=200412120053.iBC0rBBv048316%40catflap.bishopston.net&rnum=1)

Next you need to recompile libpthread (/usr/src/lib/libpthread), I got
this by updating the source tree and upgrading to FreeBSD5.3-Stable:

[root@numa /root]# cp /usr/share/examples/cvsup/stable-supfile /etc
[root@numa /root]# vi /etc/stable-supfile

        - Run the ":set num" command in vi so that you can see the
line numbers on each line of the file.
        - Change line 68 of the file so that it points cvsup to a CVS
server near you. Section A.5.7. (CVSup Sites) of the FreeBSD Handbook
will tell you where the CVSup servers are.
        - On line 73, modify the "tag" variable to correspond to the
specific release of the O/S that you want to track. The default value
of the tag in the example file is "RELENG_5". This will download the
source code for the O/S which will has all of the security updates as
well as general bugfixes and feature enhancements. If, however, you're
in a production environment and can't afford even the slightest risk
of feature enhancements causing problems with your production
configuration, there's a different value for this tag that's just for
you. In this case, set the tag to "RELENG_5_3". This has ONLY the
security fixes...no feature enhancements...so it's arguably the more
stable version of the 5.3-STABLE branch. 95% of sysadmin's should
change the tag to "RELENG_5_3" to track the security-related
"5.3-STABLE" baseline and not mess with new enhancements which might
impact the system's stability. It's your system...it's your call...

[root@numa /root]# cvsup /etc/stable-supfile

(Source tree is synchronized with CVS server...should take 30-60
minutes...)

After this go to /usr/src/lib/libpthread
[root@numa /root]# cd /usr/src/lib/libpthread

modify the make file:
[root@numa /libpthread]# vi Makefile
and change the line reading LIB=pthread to LIB=lpthread and save.
Next you need to recompile
[root@numa /libpthread]# make
when this completes install this
[root@numa /libpthread]# make install

next goto /usr/ports/dev/gmake (required to compile the speedtouch
sources) note this may require you to be connected to the internet to
be able to download the sources.
[root@numa /libpthread]# cd /usr/ports/dev/gmake
[root@numa /gmake]# make
[root@numa /gmake]# make install

once you have copleted these steps
you need to update ugen.c . To do this replace the file with the one
on the page in step 3 above.
[root@numa /tmp]# cp ugen.c.new /usr/src/sys/dev/usb/ugen.c

Now we are ready to compile and install the source downloaded in step
2.
[root@numa /tmp]# tar zxvf speedtouch-1.3.1.tar.bz2
[root@numa /tmp]# cd speedtouch-1.3.1
[root@numa /speedtouch-1.3.1]# gmake
[root@numa /speedtouch-1.3.1]# gmake install

and there you go all ready to get going with your speedtouch modem.
There are still a few steps:
enable usb in /etc/rc.conf
add a line:
usbd_enable="YES"

It is also possible to set up ppp to dial up at startup. To do this
add the following lines to /etc/rc.conf. Again, for this procedure you
will need to be logged in as the root user.

ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="adsl"

Like many USB devices, the Alcatel SpeedTouch™ USB needs to download
firmware from the host computer to operate properly. It is possible to
automate this process in FreeBSD so that this transfer takes place
whenever the device is plugged into a USB port. The following
information can be added to the /etc/usbd.conf file to enable this
automatic firmware transfer. This file must be edited as the root
user.

device "Alcatel SpeedTouch USB"
    devname "ugen[0-9]+"
    vendor 0x06b9
    product 0x4061
    attach "/usr/local/sbin/modem_run -f /usr/local/libdata/mgmt.o"

Where /usr/local/libdata/mgmt.o is replaced by the location of the
appropriate file extracted from the firmare zip file downloaded in
step 1 above. (in my case ZZZ_.... cant remember the whole name
offhand)

Next copy the /usr/etc/rc.d/adsl.sh.dist to /usr/etc/rc.d/adsl.sh

cp /usr/etc/rc.d/adsl.sh.dist /usr/etc/rc.d/adsl.sh

and modify the appropriate fields <vpi> <vci> and username and
password

and lo and behold everything should work. On rebooting your modem
should connect to your provider automatically if you configured that
part....

Hope this was of help and that I didn't forget to include any steps as
I did this a while ago. If I have let me know.



Relevant Pages

  • Re: Problem setting up broadband from Tiscali
    ... come up with a way of sussing it out & getting the Modem Drivers ... Connection (as well as a USB Connection) on it! ... The SpeedTouch will Install ...
    (uk.people.silversurfers)
  • Re: Win2000 Pro fails to start at bootup
    ... I decided to add a PCI Modem. ... To troubleshoot I removed all my USB cables and rebooted. ... > After doing a clean install to a new HD Winn2000 Pro fails to start. ...
    (microsoft.public.win2000.general)
  • Re: Why does wuauclt.exe run at startup?
    ... install", not "download and install later", unless I'm missing ... What happens if your connection goes down in the middle of an update? ... I have created a power switch for the cable modem (a ...
    (microsoft.public.windowsxp.general)
  • Re: Problem setting up broadband from Tiscali
    ... come up with a way of sussing it out & getting the Modem Drivers ... Connection (as well as a USB Connection) on it! ... that it's easier to install an Ethernet connection than a USB connection. ...
    (uk.people.silversurfers)
  • Re: Internet Connection.
    ... I do have an install CD from my ISP but it will not run the .exe file from it for the drivers needed. ... If it were me and the choice was simple I would choose ethernet or wireless rather than USB to connect a DSL modem. ... What other computers are involved and why do you want or need to use the USB port for the internet connection? ...
    (Ubuntu)