“UbuntuHelp:UsbAdslModem/SpeedTouch”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/UsbAdslModem/SpeedTouch}} | {{From|https://help.ubuntu.com/community/UsbAdslModem/SpeedTouch}} | ||
{{Languages|UbuntuHelp:UsbAdslModem/SpeedTouch}} | {{Languages|UbuntuHelp:UsbAdslModem/SpeedTouch}} | ||
− | |||
This guide is for setting up a USB ADSL modem with the '''''Speed``Touch''''' driver under Ubuntu 6.10 (Edgy Eft). | This guide is for setting up a USB ADSL modem with the '''''Speed``Touch''''' driver under Ubuntu 6.10 (Edgy Eft). | ||
− | |||
=== The firmware === | === The firmware === | ||
− | |||
===== About the firmware ===== | ===== About the firmware ===== | ||
− | |||
The firmware is a small piece of code that gets loaded into the modem itself as a kind of OS for the modem. There are three revisions for the '''''Speed``Touch''''' and each revision runs its own firmware. To determine what revision you need, use the following command: | The firmware is a small piece of code that gets loaded into the modem itself as a kind of OS for the modem. There are three revisions for the '''''Speed``Touch''''' and each revision runs its own firmware. To determine what revision you need, use the following command: | ||
<pre><nowiki> | <pre><nowiki> | ||
第16行: | 第12行: | ||
<pre><nowiki> | <pre><nowiki> | ||
mkdir speedtouch | mkdir speedtouch | ||
− | |||
mv SpeedTouch330_firmware_3012.zip speedtouch | mv SpeedTouch330_firmware_3012.zip speedtouch | ||
− | |||
cd speedtouch | cd speedtouch | ||
− | |||
unzip SpeedTouch330_firmware_3012.zip | unzip SpeedTouch330_firmware_3012.zip | ||
</nowiki></pre> | </nowiki></pre> | ||
Now we have the firmware files in our speedtouch working folder. | Now we have the firmware files in our speedtouch working folder. | ||
− | |||
===== Preparing the firmware ===== | ===== Preparing the firmware ===== | ||
You now have the needed firmware - but that is not enough - the firmware file needs to be prepared and for this we will use a tool called firmware-extractor. The firmware-extractor splits the firmare file in two pieces so it vcan be loaded into the modem's memory. So [http://www.linux-usb.org/SpeedTouch/firmware/firmware-extractor download] the firmware-extractor and move it to the fresh created working folder: | You now have the needed firmware - but that is not enough - the firmware file needs to be prepared and for this we will use a tool called firmware-extractor. The firmware-extractor splits the firmare file in two pieces so it vcan be loaded into the modem's memory. So [http://www.linux-usb.org/SpeedTouch/firmware/firmware-extractor download] the firmware-extractor and move it to the fresh created working folder: | ||
第44行: | 第36行: | ||
if you have a 4 revision modem. | if you have a 4 revision modem. | ||
After that you will have two files in the speedtouch folder: speedtch-1.bin & speedtch-2.bin is just the firmware splited in two parts. | After that you will have two files in the speedtouch folder: speedtch-1.bin & speedtch-2.bin is just the firmware splited in two parts. | ||
− | |||
===== Copying the firmware into the right place. ===== | ===== Copying the firmware into the right place. ===== | ||
Now we will copy the firmware files to the right place for the firmware to be loaded at boot time. | Now we will copy the firmware files to the right place for the firmware to be loaded at boot time. | ||
第51行: | 第42行: | ||
sudo cp speedtch* /lib/firmware/ | sudo cp speedtch* /lib/firmware/ | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
=== Secrets === | === Secrets === | ||
We need to create a file called either pap-secrets or chap-secrets but since we don't know what authentication method our ISP is using we will just create a secrets file and copy it to /etc/ppp.So open a text editor and put a line like this (don't forget about the spaces in the ' * ') | We need to create a file called either pap-secrets or chap-secrets but since we don't know what authentication method our ISP is using we will just create a secrets file and copy it to /etc/ppp.So open a text editor and put a line like this (don't forget about the spaces in the ' * ') | ||
第63行: | 第53行: | ||
sudo install -m 600 secrets /etc/ppp/pap-secrets | sudo install -m 600 secrets /etc/ppp/pap-secrets | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
=== PPP Over ATM === | === PPP Over ATM === | ||
If your ISP uses PPP Over ATM (PPPoATM, PPPoA) then read this section. If it uses PPP Over Ethernet (PPPoE) then jump to the PPP Over Ethernet section. | If your ISP uses PPP Over ATM (PPPoATM, PPPoA) then read this section. If it uses PPP Over Ethernet (PPPoE) then jump to the PPP Over Ethernet section. | ||
第76行: | 第65行: | ||
plugin pppoatm.so | plugin pppoatm.so | ||
0.00 | 0.00 | ||
− | |||
− | |||
# noaccomp | # noaccomp | ||
# nobsdcomp | # nobsdcomp | ||
第84行: | 第71行: | ||
# noccp | # noccp | ||
# novj | # novj | ||
− | |||
− | |||
# debug | # debug | ||
− | |||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
− | |||
Replace 'username' with that provided by your ISP and also change 0.00 with the VP/VC values and save the file as speedtch. | Replace 'username' with that provided by your ISP and also change 0.00 with the VP/VC values and save the file as speedtch. | ||
Now copy it to /etc/ppp/peers : | Now copy it to /etc/ppp/peers : | ||
第96行: | 第78行: | ||
sudo install -m 600 speedtch /etc/ppp/peers | sudo install -m 600 speedtch /etc/ppp/peers | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
==== Make a Bootscript ==== | ==== Make a Bootscript ==== | ||
Edit /etc/rc.local as root, e.g. | Edit /etc/rc.local as root, e.g. | ||
第112行: | 第93行: | ||
</nowiki></pre> | </nowiki></pre> | ||
Now the connection will start at boot time. | Now the connection will start at boot time. | ||
− | |||
=== PPP Over Ethernet === | === PPP Over Ethernet === | ||
If your ISP is using PPP Over Ethernet (PPPoE) then things are a little bit more complicated because we need to create a bridging connection using br2684ctl bridging utility. Download br2684ctl from [http://www.linux-usb.org/SpeedTouch/mandrake/br2684ctl here] and install it with this command: | If your ISP is using PPP Over Ethernet (PPPoE) then things are a little bit more complicated because we need to create a bridging connection using br2684ctl bridging utility. Download br2684ctl from [http://www.linux-usb.org/SpeedTouch/mandrake/br2684ctl here] and install it with this command: | ||
第128行: | 第108行: | ||
plugin rp-pppoe.so | plugin rp-pppoe.so | ||
nas0 | nas0 | ||
− | |||
− | |||
# noaccomp | # noaccomp | ||
# nobsdcomp | # nobsdcomp | ||
第136行: | 第114行: | ||
# noccp | # noccp | ||
# novj | # novj | ||
− | |||
− | |||
# debug | # debug | ||
− | |||
</nowiki></pre> | </nowiki></pre> | ||
replace 'username' with that provided by your ISP, save it as speedtch and copy it to /etc/ppp/peers: | replace 'username' with that provided by your ISP, save it as speedtch and copy it to /etc/ppp/peers: | ||
第145行: | 第120行: | ||
sudo install -m 600 speedtch /etc/ppp/peers | sudo install -m 600 speedtch /etc/ppp/peers | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
==== Make a Bootscript ==== | ==== Make a Bootscript ==== | ||
Open a text editor and paste the following: | Open a text editor and paste the following: | ||
第178行: | 第152行: | ||
</nowiki></pre> | </nowiki></pre> | ||
Now everything is in place and the connection is set. | Now everything is in place and the connection is set. | ||
− | |||
==== Finally ==== | ==== Finally ==== | ||
You now reboot and should be online. The Net is yours! :) | You now reboot and should be online. The Net is yours! :) | ||
− | |||
http://www.easy-poll.com/counters/free_counter.32449.png | http://www.easy-poll.com/counters/free_counter.32449.png | ||
− | |||
− | |||
---- | ---- | ||
[[category:CategoryNetworking]] | [[category:CategoryNetworking]] | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2007年11月30日 (五) 22:03的版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
This guide is for setting up a USB ADSL modem with the Speed``Touch driver under Ubuntu 6.10 (Edgy Eft).
目录
The firmware
About the firmware
The firmware is a small piece of code that gets loaded into the modem itself as a kind of OS for the modem. There are three revisions for the Speed``Touch and each revision runs its own firmware. To determine what revision you need, use the following command:
grep -B 1 "THOMSON" /proc/bus/usb/devices
After that you will see something like this: Rev= X.00 (where X is the version of your modem). If you have a 0 or 2 revision then you will have to use the KQD6_3.012 file from this archive and if the output of the command says you have a revision 4 modem then you will have to use the ZZZL_3.012 file from the same archive. Download the zip file containing the firmware and save it in your home folder. Create a folder called "speedtouch" where you will do all the work and move the zip file containing the firmware files to it and unzip it.
mkdir speedtouch mv SpeedTouch330_firmware_3012.zip speedtouch cd speedtouch unzip SpeedTouch330_firmware_3012.zip
Now we have the firmware files in our speedtouch working folder.
Preparing the firmware
You now have the needed firmware - but that is not enough - the firmware file needs to be prepared and for this we will use a tool called firmware-extractor. The firmware-extractor splits the firmare file in two pieces so it vcan be loaded into the modem's memory. So download the firmware-extractor and move it to the fresh created working folder:
mv firmware-extractor speedtouch
Now we will split the firmware using the following commands depending on the modem revision:
cd speedtouch chmod +x firmware-extractor ./firmware-extractor KQD6_3.012
if you have a 0 or 2 revision modem or:
cd speedtouch && chmod +x firmware-extractor && ./firmware-extractor ZZZL_3.012
if you have a 4 revision modem. After that you will have two files in the speedtouch folder: speedtch-1.bin & speedtch-2.bin is just the firmware splited in two parts.
Copying the firmware into the right place.
Now we will copy the firmware files to the right place for the firmware to be loaded at boot time. This command will do the work:
sudo cp speedtch* /lib/firmware/
Secrets
We need to create a file called either pap-secrets or chap-secrets but since we don't know what authentication method our ISP is using we will just create a secrets file and copy it to /etc/ppp.So open a text editor and put a line like this (don't forget about the spaces in the ' * ')
'username' * 'password'
replace 'username' and 'password' with those provided by your ISP and save the file as secrets
. Make sure there are no quotes around those details.
Now we will copy it to /etc/ppp:
sudo install -m 600 secrets /etc/ppp/chap-secrets sudo install -m 600 secrets /etc/ppp/pap-secrets
PPP Over ATM
If your ISP uses PPP Over ATM (PPPoATM, PPPoA) then read this section. If it uses PPP Over Ethernet (PPPoE) then jump to the PPP Over Ethernet section. We now need to create a configuration file for pppd to use so open a text editor and paste the following into it:
noipdefault defaultroute user 'username' noauth updetach usepeerdns plugin pppoatm.so 0.00 # noaccomp # nobsdcomp # nodeflate # nopcomp # noccp # novj # debug
Replace 'username' with that provided by your ISP and also change 0.00 with the VP/VC values and save the file as speedtch. Now copy it to /etc/ppp/peers :
sudo install -m 600 speedtch /etc/ppp/peers
Make a Bootscript
Edit /etc/rc.local as root, e.g.
sudo nano /etc/rc.local
and after the line
# By default this script does nothing
paste the following:
# Start up Speedtouch connection pon speedtch
Now the connection will start at boot time.
PPP Over Ethernet
If your ISP is using PPP Over Ethernet (PPPoE) then things are a little bit more complicated because we need to create a bridging connection using br2684ctl bridging utility. Download br2684ctl from here and install it with this command:
sudo install -m 755 br2684ctl /usr/sbin
Now we also need a configuration file for pppd to use so we open a text editor and paste the following:
noipdefault defaultroute user 'username' noauth updetach usepeerdns plugin rp-pppoe.so nas0 # noaccomp # nobsdcomp # nodeflate # nopcomp # noccp # novj # debug
replace 'username' with that provided by your ISP, save it as speedtch and copy it to /etc/ppp/peers:
sudo install -m 600 speedtch /etc/ppp/peers
Make a Bootscript
Open a text editor and paste the following:
#!/bin/bash modprobe ppp_generic modprobe pppoatm modprobe br2684 count=0 while [ $count -lt 40 ] do sync=$(dmesg | grep 'ADSL line is up') if [ ! -z "$sync" ] then br2684ctl -b -c 0 -a VP.VC sleep 3 ifconfig nas0 192.168.0.1 netmask 255.255.255.0 up sleep 10 pppd call speedtch exit 0 fi sleep 1 count=$((1+$count)) done echo "The Speedtouch firmware didn't load"
change the VP.VC values with those provided by your ISP ( in my case 0.35 ) save the file as dial then install the bootcript and make the needed symbolic links:
sudo install -m 744 dial /etc/init.d && sudo ln -s ../init.d/dial /etc/rc2.d/S95dial && sudo ln -sf ppp/resolv.conf /etc/resolv.conf
Now everything is in place and the connection is set.
Finally
You now reboot and should be online. The Net is yours! :)