Welcome to FreeBSDFreaks.net!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

FreeBSD 5.3 Stable and Speedtouch 330 USB (using pppoA) HO..

 
   FreeBSD Hosting (Home) -> FreeBSD Stable RSS
Next:  FreeBSD 5.3 Stable and Speedtouch 330 USB  
Author Message
Rekkie

External


Since: Jan 26, 2005
Posts: 2



(Msg. 1) Posted: Mon Jan 31, 2005 7:15 am
Post subject: FreeBSD 5.3 Stable and Speedtouch 330 USB (using pppoA) HOWTO
Archived from groups: comp>unix>bsd>freebsd>misc (more info?)

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=&...m=20041)

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.

 >> Stay informed about: FreeBSD 5.3 Stable and Speedtouch 330 USB (using pppoA) HO.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
FreeBSD 5.3 Stable and Speedtouch 330 USB - Hi, I have been fighting to get my Alcatel USB Speedtouch 330 (rev.4) adsl modem with FreeBSD 5.3-RELEASE/STABLE using PPPoA. Has anyone managed to get this modem to work under this platform? If anyone has a recipe on how to get this modem to work I..

Freebsd STABLE - I am using 5.2 realese and using CTM to get STABLE In the CTM ftp I found these folders 08/07/03 12:00AM <DIR> cvs-cur 01/04/02 12:00AM <DIR> ports-cur 02/11/01 12:00AM <DIR> src-2.2 08/07/03 12:00AM ...

FreeBSD 5-STABLE - ... is it production quality? I do notice they say Production Release on the FreeBSD.org page, and 4.10 being legacy, but from experience.. has anyone had any significant problems? I'd be doing it from a fresh-install, rather than an upgrade.. and m...

FreeBSD 5.4-STABLE - I re-built my 5.3 system yesterday after cvsup ran yesterday in the A.M. After a rebooting I get: # uname -v FreeBSD 5.4-STABLE #5: Sun Apr 17 16:32:09 CDT 2005 jjr@www.larush.com:/usr/obj/usr/src/sys/GENERIC I didn't see any annoucement about..

ohphone 1.4.1 FreeBSD 5.3 Stable - Hello, anybody there has tried ohphone 1.4.1 in FreeBSD 5.3 Stable? I have working sound (output good. Input, well the mic records sound, not good quality). Ophone registers to gatekeeper, but no sound is produced while a call is in course. Error..
   FreeBSD Hosting (Home) -> FreeBSD Stable All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can 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



[ Contact us | Terms of Service/Privacy Policy ]