/
PCTel-MicroModem-Config.sgml
2194 lines (2017 loc) · 72.5 KB
/
PCTel-MicroModem-Config.sgml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.1//EN" []>
<article id="index">
<!-- Header -->
<articleinfo>
<title>PCTel HSP MicroModem Configuration mini-HOWTO</title>
<author>
<firstname>
Sayamindu</firstname> <surname>Dasgupta</surname> <affiliation>
<address> <email>unmadindu_NO_SPAM_@Softhome.net</email> </address>
</affiliation> </author>
<author> <firstname>Jan</firstname> <surname>Stifter</surname>
<affiliation>
<address> <email>j.stifter_NO_SPAM_@medres.ch</email> </address>
</affiliation> </author>
<revhistory>
<revision>
<revnumber> 2.5.10 </revnumber>
<date>2002-12-04</date>
<revremark> Added new FAQ entry, and other minor clean ups.</revremark>
</revision>
<revision>
<revnumber> 2.5.9 </revnumber>
<date> November 11th 2002 </date>
<revremark> Added new driver info, made corrections and clarifications in the GCC 3 FAQ .</revremark>
</revision>
<revision>
<revnumber> 2.5.8 </revnumber>
<date> November 10th 2002 </date>
<revremark> Added information on GCC 3, fixed typos, and other minor corrections. </revremark>
</revision>
<revision>
<revnumber> 2.5.6 </revnumber>
<date> September 21st 2002 </date>
<revremark> Changes in the FAQ section based on reader suggestions, and general error cleanups. </revremark>
</revision>
<revision>
<revnumber> 2.5.5 </revnumber>
<date> August 17th 2002 </date>
<revremark> Made changes in driver section, and other additions </revremark>
</revision>
<revision>
<revnumber> 2.5.1 </revnumber>
<date> July 20th 2002 </date>
<revremark> Made changes in driver section, and misc. additions </revremark>
</revision>
<revision>
<revnumber> 2.50 </revnumber>
<date> June 6th 2002</date>
<revremark> Made changes in the drivers and FAQ section, added the database info, other corrections </revremark>
</revision>
<revision>
<revnumber> 2.00 </revnumber>
<date> March 30th 2002</date>
<revremark> Made changes in the drivers section, other corrections </revremark>
</revision>
<revision>
<revnumber>1.10</revnumber>
<date>December 4th 2001</date>
<revremark>Cleaning up of sgml by Greg Ferguson, Relicensed under the GFDL, minor corrections</revremark>
</revision>
<revision>
<revnumber>1.00</revnumber>
<date>November 26th 2001</date>
<revremark>First Release</revremark>
</revision>
</revhistory>
<abstract>
<para>The purpose of this document is to guide you to make
your PCTel HSP MicroModem work in GNU/Linux.</para>
</abstract>
</articleinfo>
<!-- Section1: intro -->
<sect1 id="intro">
<title>Introduction</title>
<!-- Section2: copyright -->
<sect2 id="copyright">
<title>Copyright Information</title>
<blockquote><para>
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;
with no Invariant Sections , with no Front-Cover Texts , and with no Back-Cover Texts .
A copy of the license is included in the section entitled "GNU
Free Documentation License".
</para></blockquote>
</sect2>
<!-- Section2: disclaimer -->
<sect2 id="disclaimer">
<title>Disclaimer</title>
<para>The methods described in this document might damage your data or your PC or both.
The authors will not be responsible for any damage that might arise out of the use of this document.
Use this document <emphasis>ENTIRELY at your own risk. </emphasis></para>
<para>
All copyrights are held by their respective owners, unless
specifically noted otherwise. Use of a term in this document
should not be regarded as affecting the validity of any trademark
or service mark.
</para>
<para>
Naming of particular products or brands should not be seen
as endorsements.
</para>
<para>
You are strongly recommended to take a backup of your system
before major installation and backups at regular intervals.
</para>
</sect2>
<!-- Section2: newversions-->
<sect2 id="newversions">
<title>New Versions</title>
<para>
The latest version of this mini-HOWTO will always be made available in my
<ulink url="http://www.peacefulaction.org/sayamindu">homepage </ulink>(many thanks to
<ulink url="http://www.peacefulaction.org"> Peaceful Action </ulink> for hosting my homepage) in a variety of formats:
</para>
<para>
<itemizedlist>
<listitem>
<para>
<ulink url="http://www.peacefulaction.org/sayamindu/pctel.html">HTML</ulink>.
</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.peacefulaction.org/sayamindu/pctel.txt">plain text</ulink>.
</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.peacefulaction.org/sayamindu/pctel.pdf">PDF</ulink>.
</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.peacefulaction.org/sayamindu/pctel.rtf">RTF</ulink>.
</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.peacefulaction.org/sayamindu/pctel.tar.gz">compressed
html (multiple pages format)</ulink>.
</para>
</listitem>
<listitem>
<para>
<ulink url="http://www.peacefulaction.org/sayamindu/pctel.sgml">SGML source</ulink>.
</para>
</listitem>
</itemizedlist>
</para>
</sect2>
<!-- Section2: credits -->
<sect2 id="credits">
<title>Credits</title>
<para> I am extremely grateful to the howtos[NO_SPAM]@frodo.hserus.net list members for their support, especially to <ulink url="http://geocities.com/usmbish/">USM Bish</ulink>.
</para><para>
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, Steven Sangster and
Andrew Kar (akar) for their valuable suggestions and corrections.
</para>
<para>
The sgml-stuff has been done with the help of the template written by Stein Gjoen, Gregory Leblanc and Greg Ferguson.
I am also indebted to Greg Ferguson for cleaning up the mess I had made with Docbook :-).
</para>
</sect2>
<!-- Section2: feedback -->
<sect2 id="feedback">
<title>Feedback</title>
<para>
If you have any comments, criticisms, ideas, additions, corrections, then please do mail them to
<email>unmadindu_NO_SPAM_@Softhome.net</email>. But for technical queries, we suggest that you ask at the
discuss@linmodems.org mailing list.</para>
<caution>
<para>
Please do not mail me with your problems. You will <emphasis>NOT</emphasis> get any answer. For answers ask at
discuss@linmodems.org.
</para>
</caution>
</sect2>
<sect2 id="translations">
<title>Translations</title>
<para>
<itemizedlist>
<listitem>
<para>
<ulink url="www.domsilverio.com.br/phptest/pctel/">Portuguese Translation</ulink>
by <othercredit role='translator'>
<firstname>Rafael</firstname>
<surname>Cardoso</surname>
<contrib>Translation from English to Portuguese.</contrib>
</othercredit>
<email>rafamvc_NO_SPAM_@yahoo.com.br</email>
</para>
</listitem>
</itemizedlist>
</para>
</sect2>
<sect2 id="conventions">
<title>Conventions used in this document</title>
<para>We have used a number of special formatting to indicate warning messages, commands, filenames, computer outputs etc.</para>
<para>
<variablelist>
<varlistentry>
<term>Bash commands</term>
<listitem>
<para><command> bash$ ls </command></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Notes</term>
<listitem>
<para><note><para>NOTE</para></note></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Cautions</term>
<listitem>
<para><caution><para>CAUTION</para></caution></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Info</term>
<listitem>
<para><tip><para>INFO</para></tip></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Warnings</term>
<listitem>
<para><warning><para>WARNING</para></warning></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Filename/Directory </term>
<listitem>
<para><filename>/usr/src/linux/</filename></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Applications</term>
<listitem>
<para><application>application</application></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Computer Output</term>
<listitem>
<para><computeroutput>no such file or directory</computeroutput></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Codes/scripts</term>
<listitem>
<para><programlisting>#! /bin/bash</programlisting></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Large Computer Outputs</term>
<listitem>
<para><screen>logfile begins</screen></para>
</listitem>
</varlistentry>
</variablelist>
</para>
</sect2>
</sect1>
<sect1 id="purpose">
<title>Purpose of the mini-HOWTO</title>
<para>The purpose of this document is to guide you to make your PCTel HSP MicroModem work in GNU/Linux.</para>
<para>First let me explain what is so "special" about these PCTel modems that made me write this guide.
These modems fall in a special class of hardware, specifically made for M$-Windows systems, and have device
drivers which are specific for M$-Windows ...These modems are also called "Winmodems" and are
one of the most troublesome pieces of hardwares for GNU/Linux. Most of the winmodems do not work
with GNU/Linux (the manufacturers use patented technologies and so drivers for these modems cannot be
developed as Open Source). For a few of these winmodems, drivers have been developed </para><para>The PCTel
modems belong to this category and fall under linmodems. </para>
<para>
<note>
<para>
<emphasis>
Please do note that PCTel provides proprietary drivers, and in the free world of GNU/Linux, proprietary drivers
are not the solution. These drivers can turn out to be a great threat as the Free Software Movement evolves and
matures. So, at the very beginning, please consider whether you want to surrender your "freedom" to PCTel, or
whether you want to go out and buy a new modem which has a GPL'ed driver. I understand, that for many, buying
a new modem is not possible, and hence, this doc exists. But whatever you do, please do send a mail to
Mr. Jack Seller of PCTel's Public Relation department at <ulink url='mailto: jack_seller@pctel.com'> this </ulink>
address asking PCTel to release the source code of their drivers.
</emphasis>
</para>
<para>
Remember that when you are using proprietary drivers, you are giving up your freedom.
</para>
</note>
</para>
<para>
<note>
<para>
Though I am referring PCTel modems here, actually PCTel only manufactures the chips for these modems, so if you
have say, XXX modem and you get a </para><para><computeroutput>00:09.0 Communication controller: PCTel Inc HSP MicroModem
56 (rev 01)</computeroutput></para><para> when you issue the <command>bash$ lspci</command> command, then do not
worry, you have what we call a PCTel linmodem.</para>
</note>
</para>
</sect1>
<!-- Section1: Where to get the drivers -->
<sect1 id="downloaddrivers">
<title>Where to get the drivers</title>
<para>Now let me come to the next obvious question, that is; Where are the drivers??</para>
<para>Well, if you are impatient, and if you have a 2.4x series kernel then go to </para>
<para><ulink url="http://linmodems.technion.ac.il/pctel-linux/">http://linmodems.technion.ac.il/pctel-linux/</ulink>, and if you
are stuck with the older 2.2.x kernels, go to <ulink url="http://modems.dewback.cl">http://modems.dewback.cl</ulink> (the exact link for
the file it self is <ulink url="http://modems.dewback.cl/pctel-2.2.tar.gz"> http://modems.dewback.cl/pctel-2.2.tar.gz </ulink>)</para>
<para>But there are a number of drivers in both the sites, and you will definitely feel confused..so read on.</para>
</sect1>
<!-- Section1: right drivers -->
<sect1 id="rightdrivers">
<title>Choosing a suitable driver</title>
<para> The driver version that you will have to use depends on the kernel version you have. To know your kernel version, you will
have to issue the command </para>
<para>
<command>
uname -r
</command>
</para>
<para>
If you see something like 2.2.x, go to <ulink url="http://modems.dewback.cl">http://modems.dewback.cl</ulink> and download
the <ulink url="http://modems.dewback.cl/pctel-2.2.tar.gz">pctel 2.2x </ulink> drivers from the PCTel section of that site.
</para>
<para>
If you see something like 2.4x, go to <ulink url="http://linmodems.technion.ac.il/pctel-linux/">http://linmodems.technion.ac.il/pctel-linux/</ulink>
and download the pctel 0.9.6 (pctel-0.9.6.tar.gz) drivers from that site.
</para>
<para>
<important>
<para>
Also note that only the pctel 0.9.6 drivers have support for the new <link linkend='amr'>AMR</link> modems.
</para>
</important>
</para>
</sect1>
<!-- Section1: installation -->
<sect1 id="installation">
<title>Compiling and installing the drivers</title>
<para>The first requisite for installation is that you have a kernel source in <filename>/usr/src/linux/</filename> (see section <link linkend='kernelsrc'>7.7</link>) and it must be
configured, that is, you should have done a <command>bash$ make configure</command> and <command>bash$ make dep</command> on it.</para>
<para>While doing these make sure that you have the source for your running kernel...for example, if
you are running kernel 2.4.8 and if you have the source for kernel 2.4.9 in <filename>/usr/src/linux/</filename>,
then the drivers would not work.</para>
<para>Moreover, you must configure the kernel with isapnp and pnp support and see to the fact that you
don't have a smp/uniprocessor mismatch ( that is, running uniprocessor kernel but having a kernel
source with smp support in /usr/src/linux). Also, you will need a kernel
which supports loadable modules.</para>
<para>
And of course, you need to have gcc installed, check it by issuing the command <command>bash$ gcc -v </command>. If you do not get any errors, then everything is all right </para>
<note>
<para>
If you have gcc version 3 or above , and have problems during compiling, please refer to
<link linkend="gcc3">this section</link> in the FAQ.
</para>
</note>
<sect2><title>Installing the 2.2x drivers.</title>
<para>Login as root.</para>
<para>Make sure that you have a 2.2.x kernel with the command <command>bash$ uname -r</command></para>
<para>Check whether the downloaded files are in your current directory with the </para>
<para><command>bash$ ls</command></para>
<para>command.
Then unpack the downloaded files with the command </para>
<para><command>bash$ tar -xzvf pctel-2.2.tar.gz</command></para>
<para>Once you have unpacked, you will be left with a <filename>~/pctel</filename> directory.</para>
<para>Move into that directory with the command</para>
<para><command>bash$ cd pctel/</command></para>
<para>There is an (<filename>install.sh</filename>) installation script that makes the job easier from now on.</para>
<para>Make this script executable with the command </para>
<para><command>bash$ chmod +x install.sh</command></para>
<para>Then, just run the script</para>
<para><command>bash$ ./install.sh</command></para>
<para>You will see a number of messages fly by as the appropriate device files/nodes are made in the /dev/
directory, the driver files are unpacked and then compiled and loaded into the memory.</para>
<para>Once the process is complete without any error messages (if you get any errors, proceed to the
<link linkend='trouble'>Troubleshooting</link> section), you will find that a new directory called <filename>lib/</filename> has been created under directory <filename>~/pctel/</filename>.
This <filename>~/pctel/lib/</filename> directory contains the drivers/modules that can be loaded into the kernel.</para>
<para>If you move into the <filename>~/pctel/lib/</filename> directory with </para>
<para><command>bash$ cd ~/pctel/lib/</command></para>
<para>and do a <command>bash$ ls</command>, you will find two files there, one called <application>pctel.o</application> and the other <application>ptserial.o</application></para>
<para>These are the two modules that are to be loaded to make the modem work.</para>
<para>To load the modules, you will have to issue the commands </para>
<para><command>bash$ insmod pctel.o</command></para>
<para><command>bash$ insmod ptserial.o</command></para>
<para>from the <filename>~/pctel/lib/</filename> directory.</para>
<para>(The install.sh script automatically does this, so you don't need to do the insmod part after running
the script, but once you reboot, you will have to load the modules by</para><para>
<command>bash$ cd</command> `your pctel directory`/lib/</para>
<para><command>bash$ insmod pctel.o</command></para>
<para><command>bash$ insmod ptserial.o </command>)</para>
</sect2>
<sect2>
<title>Installing the pctel-0.9.6 driver</title>
<para>Make sure that you have kernel 2.4.0 or greater by the command</para>
<para><command>bash$ uname -r</command></para>
<para>Unpack the downloaded files with the commands</para>
<para><command>bash$ tar -xzvf pctel-0.9.6.tar.gz</command></para>
<para>Now you will have a pctel-0.9.6 directory</para>
<para>cd into that with the command</para>
<para><command>bash$ cd pctel-0.9.6/</command></para>
<para>Now comes the complicated part.</para>
<para>To proceed further you will have to know what chip set your modem has.See section <link linkend="identify"> 9.4 </link>for more information on this.</para>
<para>Once you have got the name of the chip set, just type one of the following commands (depending on the chip set)
</para>
<para>
If you have a PCT 789 chip set,
</para>
<para>
<command>bash$
./configure --with-hal=pct789</command>
</para>
<para>
If you have a CM8738 chip set,
</para>
<para><command>bash$
./configure -with-hal=cm8738</command>
</para>
<para>
If you have a chip set integrated with an i8** chip set based box,
</para>
<para> <command>bash$
./configure --with-hal=i8xx </command>
</para>
<para>
If you have a chip set integrated with an VIA 686a chip set based motherboard ,
</para>
<para><command>bash$
./configure --with-hal=via686a </command>
</para>
<para>
The configure script will run and a number of messages will fly past.
Check for any error messages that may fly past.
When you have the prompt again, (and if you have not got any errors),
compile the drivers with the command
</para>
<para>
<command>bash$ make
</command>
</para>
<para>
Then if you do not get any error messages , install the drivers with the command
</para>
<para>
<command>bash$ make install</command>
</para><para>
(You will have to be logged in as root for performing the last step)
</para><para>
Then just load the drivers with the commands
</para>
<para>
<command>bash$ insmod pctel</command>
</para>
<para>
<command>bash$ insmod ptserial</command>
</para>
<para>
NOTE: These commands can be issued from any directory as the <application>insmod</application> program will automatically find
the drivers <application>pctel.o</application> and <application>ptserial.o</application> in
<filename>/lib/modules/`your kernel version`/misc/ </filename>)
</para>
<para>
<note>
<para>
NOTE: If you get a message that says <computeroutput> configure: error: You must have linux kernel >= 2.4.0 installed</computeroutput>, then please refer to section
<link linkend="patch-configure"> 8.1.1 </link> for ways to solve this.
</para>
</note>
</para>
<para>
However, if you have an <link linkend='amr'>AMR</link> modem, then you will have to
use the 0.9.6 drivers.
</para>
</sect2>
<sect2>
<title>Installing the pctel-0.8.6 driver</title>
<caution>
<para>
Use this driver only if you experience problems with the pctel-0.9.6 drivers
</para>
</caution>
<para>Make sure that you have kernel 2.4.0 or greater by the command</para>
<para><command>bash$ uname -r</command></para>
<para>Unpack the downloaded files with the commands</para>
<para><command>bash$ tar -xzvf 0.8.6.tar</command></para>
<para>Now you will have a pctel-0.8.6 directory</para>
<para>cd into that with the command</para>
<para><command>bash$ cd pctel-0.8.6/</command></para>
<para>Now comes the complicated part.</para>
<para>To proceed further you will have to know what chip set your modem has.See section <link linkend="identify"> 9.4 </link>for more information on this.</para>
<para>Once you have got the name of the chip set, just type one of the following commands (depending on the chip set)
</para>
<para>
If you have a PCT 789 chip set,
</para>
<para>
<command>bash$
./configure --with-hal=pct789</command>
</para>
<para>
If you have a CM8738 chip set,
</para>
<para><command>bash$
./configure -with-hal=cm8738</command>
</para>
<para>
If you have a chip set integrated with an Intel 810 chip set based motherboard from Intel,
</para>
<para> <command>bash$
./configure --with-hal=i810intel </command>
</para>
<para>
If you have a chip set integrated with an Intel 810 chip set based motherboard from SIS,
</para>
<para> <command>bash$
./configure --with-hal=i810sis </command>
</para>
<para>
If you have a chip set integrated with an VIA 686a chip set based motherboard ,
</para>
<para><command>bash$
./configure --with-hal=via686a </command>
</para>
<para>
The configure script will run and a number of messages will fly past.
Check for any error messages that may fly past.
When you have the prompt again, (and if you have not got any errors),
compile the drivers with the command
</para>
<para>
<command>bash$ make
</command>
</para>
<para>
Then if you do not get any error messages, install the drivers with the command
</para>
<para>
<command>bash$ make install</command>
</para><para>
(You will have to be logged in as root for performing the last step)
</para><para>
Then just load the drivers with the commands
</para>
<para>
<command>bash$ insmod pctel</command>
</para>
<para>
<command>bash$ insmod ptserial</command>
</para>
<para>
(these too, like in the case of the pctel-0.9.6 drivers, can be issued from any directory as the <application>insmod</application> program will automatically find
the drivers <application>pctel.o</application> and <application>ptserial.o</application> in <filename>/lib/modules/`your kernel version`/misc/ </filename>)
</para>
</sect2>
</sect1>
<!-- Section1: testing -->
<sect1 id="testing">
<title>Testing the drivers</title>
<para>
There is only one way to check whether the drivers are working or not. You will have to see if your
modem is recognized or not. The driver makes a node for your modem at <filename>/dev/ttyS15 </filename>, no matter
what com port it may be in, in M$DOS/M$ Windows. <filename>/dev/ttyS15 </filename> is symlinked to <filename>/dev/modem </filename> and as
most programs search for a modem at <filename>/dev/modem </filename> first, you will not have to fiddle with the settings/configs of those programs. The
program that I use to test my modem in GNU/Linux is minicom. If you have minicom installed, what you have to do is type
</para>
<para>
<command>bash$
minicom
</command>
</para>
<para>
in a shell prompt or in a terminal emulator window.
If everything is all right, you will see a <emphasis>Initializing modem</emphasis> message for a few seconds and then a
screen with a blinking cursor.
Just type in <command>ATZ</command> in that screen and hit the enter key.
If you see a <emphasis>OK</emphasis> message, then, congratulations, your modem is working in GNU/Linux.
Type in <command>ATI 3</command> and hit enter and you will see a <emphasis>PCtel HSP56 MicroModem</emphasis> output.
If you get a error message, or if you fail to get any response from minicom proceed to the troubleshooting section.
If everything is all right up to now, you can go ahead to configure your dialer software and connect to
the internet, and please do take some time to submit your modem information to the compatibility database at <ulink url="http://pctelcompdb.sourceforge.net">http://pctelcompdb.sourceforge.net</ulink>. Also, you may consider helping out the author.
See <link linkend='helpauthor'> this section </link> for more information.
</para>
</sect1>
<!-- Section1: OT -->
<sect1 id="OT">
<title>A few other points that must be noted.</title>
<para>Here are a few more points you might find to be of interest/useful.</para>
<sect2>
<title>
The unofficial PCTel winmodem-Linux compatibility database.
</title>
<para>
There has been a lot of confusion over the <emphasis>--with-hal</emphasis> option which has to be used with the configure script, and for that, I coded a MySQL-PHP driven database that
takes in information from the modem owners, so that newbies can browse and search the database, and find their modems' chipsets. If you have a PCTel modem, then please do submit your modem information
at <ulink url="http://pctelcompdb.sourceforge.net">http://pctelcompdb.sourceforge.net</ulink>.
</para>
</sect2>
<sect2>
<title>
Loading the modules at automatically
</title>
<para>
Well, if you have the pctel.o and ptserial.o files in <filename>/lib/modules/`your kernel version`/misc/ </filename> , you can just add these lines to your
<filename>/etc/modules.conf </filename> file
</para>
<programlisting>
# for pctel modem
alias char-major-62 ptserial
below ptserial pctel
# country code for pctel modem
options ptserial country_code=1
</programlisting>
<para>
Run
</para>
<para>
<command>bash$
depmod -a
</command>
</para>
<para>
after modifying your <filename>/etc/modules.conf </filename>.
</para>
<para>
In this case, running ppp would automatically load these modules.
You can also write up some shell-script and put them in your <filename>/usr/bin/ </filename> directory (I have a sample of such a script in the appendix
section)
</para>
</sect2>
<sect2>
<title>
Country codes
</title>
<para>
The <application>ptserial.o</application> 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
</para>
<para>
<command>bash$
insmod ptserial country_code=x
</command>
</para>
<para>
(where x is the country code you want)
The list of country codes with the corresponding country names is listed below.
</para>
<para>
<table frame='all'><title>Country Codes</title>
<tgroup cols='2' align='left' colsep='1' rowsep='1'>
<thead>
<row>
<entry> Country Name </entry>
<entry> country_code </entry>
</row>
</thead>
<tbody>
<row>
<entry>
USA
</entry>
<entry>
1
</entry>
</row>
<row>
<entry>
France
</entry>
<entry>
2
</entry>
</row>
<row>
<entry>
Germany
</entry>
<entry>
3
</entry>
</row>
<row>
<entry>
Italy
</entry>
<entry>
4
</entry>
</row>
<row>
<entry>
Sweden
</entry>
<entry>
5
</entry>
</row>
<row>
<entry>
UK
</entry>
<entry>
6
</entry>
</row>
<row>
<entry>
Japan
</entry>
<entry>
7
</entry>
</row>
<row>
<entry>
Australia
</entry>
<entry>
8
</entry>
</row>
<row>
<entry>
Spain
</entry>
<entry>
9
</entry>
</row>
<row>
<entry>
Taiwan
</entry>
<entry>
10
</entry>
</row>
<row>
<entry>
Singapore
</entry>
<entry>
11
</entry>
</row>
<row>
<entry>
Korea
</entry>
<entry>
12
</entry>
</row>
<row>
<entry>
Switzerland
</entry>
<entry>
13
</entry>
</row>
<row>
<entry>
Norway
</entry>
<entry>
14
</entry>
</row>
<row>
<entry>
Netherlands
</entry>
<entry>
15
</entry>
</row>
<row>
<entry>
Belgium
</entry>
<entry>
16
</entry>
</row>
<row>
<entry>
Canada
</entry>
<entry>
17
</entry>
</row>
<row>
<entry>
Ireland
</entry>
<entry>
18
</entry>
</row>
<row>
<entry>
Portugal
</entry>
<entry>
19
</entry>
</row>
<row>
<entry>
Polan
</entry>
<entry>
20
</entry>
</row>
<row>
<entry>
Hungary
</entry>
<entry>
21
</entry>
</row>
<row>
<entry>
Finland
</entry>
<entry>
22
</entry>
</row>
<row>
<entry>
Denmark
</entry>
<entry>
23
</entry>
</row>
<row>
<entry>
Austria
</entry>
<entry>
24
</entry>
</row>
<row>
<entry>
South Africa
</entry>
<entry>
25
</entry>
</row>
<row>
<entry>
CTR21 Countries
</entry>
<entry>
26
</entry>
</row>
<row>
<entry>
China
</entry>
<entry>
27
</entry>
</row>
<row>
<entry>
Malaysia
</entry>
<entry>
28
</entry>
</row>
<row>
<entry>
Luxumburg
</entry>
<entry>
29
</entry>
</row>
<row>
<entry>
Greece
</entry>
<entry>
30
</entry>
</row>
<row>
<entry>
Iceland
</entry>
<entry>
31
</entry>
</row>
<row>
<entry>
New Zealand
</entry>
<entry>
32
</entry>
</row>