LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2819|回复: 16

成功安装PCTEL的软猫

[复制链接]
发表于 2002-12-14 13:57:08 | 显示全部楼层 |阅读模式
用0.9.6的驱动不行时。。用0.8.6的可能行
Installing the pctel-0.8.6 driver

Caution

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

bash$ uname -r

Unpack the downloaded files with the commands

bash$ tar -xzvf 0.8.6.tar

Now you will have a pctel-0.8.6 directory

cd into that with the command

bash$ cd pctel-0.8.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)

If you have a PCT 789 chip set,

bash$ ./configure --with-hal=pct789

If you have a CM8738 chip set,

bash$ ./configure -with-hal=cm8738

If you have a chip set integrated with an Intel 810 chip set based motherboard from Intel,

bash$ ./configure --with-hal=i810intel

If you have a chip set integrated with an Intel 810 chip set based motherboard from SIS,

bash$ ./configure --with-hal=i810sis

If you have a chip set integrated with an VIA 686a chip set based motherboard ,

bash$ ./configure --with-hal=via686a

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

bash$ make

Then if you do not get any error messages, install the drivers with the command

bash$ make install

(You will have to be logged in as root for performing the last step)

Then just load the drivers with the commands

bash$ insmod pctel

bash$ insmod ptserial

(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/ )

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(中国是27)

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)

如果再不行的
bash$ rmmod ptserial

bash$ rmmod pctel

bash$ rm /dev/ttyS15 /dev/modem

bash$ mknod /dev/ttyS15 c 62 79

bash$ chgrp uucp /dev/ttyS15

bash$ chmod 666 /dev/ttyS15

bash$ ln -s /dev/ttyS15 /dev/modem

如果还不行的。。。痛哭吧
发表于 2002-12-14 15:42:04 | 显示全部楼层
请问兄弟,什么你用的是哪个安装包成功的?另外系环境是怎么样的?硬件环境是怎么样的?
请兄弟帮助一下,因为有好多的弟兄还没有解决这个问题。请兄弟支持一下,还有好多的弟兄还不能用linux上网。
 楼主| 发表于 2002-12-14 16:36:18 | 显示全部楼层
驱动程序包的地址是这里提供的,我用的是比较旧的版本是0.8.6
pctel-0.8.6.tar.gz
用的系统是RedHat7.3
软猫是PCTel Inc HSP MicroModem 56
编译选项是 configure --with-hal=pct789
如果提供找不到头文件,可能要安装上内核源代码,加上 "--with-kernel-includes=/usr/src/linux-2.4/include" 大家再好查查你安装的内核源代码是不是这个目录,如果不是改成你的目录就是了
编译好后,,,,
把pctel.o和ptserial.o这两份文件放到/lib/modules/`your kernel version`/misc/ 这个目录里.
打开/etc/modules.conf
在里面加上

alias char-major-62 ptserial
below ptserial pctel
options ptserial country_code=1(中国是27)

再运行
depmod -a

完成之后打开Kppp看看能不能上网。

如果不能在控制台下运行以下命令
rmmod ptserial
rmmod pctel
rm /dev/ttyS15 /dev/modem
mknod /dev/ttyS15 c 62 79
chgrp uucp /dev/ttyS15
chmod 666 /dev/ttyS15
ln -s /dev/ttyS15 /dev/modem

完成后再打开KPPP试试吧。

以上操作我是用root帐号完成的。
发表于 2002-12-15 00:01:46 | 显示全部楼层
多谢兄台,我们又有了pctel的解决办法了。

请弟兄们实践一下,如果有问题,请在本帖后面跟帖。

在此向zhong兄致意!
发表于 2002-12-18 20:20:16 | 显示全部楼层
# ./configure --with-hal=via686a    ====>ok
# make    ====>ok
# make install    ====>ok
[root@localhost pctel-0.9.6]# insmod pctel
Using /lib/modules/2.4.18-14/misc/pctel.o
/lib/modules/2.4.18-14/misc/pctel.o: 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.


怎么还会和gcc的版本有关呢? 0.8.6 也是一样的问题.
(RH8.0完全安装)
 楼主| 发表于 2002-12-19 01:49:52 | 显示全部楼层
和GCC版本是有关的,
我的英文水平不好。你叫人翻译一下这段话就知道什么意思了
(/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.
发表于 2002-12-19 10:32:02 | 显示全部楼层
咱们原来也讨论过了,是出在gcc的版本上,上面说gcc2X才适合。不用管他,我们用下面的方法来试一下。
在/etc/rc.d/rc.local中加入如下的一行
insmod -f /lib/modules/2.4.18-14/misc/pctel.o

请兄弟试一下。
 楼主| 发表于 2002-12-20 14:28:13 | 显示全部楼层
呵呵..这个倒是问题...我还没安装RH80用呢
迟些要安装一个RH80试试看...

老实说安装软猫是麻烦至极...我有两只软猫...也是等到这两个月
在这里看到有驱动...才能用的.以前我不一直在用一个33.6的硬猫上网(((
发表于 2002-12-21 19:43:17 | 显示全部楼层
[root@localhost root]# cd /lib/modules/2.4.18-14/misc
[root@localhost misc]# ls
pctel.o  ptserial.o
[root@localhost misc]# insmod pctel.o
pctel.o: The module you are trying to load (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.
[root@localhost misc]# insmod -f ./pctel.o
Warning: The module you are trying to load (./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.
Warning: loading ./pctel.o will taint the kernel: non-GPL license - GPL linked with proprietary libraries
  See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Warning: loading ./pctel.o will taint the kernel: forced load
Module pctel loaded, with warnings
[root@localhost misc]# insmod ptserial.o
Warning: loading ptserial.o will taint the kernel: non-GPL license - GPL linked with proprietary libraries
  See http://www.tux.org/lkml/#export-tainted for information about tainted modules
ptserial.o: init_module: Input/output error
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg




我是原代码编译的,怎么和GCC的版本还有关呢?

估计ptserial.o的装载错误和pcte.o的强制调入有关吧?
发表于 2002-12-21 22:24:17 | 显示全部楼层
我装了2.4.18-3的内核,和source
[root@localhost misc]# insmod pctel.o
Warning: loading pctel.o will taint the kernel: non-GPL license - GPL linked with proprietary libraries
  See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Module pctel loaded, with warnings
[root@localhost misc]# insmod ptserial.o
Warning: loading ptserial.o will taint the kernel: non-GPL license - GPL linked with proprietary libraries
  See http://www.tux.org/lkml/#export-tainted for information about tainted modules
ptserial.o: init_module: Input/output error
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
      You may find more information in syslog or the output from dmesg

我的dmesg显示的信息如下:
[root@localhost misc]# dmesg
Linux version 2.4.18-3 (bhcompile@stripples.devel.redhat.com) (gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)) #1 Thu Apr 18 07:31:07 EDT 2002
BIOS-provided physical RAM map:
BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
BIOS-e820: 00000000000e8000 - 0000000000100000 (reserved)
BIOS-e820: 0000000000100000 - 000000000eff0000 (usable)
BIOS-e820: 000000000eff0000 - 000000000eff8000 (ACPI data)
BIOS-e820: 000000000eff8000 - 000000000f000000 (ACPI NVS)
BIOS-e820: 00000000ffef0000 - 00000000fff00000 (reserved)
BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
On node 0 totalpages: 61424
zone(0): 4096 pages.
zone(1): 57328 pages.
zone(2): 0 pages.
Kernel command line: ro root=LABEL=/
Initializing CPU#0
Detected 731.013 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 1458.17 BogoMIPS
Memory: 239324k/245696k available (1129k kernel code, 5984k reserved, 791k data, 272k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Dentry cache hash table entries: 32768 (order: 6, 262144 bytes)
Inode cache hash table entries: 16384 (order: 5, 131072 bytes)
Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
Buffer cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
CPU: Before vendor init, caps: 00803035 80803035 00000000, vendor = 5
CPU: L1 I Cache: 64K (32 bytes/line), D cache 64K (32 bytes/line)
CPU: L2 Cache: 64K (32 bytes/line)
CPU: After vendor init, caps: 00803135 80803035 00000000 00000000
CPU:     After generic, caps: 00803135 80803035 00000000 00000000
CPU:             Common caps: 00803135 80803035 00000000 00000000
CPU: Centaur VIA Samuel 2 stepping 02
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfdb11, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router SIS [1039/0008] at 00:01.0
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
apm: BIOS not found.
Starting kswapd
VFS: Diskquotas version dquot_6.5.0 initialized
pty: 512 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
PCI: Found IRQ 10 for device 00:01.6
PCI: Sharing IRQ 10 with 00:05.0
Real Time Clock Driver v1.10e
block: 464 slots per queue, batch=116
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller on PCI bus 00 dev 01
SIS5513: chipset revision 208
SIS5513: not 100% native mode: will probe irqs later
SiS630
    ide0: BM-DMA at 0xff00-0xff07, BIOS settings: hdaMA, hdbMA
    ide1: BM-DMA at 0xff08-0xff0f, BIOS settings: hdcMA, hddMA
hda: IC25N020ATCS04-0, ATA DISK drive
hdc: SR243T, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: 39070080 sectors (20004 MB) w/1768KiB Cache, CHS=2432/255/63, UDMA(33)
ide-floppy driver 0.99.newide
Partition check:
hda: hda1 hda2 < hda5 > hda3 hda4
floppy0: no floppy controllers found
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
ide-floppy driver 0.99.newide
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 16384)
Linux IP multicast router 0.06 plus PIM-SM
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Compressed image found at block 0
Freeing initrd memory: 124k freed
VFS: Mounted root (ext2 filesystem).
Journalled Block Device driver loaded
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Freeing unused kernel memory: 272k freed
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Found IRQ 10 for device 00:01.2
PCI: Sharing IRQ 10 with 00:01.3
usb-ohci.c: USB OHCI at membase 0xcf844000, IRQ 10
usb-ohci.c: usb-00:01.2, Silicon Integrated Systems [SiS] 7001
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 3 ports detected
PCI: Found IRQ 10 for device 00:01.3
PCI: Sharing IRQ 10 with 00:01.2
usb-ohci.c: USB OHCI at membase 0xcf846000, IRQ 10
usb-ohci.c: usb-00:01.3, Silicon Integrated Systems [SiS] 7001 (#2)
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
usb.c: registered new driver hiddev
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz>
hid-core.c: USB HID support drivers
mice: PS/2 mouse device common for all mice
hub.c: USB new device connect on bus1/1, assigned device number 2
input0: USB HID v1.00 Mouse [05e3:1205] on usb1:2.0
EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,3), internal journal
Adding Swap: 265064k swap-space (priority -1)
MSDOS FS: Using codepage 936
MSDOS FS: IO charset cp936
MSDOS FS: Using codepage 936
MSDOS FS: IO charset cp936
ip_tables: (C) 2000-2002 Netfilter core team
8139too Fast Ethernet driver 0.9.24
PCI: Found IRQ 10 for device 00:05.0
PCI: Sharing IRQ 10 with 00:01.6
eth0: RealTek RTL8139 Fast Ethernet at 0xcf8b8000, 00:07:95:a5:26:76, IRQ 10
eth0:  Identified 8139 chip type 'RTL-8139B'
parport0: PC-style at 0x378 [PCSPP,TRISTATE]
lp0: using parport0 (polling).
lp0: console ready
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 189M
agpgart: Detected SiS 630 chipset
agpgart: AGP aperture is 64M @ 0xe0000000
Trident 4DWave/SiS 7018/ALi 5451,Tvia CyberPro 5050 PCI Audio, version 0.14.9d, 07:38:15 Apr 18 2002
PCI: Found IRQ 11 for device 00:01.4
trident: SiS 7018 PCI Audio found at IO 0xd400, IRQ 11
ac97_codec: AC97 Audio codec, id: 0x414c:0x4710 (ALC200/200P)
ac97_codec: AC97 Modem codec, id: 0x5349:0x4c21 (Unknown)
PCTel: No device detected. Abort module loading.
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2

晕,又不知道该怎么办了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表