LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-19-2005, 07:39 AM   #16
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31

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)
 
Old 10-19-2005, 08:01 AM   #17
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
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?
 
Old 10-19-2005, 08:46 AM   #18
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
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?
 
Old 10-19-2005, 10:30 AM   #19
helmut_hed
Member
 
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103

Rep: Reputation: 15
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
 
Old 10-19-2005, 10:35 AM   #20
helmut_hed
Member
 
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103

Rep: Reputation: 15
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
 
Old 10-19-2005, 10:35 AM   #21
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
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; */
 
Old 10-19-2005, 11:13 AM   #22
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
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.
 
Old 10-20-2005, 03:37 AM   #23
terryshania
LQ Newbie
 
Registered: Oct 2005
Location: Australia
Posts: 2

Rep: Reputation: 0
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.
 
Old 10-20-2005, 05:31 AM   #24
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
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.
 
Old 10-20-2005, 08:15 AM   #25
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
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.
 
Old 10-20-2005, 11:49 AM   #26
helmut_hed
Member
 
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103

Rep: Reputation: 15
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
 
Old 10-20-2005, 04:00 PM   #27
copolii
LQ Newbie
 
Registered: Feb 2005
Location: Richmond BC
Posts: 19

Rep: Reputation: 0
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
 
Old 10-20-2005, 04:16 PM   #28
helmut_hed
Member
 
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103

Rep: Reputation: 15
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.
 
Old 10-20-2005, 04:22 PM   #29
copolii
LQ Newbie
 
Registered: Feb 2005
Location: Richmond BC
Posts: 19

Rep: Reputation: 0
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?
 
Old 10-20-2005, 04:27 PM   #30
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
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 04:30 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PCTEL HSP (ISAPNP/PCT2880) INTERNAL MODEM INSTALLATION M.N.BABU Linux - Newbie 3 05-04-2008 05:19 AM
Internal Modem on Linux fakie_flip Linux - Software 1 12-01-2005 03:33 AM
Dlink 560IS+++ Internal Modem installation with Redhat 9.0 kernel 2.4.20 topcat Linux - Hardware 1 09-11-2004 06:29 AM
internal usr 2976 modem installation FLOODS Linux - Networking 1 11-25-2003 01:27 PM
Internal modem installation sarkarp Linux - General 2 01-23-2002 09:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration