From 270b3e1907ed32353cf0829e2c4593a2e19346df Mon Sep 17 00:00:00 2001 From: gferg <> Date: Wed, 4 Dec 2002 15:24:52 +0000 Subject: [PATCH] updated --- LDP/howto/docbook/HOWTO-INDEX/hwSect.sgml | 2 +- LDP/howto/docbook/HOWTO-INDEX/miniChap.sgml | 2 +- .../docbook/PCTel-MicroModem-Config.sgml | 105 +++++++++++++----- 3 files changed, 80 insertions(+), 29 deletions(-) diff --git a/LDP/howto/docbook/HOWTO-INDEX/hwSect.sgml b/LDP/howto/docbook/HOWTO-INDEX/hwSect.sgml index 1758184e..bf95cdad 100644 --- a/LDP/howto/docbook/HOWTO-INDEX/hwSect.sgml +++ b/LDP/howto/docbook/HOWTO-INDEX/hwSect.sgml @@ -1035,7 +1035,7 @@ PCTel-MicroModem-Config, PCTel HSP MicroModem Configuration mini-HOWTO -Updated: November 2002. +Updated: December 2002. Make your PCTel HSP MicroModem work in Linux. diff --git a/LDP/howto/docbook/HOWTO-INDEX/miniChap.sgml b/LDP/howto/docbook/HOWTO-INDEX/miniChap.sgml index 03ebdc92..ebc9818a 100644 --- a/LDP/howto/docbook/HOWTO-INDEX/miniChap.sgml +++ b/LDP/howto/docbook/HOWTO-INDEX/miniChap.sgml @@ -1216,7 +1216,7 @@ PCTel-MicroModem-Config, PCTel HSP MicroModem Configuration mini-HOWTO -Updated: November 2002. +Updated: December 2002. Make your PCTel HSP MicroModem work in Linux. diff --git a/LDP/howto/docbook/PCTel-MicroModem-Config.sgml b/LDP/howto/docbook/PCTel-MicroModem-Config.sgml index 87e73b78..95537b5f 100644 --- a/LDP/howto/docbook/PCTel-MicroModem-Config.sgml +++ b/LDP/howto/docbook/PCTel-MicroModem-Config.sgml @@ -19,9 +19,22 @@ Sayamindu Dasgupta + + 2.5.10 + 2002-12-04 + Added new FAQ entry, and other minor clean ups. + + + + + 2.5.9 + November 11th 2002 + Added new driver info, made corrections and clarifications in the GCC 3 FAQ . + + 2.5.8 - 2002-11-10 + November 10th 2002 Added information on GCC 3, fixed typos, and other minor corrections. @@ -89,7 +102,7 @@ your PCTel HSP MicroModem work in GNU/Linux. Copyright Information
- Copyright (c) 2002 Sayamindu Dasgupta, Jan Stifter. + Copyright © 2002-2003 Sayamindu Dasgupta, Jan Stifter. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; @@ -188,8 +201,8 @@ your PCTel HSP MicroModem work in GNU/Linux. I am extremely grateful to the howtos[NO_SPAM]@frodo.hserus.net list members for their support, especially to USM Bish. The members of the discuss@linmodems.org list have been very helpful too, specially in the initial phase of the howto-writing. -I am also extremely grateful to Phil Richard Burchill, Rajesh Fowkar, KV Pham, Bram Vonk, Derek Cordeiro and Andrew Kar (akar) -for their valuable suggestions. +I am also extremely grateful to Phil Richard Burchill, Rajesh Fowkar, KV Pham, Bram Vonk, Derek Cordeiro, Steven Sangster and +Andrew Kar (akar) for their valuable suggestions and corrections. The sgml-stuff has been done with the help of the template written by Stein Gjoen, Gregory Leblanc and Greg Ferguson. @@ -378,12 +391,12 @@ the pctel 2.2x d If you see something like 2.4x, go to http://linmodems.technion.ac.il/pctel-linux/ -and download the pctel 0.9.4 (pctel-0.9.4.tar.gz) drivers from that site. +and download the pctel 0.9.6 (pctel-0.9.6.tar.gz) drivers from that site. -Also note that only the pctel 0.9.4 drivers have support for the new AMR modems. +Also note that only the pctel 0.9.6 drivers have support for the new AMR modems. @@ -408,7 +421,8 @@ which supports loadable modules. And of course, you need to have gcc installed, check it by issuing the command bash$ gcc -v . If you do not get any errors, then everything is all right -If you have gcc version 3 or above please refer to this section in the FAQ. +If you have gcc version 3 or above , and have problems during compiling, please refer to +this section in the FAQ. Installing the 2.2x drivers. @@ -447,14 +461,14 @@ the script, but once you reboot, you will have to load the modules bybash$ insmod ptserial.o ) -Installing the pctel-0.9.4 driver +Installing the pctel-0.9.6 driver Make sure that you have kernel 2.4.0 or greater by the command bash$ uname -r Unpack the downloaded files with the commands -bash$ tar -xzvf pctel-0.9.4.tar.gz -Now you will have a pctel-0.9.4 directory +bash$ tar -xzvf pctel-0.9.6.tar.gz +Now you will have a pctel-0.9.6 directory cd into that with the command -bash$ cd pctel-0.9.4/ +bash$ cd pctel-0.9.6/ Now comes the complicated part. To proceed further you will have to know what chip set your modem has.See section 9.4 for more information on this. Once you have got the name of the chip set, just type one of the following commands (depending on the chip set) @@ -473,10 +487,10 @@ If you have a CM8738 chip set, ./configure -with-hal=cm8738 -If you have a chip set integrated with an 810 chip set based box, +If you have a chip set integrated with an i8** chip set based box, bash$ -./configure --with-hal=i81x +./configure --with-hal=i8xx If you have a chip set integrated with an VIA 686a chip set based motherboard , @@ -525,14 +539,14 @@ NOTE: If you get a message that says configure: error: You must However, if you have an AMR modem, then you will have to -use the 0.9.4 drivers. +use the 0.9.6 drivers. Installing the pctel-0.8.6 driver -Use this driver only if you experience problems with the pctel-0.9.4 drivers +Use this driver only if you experience problems with the pctel-0.9.6 drivers Make sure that you have kernel 2.4.0 or greater by the command @@ -604,7 +618,7 @@ Then just load the drivers with the commands bash$ insmod ptserial -(these too, like in the case of the pctel-0.9.4 drivers, can be issued from any directory as the insmod program will automatically find +(these too, like in the case of the pctel-0.9.6 drivers, can be issued from any directory as the insmod program will automatically find the drivers pctel.o and ptserial.o in /lib/modules/`your kernel version`/misc/ ) @@ -1054,7 +1068,7 @@ rmmod pctel -Bugs in the pctel-0.9.4 and the 0.8.6 versions. +Bugs in the pctel-0.9.6 and the 0.8.6 versions. @@ -1086,7 +1100,7 @@ insmod ptserial -NOTE:You must exit from your dialer before trying to unload the drivers, otherwise you will get a device or resource busy error. +You must exit from your dialer before trying to unload the drivers, otherwise you will get a device or resource busy error. @@ -1111,7 +1125,7 @@ ln -s /usr/src/myspecialdirectory/ /usr/src/linux/ -NOTE: In case of the PCTel-0.8.6 or newer drivers you can also specify the location of your kernel source by using the option +In case of the PCTel-0.8.6 or newer drivers you can also specify the location of your kernel source by using the option bash$ @@ -1149,7 +1163,7 @@ AMR modems There are certain PCTel chip set based internal modems that go into AMR slots instead of the normal PCI slots. They are usually identified as HSP MR by the bash$ lspci command. These modems -are supported by the pctel-0.9.4 drivers only. +are supported by the pctel-0.9.6 drivers only. @@ -1197,7 +1211,7 @@ cat configure.patch | patch -p0 -I am supposing that you are in the pctel-0.9.4 directory, and the configure.patch is also in that directory +I am supposing that you are in the pctel-0.9.6 directory, and the configure.patch is also in that directory @@ -1253,7 +1267,9 @@ make[3]: *** [ptserial.o] Error 1 -To solve this, you will have to edit the file ~/pctel-0.9.4/src/ptserial/Makefile. +This should not happen anymore since the pctel-0.9.6 driver was released to address this issue. However, if you +still face such a problem, (with an older driver or something like that), you will have to edit the file +<your pctel directory>src/ptserial/Makefile. In that file, find out the line which says @@ -1266,12 +1282,18 @@ and change that to -CFLAGS = -D__KERNEL__ -Wno-trigraphs -fno-common -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe\ -fno-strength-reduce -DMODULE -DMODVERSIONS -DEXPORT_SYMTAB -D$(HAL_TARGET) $(AUDIO_ROUTING) -DBUILD_SYSTEM=\""$(BUILD_SYSTEM)\\"" -DGCC_VERSION=\""$(GCC_VERSION)\"" -I$(top_srcdir)/include -I$(KERNEL_INCLUDES) -include $(KERNEL_INCLUDES)/linux/modversionns.h +CFLAGS = -D__KERNEL__ -Wno-trigraphs -fno-common -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DMODULE -DMODVERSIONS -DEXPORT_SYMTAB -D$(HAL_TARGET) $(AUDIO_ROUTING) -DBUILD_SYSTEM=\""$(BUILD_SYSTEM)\"" -DGCC_VERSION=\""$(GCC_VERSION)\"" -I$(top_srcdir)/include -I$(KERNEL_INCLUDES) -include $(KERNEL_INCLUDES)/linux/modversions.h ....and then recompile. + + +If you cannot find the file src/ptserial/Makefile, then run the configure + script, and try again. + + Alternatively, you may also try out the pre-compiled (distro specific) drivers at http://www.geocities.com/jcmp3/. Just note that I have not personally @@ -1442,6 +1464,29 @@ you are using an unsupported module. + + + +I get a The module you are trying to load (/lib/modules/2.4.18-14/misc/pctel.o) is compiled with a gcc +version 2 compiler, while the kernel you are running is compiled with a gcc version 3 compiler. This is known to not work. + message while loading the modules. + + + + +Try to load the modules with the commands with insmod -f pctel and insmod -f ptserial +instead of the plain insmod pctel and insmod ptserial. + + + + +Just remember that this is not a very nice hack. + + + + + + @@ -1582,10 +1627,11 @@ tail /var/log/messages will give you a lot of information if anything goes wrong The normal output should be something like this -Sep 20 18:48:46 peacefulaction kernel: PCTel device[00:09.0](0x48) found "PCTel Inc HSP MicroModem 56 (rev 01)", iobase=0xe400, irq=12. -Sep 20 18:48:46 peacefulaction kernel: PCTel driver version 0.9.4 [5.05c-4.27.215 (09-14-2001)] (PCT789) (2002-01-31) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled. -Sep 20 18:48:46 peacefulaction kernel: PCTel driver built on [Linux 2.4.19 i686 unknown "2.4.19 <132115>"] with gcc-2.96. -Sep 20 18:48:46 peacefulaction kernel: ttyS15 at 0xe400 (irq = 12) is a PCTel +Nov 11 10:50:24 localhost kernel: PCTel device[00:09.0](0x48) found "PCTel Inc HSP MicroModem 56 (rev 01)", iobase=0xe400, irq=12. +Nov 11 10:50:24 localhost kernel: PCTel driver version 0.9.5 [5.05c-4.27.215 (09-14-2001)] (PCT789) (2002-01-31) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled. +Nov 11 10:50:24 localhost kernel: PCTel driver built on [Linux 2.4.18-14 i686 i686 "2.4.18-14 <132114>"] with gcc-gcc (GCC) 3.2 +20020903 (Red Hat Linux 8.0 3.2-7). +Nov 11 10:50:24 localhost kernel: ttyS15 at 0xe400 (irq = 12) is a PCTel Mail the output you get to the discuss@linmodems.org list( more on this in section 9.2.2), and wait for a reply. @@ -1660,6 +1706,11 @@ I have seen a number of modem manufacturers (Dax, Zoltrix, Lectron, Tiacom etc) Actually most (if not all) of these drivers are slightly modified form of the drivers at Jan's and the modems.dewback.cl site, and so, in most cases, there is no point in downloading them. +However, you may try out the pre-compiled (distro specific) drivers at +http://www.geocities.com/jcmp3/. Just note that I have not personally +tested out these drivers, and I don't know much about them. + + Moreover, in the early days of 2.4x kernels, Thomas Wright had made a PCTel driver and you can find it in his website at http://www.geocities.com/tom_in_rc/.