Whole document tree
    

Whole document tree

A few other points that must be noted.

7. A few other points that must be noted.

Here are a few more points you might find to be of interest/useful.

7.1. Loading the modules at automatically

Well, if you have the pctel.o and ptserial.o files in /lib/modules/`your kernel version`/misc/ , you can just add these lines to your /etc/modules.conf file

  
# for pctel modem

  
alias char-major-62 ptserial

  
below ptserial pctel

  
# country code for pctel modem
  
options ptserial country_code=1

Run

bash$ depmod -a

after modifying your /etc/modules.conf .

In this case, running ppp would automatically load these modules. You can also write up some shell-script and put them in your /usr/bin/ directory (I have a sample of such a script in the appendix section)

7.2. Country codes

The ptserial.o driver also lets you specify the country code, though for most situations, the default of USA is all right. If you still want to specify the country code, load the ptserial.o module with the command

bash$ insmod ptserial country_code=x

(where x is the country code you want) The list of country codes with the corresponding country names is listed below.

country_code  country name

1            USA

2            FRANCE

3            GERMANY

4            ITALY

5            SWEDEN

6            UK

7            JAPAN

8            AUSTRALIA

9            SPAIN

10           TAIWAN

11           SINGAPORE

12           KOREA

13           SWITZERLAND

14           NORWAY

15           NETHERLANDS

16           BELGIUM

17           CANADA

18           IRELAND

19           PORTUGAL

20           POLAND

21           HUNGARY

22           FINLAND

23           DENMARK

24           AUSTRIA

25           S.AFRICA

26           CTR21 COUNTRIES

27           CHINA

28           MALAYSIA

29           LUXUMBURG

30           GREECE

31           ICELAND

32           NEW ZEALAND

33           BRAZIL

7.3. Other options while loading the modules.

The other options that you may want to use while loading ptserial.o are:

For all HALs :

- irq: Force to using irq #.

- iobase: Force to use iobase for modem detection.

Only for I810/VAI686A HALs:

- iobase1: Force the iobase 1

  NOTE: if you want to set iobase or iobase1, you should use

         irq/iobase/iobase1 at same time.

Only for CM8738/PCT789 HALs:

- vendor_id: vendor ID of the modem

- device_id: device ID of the modem.

  NOTE: vendor_id and device_id should be used at the same time,

 but you cannot combinate this two options with

        iobase, iobase prevail to (vendor/device)_id detection.

  

7.4. The sequence of loading/unloading the modules.

When you load the modules, you must load the pctel.o module at first

bash$ insmod pctel

and then the ptserial.o

bash$ insmod ptserial

While unloading, the sequence is reversed,

bash$ rmmod ptserial

bash$ rmmod pctel

7.5. Bugs in the 2.4x versions.

> There is a serious bug in the drivers for the kernel 2.4x The modem often seems to stop working/hang while dialing out, and you get nothing but a beeeeeeeeee... sound from the modem speaker and later, the dialer gives a message No Carrier and disconnects.

This problem has no real workaround , but sometimes unloading and reloading of the modules work.For that the commands will be (assuming that you have the modules in /lib/modules/'your kernel version`/misc/ )

bash$ rmmod ptserial

bash$ rmmod pctel

bash$ insmod pctel

bash$ 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.

When the problems become too acute, the only solution seems to be rebooting.

7.6. Directory of the kernel source files

> If you get an error saying /usr/src/linux/include/linux/modversions.h : no such file or directory, look in your /usr/src directory for the kernel source. The default location is /usr/src/linux/ but some distributions may install the files somewhere else.

If you find that the files are somewhere else, say in the directory, /usr/src/myspecialsource/ , do not try to move the files, just create a symbolic link with the command

bash$ ln -s /usr/src/myspecialdirectory/ /usr/src/linux/

NOTE: In case of the PCTel-0.8.6 drivers you can also specify the location of your kernel source by using the option

bash$ --with-kernel-includes=your kernel source directory

during running the configure script.

7.7. PnP BIOS issues

As most computers are designed for M$-Windows operating systems, the BIOS of the computer assumes that you have a what it calls a "PnP OS installed". This may cause trouble with these types of modems in linux (specially if you have resource conflicts) and so the best bet is to change the option "PnP OS installed" to "No". To do these, you have to perform the following steps:

During startup, when you see "Memory Test" messages, CPU information, BIOS information, just press the DEL key (if that does not work, usually one of the Function (Fx) keys work..check your manual).

You will be presented with the BIOS configuration menu. Enter the "PNP/PCI Configuration" section and set the option for "PNP OS Installed" to "NO". Save the changes you have made, and then reboot.

NOTE: This is not applicable to all BIOSs, and you are advised to consult your PC documentation if you have a different kind of BIOS configuration menu.

7.8. AMR modems

There are certain PCTel chip set based internal modems that go into AMR slots instead of the normal PCI slots. Linux support for these types of modems is not very well developed, though the upcoming drivers may support them. They are usually identified as HSP MR by the bash$ lspci command.