LinuxQuestions.org
Help answer threads with 0 replies.
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-11-2005, 12:02 AM   #1
ukjairaj
Member
 
Registered: Jun 2004
Location: Mumbai-India
Distribution: RHEL-4 Update 2 & Fedore Core 5
Posts: 40

Rep: Reputation: 15
Internal Modem Installation in Linux


Hi

I am trying to use Internet in Linux for the first time. I tried a little but with no success. I want to know how to check modem is installed properly. I also want to know how to create a dialup connection. Here are the details

OS : Fedora Core 4
Kernel : 2.6.11-1.1369_FC4 on i686
lspci result : 02:01.0 Modem: PCTel Inc HSP MicroModem 56 (rev 02)
Modem : PCTEL HSP56 Internal modem
Chip Number : PCT789T-C1 ; 0315 A079

Do I have to download any driver. If so provide the link for the same.

Can someone pliz guide me?

Last edited by ukjairaj; 10-11-2005 at 12:07 AM.
 
Old 10-11-2005, 03:04 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You need to supply the output of lspci where it refers to your modem.

In fedora, you configure modems from the internet configuration wizard. However, if you have a winmodem - very likely - then you need to visit the linmodem project page (google is your freind) and get the scanmodem script. Run this, and it will tell you if your modem is supported.

Of course you can avoid all this hassle and just buy a second hand external serial modem. These get autodetected and set up right away.
 
Old 10-11-2005, 03:09 AM   #3
walker
Member
 
Registered: Nov 2003
Distribution: antiX-17.4.1_x64 base Custom
Posts: 193

Rep: Reputation: 38
Sure you need a driver!
It's a winmodem!!
Here's the driver http://linmodems.technion.ac.il/pcte...tel-fc1.tar.gz
I assume you know how to compile and install it.
When done press <ALT+F2> then type internet-druid then press <enter>
When the config is done you can start your connection using 'system-control-network'
KPPP doesn't work in Fedora.
http://www.linuxquestions.org/questi...eadid=371771&#
 
Old 10-11-2005, 03:19 AM   #4
ukjairaj
Member
 
Registered: Jun 2004
Location: Mumbai-India
Distribution: RHEL-4 Update 2 & Fedore Core 5
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks simon for the reply. lspci output is given in my first post itself.

Walker I have downloaded the driver which you gave in link.
I have never tried compiling and installing software in Linux.
If you can tell me how to do it will be help me.
I do not understand <Alt+F2> also. Do you mean to say that I should go to another terminal and type internet-druid in text mode # prompt.

Anyway I will first try installing the driver. After installation of driver how to check if the driver is properly installed and modem is read for internet connection. Also how to find to which port modem is connected (i.e., /dev/ttyS0 or /dev/ttyS1 like that). Right now I am at office. Will go and home and try installing the driver in the night (its 2pm right now here and I will reach home only at 12 midnight). I will give the details after I try installing the driver. In the mean time procedure to compile and install the driver will be handy for me. Can someone please post the same?
 
Old 10-11-2005, 05:21 AM   #5
walker
Member
 
Registered: Nov 2003
Distribution: antiX-17.4.1_x64 base Custom
Posts: 193

Rep: Reputation: 38
<ALT+F2> means press ALT on the left of spacebar and F2 togheter

I gave you the name of the command because my menu is in italian and a don't know how they're in english or somethings else Language you use but you can find it always using K menu.
To learn how to compile a driver follow this link http://www.linuxquestions.org/questi...ticle&artid=15

then after you've installed it run, as said in my first post, internet-druid to configure your connection (it's a well done wizard) and to activate it use system-control-network.
 
Old 10-11-2005, 11:58 PM   #6
helmut_hed
Member
 
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103

Rep: Reputation: 15
Hi Ukjairaj,

Walker is right, your modem is almost certainly supported. I would recommend a different driver, though - some improvements have been made since the "fc1" version he noted. This is the most recent:

http://linmodems.technion.ac.il/pcte...-rht-4c.tar.gz

Unfortunately there is a known bug when it's used with Fedora Core 4. The good news is we have a fix, but it hasn't made it into the 4c version yet. I will tell you what to do.

I would use the following procedure after you download the file:

tar xvzf pctel-0.9.7-9-rht-4c.tar.gz
cd pctel-0.9.7-9-rht-4c/src

at this point you will need to edit the file called "ptserial-2.6.c". Add the lines that say "BUG FIX" below to the pctel_interrupt routine:

static irqreturn_t pctel_interrupt(int irq, void *dev_id,
struct pt_regs *regs )
{
static union i387_union i387;
static unsigned long flags;
static unsigned long cr0; /* BUG FIX */
struct irq_info *i = dev_id;
...
GlobalTimer = HAL_GetTimer();

__asm__ __volatile__("mov %%cr0,%0 ; clts" : "=r" (cr0)); /* BUG FIX */

__asm__ __volatile__("fnsave %0\n\t"
"fwait"
: "=m" (i387));

...
__asm__ __volatile__("frstor %0": :"m" (i387));
__asm__ __volatile__("mov %0,%%cr0" : : "r" (cr0)); /* BUG FIX */

when that's done you can do the remaining steps:

./configure -auto
make
su root
(type your root password now)
make install
make insmod

The special device file you are asking about will be /dev/ttyS_PCTEL0

Good luck, and regards,
Jeff Trull
 
Old 10-12-2005, 01:47 PM   #7
ukjairaj
Member
 
Registered: Jun 2004
Location: Mumbai-India
Distribution: RHEL-4 Update 2 & Fedore Core 5
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks Jeff.

I had problem with the tar file taken from the link given by walker.
When I tried to compile it gave error. The error was "this is compatible with only version 2.4 and the kernel found is 2.6.11". So I was not able to compile the source. Right now I am downloading the link given by you. Lemme try after I shut windows and boot in Linux. I will give a reply once I try. Thanks again.

Jeyaraj K
 
Old 10-13-2005, 03:04 AM   #8
ukjairaj
Member
 
Registered: Jun 2004
Location: Mumbai-India
Distribution: RHEL-4 Update 2 & Fedore Core 5
Posts: 40

Original Poster
Rep: Reputation: 15
As Jeff told I completed upto make insmod. And I am successful.

Thanks Jeff for the link and the guidance.

After that I used internet-druid to setup a connection. Modem (/dev/ttyS_PCTEL0) did not come in the dropdown list. So I type it. For Baud rate I entered 57600 (my internal modem is 58kbps). I think Baud rate is something connected to that. If I am wrong pliz correct me.

Then I used system-config-network and in the appeared window i saw the device and tried to activate it. But system hanged immediately. I had to reset the system. This happened two times. I am stuck here. Now help me to proceed further.
 
Old 10-14-2005, 12:42 AM   #9
helmut_hed
Member
 
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103

Rep: Reputation: 15
Hi Jeyaraj,

I just tried the procedure you described and it worked OK for me.

Is it possible that the special bug fixes are in the wrong place? They should be on lines 304, 320, and 354 in the ptserial-2.6.c after you edit.

It's actually possible to use the driver without the fixes - it will work OK for a short while, but then your mouse will move to the left hand side of the screen and stay there. That could be a test for whether the driver is the problem or something else - try ptserial-2.6.c without the fixes and see what happens.

Good luck and regards,
Jeff
 
Old 10-15-2005, 02:34 PM   #10
ukjairaj
Member
 
Registered: Jun 2004
Location: Mumbai-India
Distribution: RHEL-4 Update 2 & Fedore Core 5
Posts: 40

Original Poster
Rep: Reputation: 15
Jeff I examined the line number where the added codes are placed. It is exactly the same as you mentioned in your message. Also I checked the codes and found to be correct. But even after that it does'nt work. The problem still persists. Is there anyway to check the modem connectivity without dialing the internet, like query modem we have in windows. Though KPPP has query modem, i am not able to choose the particular /dev/ttyS_PCTEL0 through KPPP as it is not available in the dropdown list and also KPPP does not allow to enter this values (/dev/ttyS_PCTEL0). Help me further. I want to stop using windows for browsing.

Now my need is to query the modem and then setup an internet connection.


Jeyaraj K
 
Old 10-15-2005, 08:17 PM   #11
helmut_hed
Member
 
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103

Rep: Reputation: 15
Hi Jeyaraj,

I'm sorry to hear it's still hanging your machine... Are there any warnings in /var/log/messages immediately before it freezes? You could do this:

tail -f /var/log/messages

and then attempt to connect, to find out.

Also it would be interesting to know if the driver works without those bug fix lines.

As for running "query modem", you can add a special entry to the kppp configuration file ~/.kde/share/config/kppprc like this:

[Modem]
Device=/dev/ttyS_PCTEL0

Then you should be able to use kppp to query the modem.

Good luck!

Jeff
 
Old 10-18-2005, 11:19 PM   #12
ukjairaj
Member
 
Registered: Jun 2004
Location: Mumbai-India
Distribution: RHEL-4 Update 2 & Fedore Core 5
Posts: 40

Original Poster
Rep: Reputation: 15
Jeff

I will check /var/log/messages. Also I will try to query modem as you told after modifiying the kppp configuration. Yesterdays Windows crashed in my pc. So i was trying to recover that. I will try configuring the modem again today after going home. (i.e., after 8pm. now it is 10am in the morning). I will update with the progress

thanks alot for the help

Jeyaraj K
 
Old 10-18-2005, 11:34 PM   #13
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
This driver does not compile in Kanotix (debian). Does any body know where to find the right driver for Kanotix?
 
Old 10-18-2005, 11:46 PM   #14
helmut_hed
Member
 
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103

Rep: Reputation: 15
Can you post the output from the compiler (the error message)? It may be an understood problem.

Thanks,
Jeff
PS: there is no other driver
 
Old 10-19-2005, 06:33 AM   #15
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
Thanks for reply. Here is what I am getting:
knoppix@box:~/pctel-0.9.7-9-rht-4c$ ./setup
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.
** compilation error
please read the FAQ about reporting compilation problems
and report this problem. A transcript of the build process
has been saved in src/make.log. When reporting problems to
the development team, please send us this file.
knoppix@box:~/pctel-0.9.7-9-rht-4c$ cd /home/knoppix/pctel-0.9.7-9-rht-4c/src
knoppix@box:~/pctel-0.9.7-9-rht-4c/src$ make
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'
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$
 
  


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 03:44 AM.

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