“UbuntuHelp:DialupModemHowto/PcTel”的版本间的差异
来自Ubuntu中文
小 (New page: {{From|https://help.ubuntu.com/community/DialupModemHowto/PcTel}} {{Languages|php5}} #pragma keywords smartlink modem winmodem linmodem networking scanmodem sl-modem intel linuxant conexan...) |
小 |
||
(未显示2个用户的8个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/DialupModemHowto/PcTel}} | {{From|https://help.ubuntu.com/community/DialupModemHowto/PcTel}} | ||
− | {{Languages| | + | {{Languages|UbuntuHelp:DialupModemHowto/PcTel}} |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== PCTel Modems == | == PCTel Modems == | ||
− | |||
In order to use PcTEL Micromodem 56 (HSP56 MicroModem Pctel, or any other modem supported by driver) you will have to switch to kernel 2.6.8.1 or lower. Even so, some units will NOT work with 2.6 kernel (consult README file in driver archive), but all of them work with 2.4 kernels. To make the short story long, going online on Ubuntu 5.10 aka. Breezy Badger you have to do four things: (before u do all this, read this section until the end) | In order to use PcTEL Micromodem 56 (HSP56 MicroModem Pctel, or any other modem supported by driver) you will have to switch to kernel 2.6.8.1 or lower. Even so, some units will NOT work with 2.6 kernel (consult README file in driver archive), but all of them work with 2.4 kernels. To make the short story long, going online on Ubuntu 5.10 aka. Breezy Badger you have to do four things: (before u do all this, read this section until the end) | ||
I. get some utilities (gcc & initrd among else) | I. get some utilities (gcc & initrd among else) | ||
+ | |||
II. get vanilla kernel on www.kernel.org (I suggest) 2.6.8.1 | II. get vanilla kernel on www.kernel.org (I suggest) 2.6.8.1 | ||
III. Recompile the kernel | III. Recompile the kernel | ||
IV.Install the driver and configure ppp | IV.Install the driver and configure ppp | ||
− | |||
Here are the details: | Here are the details: | ||
(I will assume your kernel source is in /usr/src | (I will assume your kernel source is in /usr/src | ||
− | |||
Open terminal and use root privileges <pre><nowiki> | Open terminal and use root privileges <pre><nowiki> | ||
sudo apt-get install gcc-3.4 build-essential libncurses5-dev kernel-package gnome-ppp | sudo apt-get install gcc-3.4 build-essential libncurses5-dev kernel-package gnome-ppp | ||
第21行: | 第15行: | ||
sudo ln -sf /usr/bin/gcc-3.4 /usr/bin/gcc # this will make your system use gcc 3.4 instead of 4.0.2 This is necessary because you will not be able to compile kernel with gcc-4 series</nowiki></pre> | sudo ln -sf /usr/bin/gcc-3.4 /usr/bin/gcc # this will make your system use gcc 3.4 instead of 4.0.2 This is necessary because you will not be able to compile kernel with gcc-4 series</nowiki></pre> | ||
Go to your downloaded kernel folder | Go to your downloaded kernel folder | ||
− | <pre><nowiki>sudo tar -xvfj kernel-2.6.8.1.tar.gz | + | <pre><nowiki> |
+ | sudo tar -xvfj kernel-2.6.8.1.tar.gz | ||
cd kernel-2.6.8.1 | cd kernel-2.6.8.1 | ||
sudo make mrproper | sudo make mrproper | ||
第35行: | 第30行: | ||
sudo dpkg -i kernel-image-2.6.8.1_custom.1.0_i386.deb | sudo dpkg -i kernel-image-2.6.8.1_custom.1.0_i386.deb | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
If something goes wrong you will have to delete folder in <code><nowiki>/usr/src</nowiki></code> with your new kernel's name, NOT your default kernel. | If something goes wrong you will have to delete folder in <code><nowiki>/usr/src</nowiki></code> with your new kernel's name, NOT your default kernel. | ||
− | |||
If something goes wrong, go to where your kernel source is and run <code><nowiki>sudo make clean </nowiki></code> and repeat everything above. If you are using GRUB that's it. No more. If you are using LILO, google a bit and you'll find how to configure it. | If something goes wrong, go to where your kernel source is and run <code><nowiki>sudo make clean </nowiki></code> and repeat everything above. If you are using GRUB that's it. No more. If you are using LILO, google a bit and you'll find how to configure it. | ||
− | |||
Only one note here: you will not see standard Ubuntu splash on boot process; screen will be black, but the boot will go as normal. If you want to see what is happening go to /boot/grub and open menu.lst and under line that goes boot /boot/vmlinus something...something <code><nowiki> quiet splash </nowiki></code> delete <code><nowiki> splash </nowiki></code>. Or, if you will you can go on-line and find a better way to do this. There are enough resources. | Only one note here: you will not see standard Ubuntu splash on boot process; screen will be black, but the boot will go as normal. If you want to see what is happening go to /boot/grub and open menu.lst and under line that goes boot /boot/vmlinus something...something <code><nowiki> quiet splash </nowiki></code> delete <code><nowiki> splash </nowiki></code>. Or, if you will you can go on-line and find a better way to do this. There are enough resources. | ||
− | |||
Second, if you are messing with configuration of the kernel, '''DO NOT''' change things you are not sure about. Sure, feel free to select only your graphic/music card or such things, but if you are not sure if you need something don't remove that. Remember, these are the settings that '''work'''. | Second, if you are messing with configuration of the kernel, '''DO NOT''' change things you are not sure about. Sure, feel free to select only your graphic/music card or such things, but if you are not sure if you need something don't remove that. Remember, these are the settings that '''work'''. | ||
− | |||
− | |||
* Actually, if this compiled kernel doesn't work, you will have to add some changes... and here they are: (you can do this in the first attempt) | * Actually, if this compiled kernel doesn't work, you will have to add some changes... and here they are: (you can do this in the first attempt) | ||
<pre><nowiki> | <pre><nowiki> | ||
第55行: | 第44行: | ||
</nowiki></pre> | </nowiki></pre> | ||
now continue with <code><nowiki> make menuconfig </nowiki></code> ... | now continue with <code><nowiki> make menuconfig </nowiki></code> ... | ||
− | |||
See http://www.falkotimme.com/howtos/debian_kernel2.6_compile/ for more help on this (kernel compilation) step. | See http://www.falkotimme.com/howtos/debian_kernel2.6_compile/ for more help on this (kernel compilation) step. | ||
− | |||
You will now have to download [http://linmodems.technion.ac.il/pctel-linux/pctel-0.9.7-9-rht-6.tar.gz modem drivers] and install them. Simply run <pre><nowiki> | You will now have to download [http://linmodems.technion.ac.il/pctel-linux/pctel-0.9.7-9-rht-6.tar.gz modem drivers] and install them. Simply run <pre><nowiki> | ||
sudo ./setup | sudo ./setup | ||
第66行: | 第53行: | ||
</nowiki></pre> | </nowiki></pre> | ||
from within the '''untarred''' modem driver directory. In order to use second method you will have to copy your kernel source to /usr/src. Do this Only AFTER you have successfuly compiled the kernel, and DO NOT compile it from /usr/src. | from within the '''untarred''' modem driver directory. In order to use second method you will have to copy your kernel source to /usr/src. Do this Only AFTER you have successfuly compiled the kernel, and DO NOT compile it from /usr/src. | ||
− | |||
Final step: once you have sucessfuly compiled the kernel and the drivers you will whish to be able to load the drivers every time you boot the machine. Here is how you do it: go to /etc and look for file called modules. Open it and add following lines: | Final step: once you have sucessfuly compiled the kernel and the drivers you will whish to be able to load the drivers every time you boot the machine. Here is how you do it: go to /etc and look for file called modules. Open it and add following lines: | ||
<pre><nowiki> | <pre><nowiki> | ||
第73行: | 第59行: | ||
pctel_hw | pctel_hw | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
You can also load them by | You can also load them by | ||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
sudo modprobe linmodem | sudo modprobe linmodem | ||
第81行: | 第65行: | ||
sudo modprobe pctel_hw | sudo modprobe pctel_hw | ||
</nowiki></pre> | </nowiki></pre> | ||
− | |||
In the end, you will have two kernels you can chose among, if something goes wrong. Rememember that what you do by using one kernel will not be undone when you use the other one. | In the end, you will have two kernels you can chose among, if something goes wrong. Rememember that what you do by using one kernel will not be undone when you use the other one. | ||
− | |||
==Notes== | ==Notes== | ||
Original forum post here: http://ubuntuforums.org/showpost.php?p=928212&postcount=10 The OP couldn't edit the wiki, I thank him for his time and effort for contributing. | Original forum post here: http://ubuntuforums.org/showpost.php?p=928212&postcount=10 The OP couldn't edit the wiki, I thank him for his time and effort for contributing. | ||
− | |||
Also see http://ubuntuforums.org/showthread.php?t=171163 | Also see http://ubuntuforums.org/showthread.php?t=171163 | ||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年10月19日 (日) 14:50的最新版本
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
PCTel Modems
In order to use PcTEL Micromodem 56 (HSP56 MicroModem Pctel, or any other modem supported by driver) you will have to switch to kernel 2.6.8.1 or lower. Even so, some units will NOT work with 2.6 kernel (consult README file in driver archive), but all of them work with 2.4 kernels. To make the short story long, going online on Ubuntu 5.10 aka. Breezy Badger you have to do four things: (before u do all this, read this section until the end) I. get some utilities (gcc & initrd among else)
II. get vanilla kernel on www.kernel.org (I suggest) 2.6.8.1 III. Recompile the kernel IV.Install the driver and configure ppp Here are the details: (I will assume your kernel source is in /usr/src
Open terminal and use root privilegessudo apt-get install gcc-3.4 build-essential libncurses5-dev kernel-package gnome-ppp #this step ensures you will have easier time later on sudo ln -sf /usr/bin/gcc-3.4 /usr/bin/gcc # this will make your system use gcc 3.4 instead of 4.0.2 This is necessary because you will not be able to compile kernel with gcc-4 series
Go to your downloaded kernel folder
sudo tar -xvfj kernel-2.6.8.1.tar.gz cd kernel-2.6.8.1 sudo make mrproper sudo make xconfig #if xconfig doesn't work use menuconfig or gconfig insteadConfigure your kernel if you know what you are doing, but you don't since you are reading this so don't do anything you are not 100% sure about.
File-> Load go to /boot and select config-2.6.12-9-386 or current config file (check with uname -r in a separate terminal) sudo make-kpkg clean sudo make-kpkg --initrd --revision=custom.1.0 kernel_image After couple of hours, or less depending on you CPU.... cd /root sudo dpkg -i kernel-image-2.6.8.1_custom.1.0_i386.deb
If something goes wrong you will have to delete folder in /usr/src
with your new kernel's name, NOT your default kernel.
If something goes wrong, go to where your kernel source is and run sudo make clean
and repeat everything above. If you are using GRUB that's it. No more. If you are using LILO, google a bit and you'll find how to configure it.
Only one note here: you will not see standard Ubuntu splash on boot process; screen will be black, but the boot will go as normal. If you want to see what is happening go to /boot/grub and open menu.lst and under line that goes boot /boot/vmlinus something...something quiet splash
delete splash
. Or, if you will you can go on-line and find a better way to do this. There are enough resources.
Second, if you are messing with configuration of the kernel, DO NOT change things you are not sure about. Sure, feel free to select only your graphic/music card or such things, but if you are not sure if you need something don't remove that. Remember, these are the settings that work.
- Actually, if this compiled kernel doesn't work, you will have to add some changes... and here they are: (you can do this in the first attempt)
CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_SIZE=16384 CONFIG_BLK_DEV_INITRD=yThese settings may be changed in Block Devices in kernel configuration or you can open file /boot/config-2.6.8.1 and look for these lines (if they don't exist, make them).First thing seems to be nesessary only on older Pcs, but what does old mean is beyond me. I have Pentium II 400 Mhz @ 128 Mb RAM and it takes three hours to compile kernel if no changes are made to config file. Final size is cca. 12 Mb, however fully customized kernel is around 2 MB and it takes 30 minutes to compile. You can speed up the process by killing gdm and all the stuf you dont need. Here is how to: f1+ctrl+alt and then use sudo
sudo /etc/init.d/gdm stop
now continue with make menuconfig
...
See http://www.falkotimme.com/howtos/debian_kernel2.6_compile/ for more help on this (kernel compilation) step.
sudo ./setup Or in the ~/src folder sudo ./configure sudo make sudo make install
from within the untarred modem driver directory. In order to use second method you will have to copy your kernel source to /usr/src. Do this Only AFTER you have successfuly compiled the kernel, and DO NOT compile it from /usr/src. Final step: once you have sucessfuly compiled the kernel and the drivers you will whish to be able to load the drivers every time you boot the machine. Here is how you do it: go to /etc and look for file called modules. Open it and add following lines:
linmodem pctel pctel_hw
You can also load them by
sudo modprobe linmodem sudo modprobe pctel sudo modprobe pctel_hw
In the end, you will have two kernels you can chose among, if something goes wrong. Rememember that what you do by using one kernel will not be undone when you use the other one.
Notes
Original forum post here: http://ubuntuforums.org/showpost.php?p=928212&postcount=10 The OP couldn't edit the wiki, I thank him for his time and effort for contributing. Also see http://ubuntuforums.org/showthread.php?t=171163