Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
10-19-2005, 08:39 AM
|
#16
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
Also here is what I got after applying the mentioned above bug fixs:
knoppix@box:~/pctel-0.9.7-9-rht-4c/src$ ./configure -auto
checking for running kernel version...2.6.11
checking for ptserial...ptserial-2.6.c
checking for gcc...3.3.6
searching for kernel includes...found at /lib/modules/2.6.11-kanotix-11/build/include
checking for autoconf.h.../lib/modules/2.6.11-kanotix-11/build/include/linux/autoconf.h
checking for asm/mach-default...yes
checking for kernel version in version.h...UTS_RELEASE is 2.6.11-kanotix-11
checking type of tty_struct.count...int
detecting your modem...found. Your modem is a pct789 type modem.
knoppix@box:~/pctel-0.9.7-9-rht-4c/src$ make
CC vuart.o
LD binary.a
make -C /lib/modules/2.6.11-kanotix-11/build M=/home/knoppix/pctel-0.9.7-9-rht-4c/src
make[1]: Entering directory `/usr/src/linux-2.6.11-kanotix-11'
LD /home/knoppix/pctel-0.9.7-9-rht-4c/src/built-in.o
CC [M] /home/knoppix/pctel-0.9.7-9-rht-4c/src/linmodem-2.6.o
/home/knoppix/pctel-0.9.7-9-rht-4c/src/linmodem-2.6.c: In function `linmodem_config_port':
/home/knoppix/pctel-0.9.7-9-rht-4c/src/linmodem-2.6.c:1008: error: `MCA_bus' undeclared (first use in this function)
/home/knoppix/pctel-0.9.7-9-rht-4c/src/linmodem-2.6.c:1008: error: (Each undeclared identifier is reported only once
/home/knoppix/pctel-0.9.7-9-rht-4c/src/linmodem-2.6.c:1008: error: for each function it appears in.)
make[2]: *** [/home/knoppix/pctel-0.9.7-9-rht-4c/src/linmodem-2.6.o] Error 1
make[1]: *** [_module_/home/knoppix/pctel-0.9.7-9-rht-4c/src] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.11-kanotix-11'
make: *** [all] Error 2
knoppix@box:~/pctel-0.9.7-9-rht-4c/src$
Just in case, here is my lspci:
0000:01:01.0 Modem: PCTel Inc HSP MicroModem 56 (rev 02)
and here is my lspci -n:
0000:01:01.0 0703: 134d:7891 (rev 02)
|
|
|
10-19-2005, 09:01 AM
|
#17
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
Update:
I commented the following lines in linmodem-2.6.c:
1008 if (p->port.flags & UPF_BOOT_ONLYMCA && !MCA_bus)
1009 return;
They became:
/* if (p->port.flags & UPF_BOOT_ONLYMCA && !MCA_bus)
*/ return;
and got the driver compiled as follows:
root@box:/home/knoppix/pctel-0.9.7-9-rht-4c/src# make
CC vuart.o
LD binary.a
make -C /lib/modules/2.6.11-kanotix-11/build M=/home/knoppix/pctel-0.9.7-9-rht-4c/src
make[1]: Entering directory `/usr/src/linux-2.6.11-kanotix-11'
LD /home/knoppix/pctel-0.9.7-9-rht-4c/src/built-in.o
CC [M] /home/knoppix/pctel-0.9.7-9-rht-4c/src/linmodem-2.6.o
CC [M] /home/knoppix/pctel-0.9.7-9-rht-4c/src/ptserial-2.6.o
CC [M] /home/knoppix/pctel-0.9.7-9-rht-4c/src/ptserial_pci-2.6.o
/home/knoppix/pctel-0.9.7-9-rht-4c/src/ptserial_pci-2.6.c: In function `amr_pctel_setup':
/home/knoppix/pctel-0.9.7-9-rht-4c/src/ptserial_pci-2.6.c:281: warning: comparison is always false due to limited range of data type
/home/knoppix/pctel-0.9.7-9-rht-4c/src/ptserial_pci-2.6.c:282: warning: comparison is always false due to limited range of data type
CC [M] /home/knoppix/pctel-0.9.7-9-rht-4c/src/ptserial_hw-2.6.o
LD [M] /home/knoppix/pctel-0.9.7-9-rht-4c/src/linmodem.o
LD [M] /home/knoppix/pctel-0.9.7-9-rht-4c/src/pctel.o
LD [M] /home/knoppix/pctel-0.9.7-9-rht-4c/src/pctel_hw.o
Building modules, stage 2.
MODPOST
CC /home/knoppix/pctel-0.9.7-9-rht-4c/src/linmodem.mod.o
LD [M] /home/knoppix/pctel-0.9.7-9-rht-4c/src/linmodem.ko
CC /home/knoppix/pctel-0.9.7-9-rht-4c/src/pctel.mod.o
LD [M] /home/knoppix/pctel-0.9.7-9-rht-4c/src/pctel.ko
CC /home/knoppix/pctel-0.9.7-9-rht-4c/src/pctel_hw.mod.o
LD [M] /home/knoppix/pctel-0.9.7-9-rht-4c/src/pctel_hw.ko
make[1]: Leaving directory `/usr/src/linux-2.6.11-kanotix-11'
root@box:/home/knoppix/pctel-0.9.7-9-rht-4c/src#
Then I did:
su
make install
make insmod
Then I found /dev/ttyS_PCTEL0 and did:
ln -s /dev/ttyS_PCTEL0 /dev/modem
I tried to query the modem in kppp but told me modem is busy.
Is this to commenting those lines?
|
|
|
10-19-2005, 09:46 AM
|
#18
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
Update:
OK now I am writting this reply using my PCTell 789 modem. I just deleted the following lines from file src/linmodem-2.6.c:
1004 #ifdef CONFIG_MCA
1005 /*
1006 * Don't probe for MCA ports on non-MCA machines.
1007 */
1008 if (p->port.flags & UPF_BOOT_ONLYMCA && !MCA_bus)
1009 return;
1010 #endif
However, when I queried the modem although it told me ready, kppp did not show the results of AT commands. It was clean page. Moreover, do you know Jeff if there is any problem having that part deleted from src/linmodem-2.6.c?
|
|
|
10-19-2005, 11:30 AM
|
#19
|
Member
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103
Rep:
|
Ah, yes. This is a known problem.
Make the following edit to linmodem-2.6.c:
between lines 31 and 32, add one extra "#include":
#include <linux/device.h>
#include <linux/mca.h> /* new */
#include <linux/tty.h>
You should be able to successfully compile at that point.
This fix, as well as the one for Jeyaraj, should be released "soon" according to the maintainer.
Regards,
Jeff
|
|
|
10-19-2005, 11:35 AM
|
#20
|
Member
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103
Rep:
|
Whoops, didn't see your other posts. Yes, what you did is fine. You probably don't need the fix I gave Jeyaraj (with the cr0 save/restore).
A lot of people, including me, have observed that kppp's query modem doesn't seem to work. I've heard from others that it does this for other modems too (some hardware modems). I think the driver is doing the right thing. One way to check is to use the terminal window feature of kppp to query the modem directly. It responds to all the ATI commands that query modem sends, so I don't know why the results show empty.
Glad it's working for you!
Jeff
|
|
|
10-19-2005, 11:35 AM
|
#21
|
Member
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Rep:
|
Quote:
I commented the following lines in linmodem-2.6.c:
1008 if (p->port.flags & UPF_BOOT_ONLYMCA && !MCA_bus)
1009 return;
They became:
Code:
/* if (p->port.flags & UPF_BOOT_ONLYMCA && !MCA_bus)
*/ return;
|
If you meant to comment out both those lines, you only commented out the first. When you use "/* ... */" only everything directly between those is commented, so the rest after "*/" which as you can see is " return;" is still executed. What you wanted to do is this:
Code:
/* if (p->port.flags & UPF_BOOT_ONLYMCA && !MCA_bus)
return; */
|
|
|
10-19-2005, 12:13 PM
|
#22
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
Jeff
Thanks alot. Your solution did work without deleting that part from linmodem-2.6.c and also without adding the fix that you suggested to Jeyaraj, It is now working fine with full speed. I wish you all the best.
ciotog
Thanks for your comments. Please disregard all what I mentioned before Jeff's last reply. His fix solved the problem.
|
|
|
10-20-2005, 04:37 AM
|
#23
|
LQ Newbie
Registered: Oct 2005
Location: Australia
Posts: 2
Rep:
|
I have read the above with interest as I am in a similar situation. I have a lucent agere modem pci 56k and from what I have read I think this is not going to work.
OK. I am using Linspire 5 and like the original writer I am new at this. Is there any way that I can get access to the web using this modem or do I have to use a serial external modem. If so, will anyone do or do I have to be specific in my selection.
|
|
|
10-20-2005, 06:31 AM
|
#24
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
I got no experience with Linspire, but Lucent agere pci modems does work in Linux. I tried it in SuSE 9.1, FC3, Mandrake 10.1 and debian. Try any Linspire's forum if any.
|
|
|
10-20-2005, 09:15 AM
|
#25
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
Jeff
I noticed that this driver supports Intel 537 AC97 modems also. Do you have an idea how to make it supprt Intel 537 pci modems also? Intel provides driver for Intel 537EP only.
|
|
|
10-20-2005, 12:49 PM
|
#26
|
Member
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103
Rep:
|
Terryshania: your modem will probably work as linx win said. Lucent/Agere modems are very well supported by an active community. Not all the modems work, but most do. Some distributions even provide the driver for you. If it's not in Linspire (search for "ltmodem") this is a good place to find more information on the driver:
http://linmodems.technion.ac.il/Ltmodem.html
make sure to run "scanmodem" so you know your hardware is supported.
linx win: the AC '97 stuff is beyond my knowledge, I'm afraid. I believe the 2.6 version of the driver has only been tested on PCTel 789 pci modems.
Regards,
Jeff
|
|
|
10-20-2005, 05:00 PM
|
#27
|
LQ Newbie
Registered: Feb 2005
Location: Richmond BC
Posts: 19
Rep:
|
cannot modprobe pctel driver
Hi guys,
I'm having a slight problem here with the modem. The lspci output for my modem is:
Quote:
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)
|
I made the "BUG FIX" changes and the driver compiles and installs fine with no errors (many warnings), however when I run make install (or manually modprobe pctel) I get the following error:
Code:
# modprobe pctel
WARNING: Error inserting pctel_hw (/lib/modules/2.6.13-1.1526_FC4/misc/pctel_hw.ko): Unknown symbol in module, or unknown parameter (see dmesg)
FATAL: Error inserting pctel (/lib/modules/2.6.13-1.1526_FC4/misc/pctel.ko): Unknown symbol in module, or unknown parameter (see dmesg)
the dmesg|tail says:
Quote:
pctel: Unknown symbol get_uart_dll
pctel: Unknown symbol put_uart_msr
pctel: Unknown symbol put_uart_scr
pctel: Unknown symbol audio_buffers
pctel: Unknown symbol put_uart_tx
pctel: Unknown symbol get_uart_lcr
pctel: Unknown symbol get_uart_lsr
pctel: Unknown symbol dsp_buffer
pctel: Unknown symbol get_uart_iir
pctel: Unknown symbol get_uart_dlm
|
Kernel version:
Code:
# uname -a
Linux copolii 2.6.13-1.1526_FC4 #1 Wed Sep 28 19:15:10 EDT 2005 i686 i686 i386 GNU/Linux
Computer: Dell Inspiron 8600
Any body knows what the problem is?
Thanks
|
|
|
10-20-2005, 05:16 PM
|
#28
|
Member
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103
Rep:
|
I'm afraid you don't have a PCTel modem, which is what the driver supports... There should have been an error message during the configuration process.
|
|
|
10-20-2005, 05:22 PM
|
#29
|
LQ Newbie
Registered: Feb 2005
Location: Richmond BC
Posts: 19
Rep:
|
that explains it :)
that would explain why module is not loaded ... do I just run 'make uninstall' to uninstall it?
configure gave me no errors regarding the modem not being supported so I just continued
Quote:
# ./configure -auto
checking for running kernel version...2.6.13
checking for ptserial...ptserial-2.6.c
checking for gcc...4.0.1
searching for kernel includes...found at /lib/modules/2.6.13-1.1526_FC4/build/include
checking for autoconf.h.../lib/modules/2.6.13-1.1526_FC4/build/include/linux/autoconf.h
checking for asm/mach-default...yes
checking for kernel version in version.h...UTS_RELEASE is 2.6.13-1.1526_FC4
checking type of tty_struct.count...int
detecting your modem...found. Your modem is a i8xx type modem.
|
Thanks for the quick reply ... any suggestions on what i CAN use to get my modem working?
|
|
|
10-20-2005, 05:27 PM
|
#30
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
Jeff
Thanks alot for reply.
copolii
Since you compiled it for i8xx and did not work, then you may need a smart link driver:
http://www.smlink.com/objects/slmodem-2.9.10.tar.gz
Last edited by linx win; 10-20-2005 at 05:30 PM.
|
|
|
All times are GMT -5. The time now is 08:24 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|