FedoraThis 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.
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.
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)
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.
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?
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.
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; */
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.
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.
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.
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.
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:
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
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.