LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-20-2005, 06:01 PM   #31
copolii
LQ Newbie
 
Registered: Feb 2005
Location: Richmond BC
Posts: 19

Rep: Reputation: 0
Unhappy still no luck :(


linx win: Thanks for the suggestion, this seems like what I need (ICH4), but it doesn't compile:

Quote:
# make KERNEL_DIR=/usr/src/kernels/2.6.13-1.1526_FC4-i686
make -C modem all
make[1]: Entering directory `/root/modem/slmodem-2.9.10/modem'
rebuild profile...
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_main.o -c modem_main.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_cmdline.o -c modem_cmdline.cgcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem.o -c modem.c
modem.c: In function �modem_reset�:
modem.c:1701: error: invalid storage class for function �sregs_init�
modem.c:1713: warning: implicit declaration of function �sregs_init�
modem.c: At top level:
modem.c:1727: error: static declaration of �sregs_init� follows non-static declaration
modem.c:1713: error: previous implicit declaration of �sregs_init� was here
make[1]: *** [modem.o] Error 1
make[1]: Leaving directory `/root/modem/slmodem-2.9.10/modem'
make: *** [modem] Error 2
I thought maybe I was missing .config, but I copied it over from /boot and that didn't fix it ... i've dont a lot of programming, but nothing in the driver area so I dare not touch the code (in modem.c it seems that line 1701 belongs in the prototypes section as opposed to within the modem_reset function )
Is there a patch or is this something im missing?

Thanks
 
Old 10-21-2005, 08:43 AM   #32
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
Do you have your kernel sources installed and compiled? Kernel headers may not be enough for this driver to compile.
 
Old 10-21-2005, 08:58 AM   #33
copolii
LQ Newbie
 
Registered: Feb 2005
Location: Richmond BC
Posts: 19

Rep: Reputation: 0
yes the entire kernel tree is there, I moved the offending line (1071) all the way to the top of the file with the rest of the prototypes and everything compiled fine, now I can use 'slmodemd --alsa' which seems to work using the slmodemd and the alsa AC97 drivers. I tried sending a few AT commands to the modem and I get a reply, but I get no dialtone .... which could mean the modem is not there:
Quote:
# /usr/sbin/slmodemd --alsa
SmartLink Soft Modem: version 2.9.10 Oct 20 2005 16:12:05
symbolic link `/dev/ttySL0' -> `/dev/pts/1' created.
modem `modem:1' created. TTY is `/dev/pts/1'
Use `/dev/ttySL0' as modem device, Ctrl+C for termination.
This says the modem was created ... so everything should be fine, but the AT responses are most likely coming in from the slmodemd (since the whole thing is a softmodem). When i get it to dial a number (ATDT6444444444), it says no dialtone .... so I don't know what I'm doing wrong .... do I need to somehow disable dialtone detection or does this mean it aint workin?

so then I tried not using the alsa drivers and did a 'modprobe slamr' to use the slmodem drivers ... I got the following result:
Quote:
slamr: Unknown symbol class_simple_device_add
slamr: Unknown symbol get_device
slamr: Unknown symbol class_simple_destroy
slamr: Unknown symbol put_device
slamr: Unknown symbol class_simple_device_remove
slamr: Unknown symbol class_simple_create
slamr: Unknown symbol device_release_driver
is there any modules within the kernel that i need to build? because these messages kind of suggest something along those lines.

Thanks very much.
 
Old 10-21-2005, 06:27 PM   #34
helmut_hed
Member
 
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103

Rep: Reputation: 15
copolii: good point, you are right about it not complaining about the unsupported device. The configuration script is left over from the 2.4 driver, which did support these other devices, but on 2.6 so far it only works for basic PCT789 (no AC'97 etc.). I will ask the maintainer to add some error or warning to the configure script.

Regards,
Jeff
PS: very interested to see the results of your smartlink experiment.
 
Old 10-23-2005, 05:27 AM   #35
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
Try this please:
ln -s /dev/ttySL0 /dev/modem
Then point kppp to /dev/modem and do a query.
 
Old 10-23-2005, 04:40 PM   #36
copolii
LQ Newbie
 
Registered: Feb 2005
Location: Richmond BC
Posts: 19

Rep: Reputation: 0
Hi,
I've already created the symlink
I tried what you said today and I get the same symptoms. the thing is when i type ATh1 while listening on a phone connected to the same line, I should hear the computer "pick up" the phone (a click or something), but nothing happens (tried it in Windows to confirm). I've tried different phone wires, but that doesn't seem to be the problem ... I'm pretty sure the problem is that the driver isn't really talking to the modem hardware, but then again wouldnt the driver (either alsa or slmodemd) realize that somehow?
is there any other drivers I can try for this?
I've done some googling, but havent gotten anything that would solve my problem so far.

Thanks
 
Old 10-24-2005, 08:30 AM   #37
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
look here is my lspci for my modem which is working perfectly with the driver:
0000:00:1f.6 Modem: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03)
This is almost equivelent to yours except mine is rev. 03 and yours is rev 01.

I think it should work. If you can wait I will install FC4 and try to compile it as soon as I come back home (10 days).
 
Old 10-28-2005, 12:15 PM   #38
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

Dear Jeff

I could connect internet from my PC using internal modem. This was possible with the driver you gave. As I told earlier internet-druid gives problem to me even now. After dialing (after all the hing,,,, hizzzz sound) it hangs and it forces me to reset my PC. I made link of /dev/ttyS_PCTEL0 to /dev/modem. Then I used KPPP. I am successful. Now I give this message from my home connected to internet using internal modem in FEDORA CORE 4. I am really happy. thanks for all the help you gave. There was a little delay between my earlier message and this one, coz I was busy and could not do this work at home. Thanks once again. Now the things which I want are mplayer for fedora core 4, so that I can play all movie format and MP3 songs too. Is there any alternate for warez in Linux. I used warez p2p in windows? Pliz throw some light on this.

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

Original Poster
Rep: Reputation: 15
I tried to connect internet today morning again. Today it hanged and forced me to boot the PC, even with KPPP, which was working fine yesterday night. and this time too it hanged after some time (after all the hing,,,, hizzzz sound). Why it happens so? Can anyone tell me the reason for this? How to solve this?
 
Old 12-17-2005, 09:24 AM   #40
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
copolii

I came to know that slmodem driver has been changed. It uses ALSA modem driver instead of slamr for kernels above 2.6.12.

Jeff

I have upgraded my kernel to 2.6.14 and ended up with the PCTel modem in my desktop not working. It compiles with some warnings such as:
warning: comparison is always false due to limited range of data type
I installed the driver and tried to modprobe I got segmentation fault. The following is extracted from dmesg:

linmodem(1208): linmodem v0.1 loaded
pctel_hw: module license 'GPL linked with proprietary libraries' taints kernel.
pctel_hw(151): PCTel hardware driver version 0.9.7-9-rht-4 for PCT789

pctel(654): pctel v0.1 loaded
Unable to handle kernel NULL pointer dereference at virtual address 00000000
printing eip:
c0296197
*pde = 00000000
Oops: 0000 [#1]
PREEMPT
Modules linked in: pctel pctel_hw linmodem ..... button battery ac
CPU: 0
EIP: 0060:[<c0296197>] Tainted: P VLI
EFLAGS: 00010202 (2.6.14-kanotix-5)
EIP is at pci_match_device+0x37/0x120
eax: 00000000 ebx: f195ebc0 ecx: 00000001 edx: 00000000
esi: dff7b800 edi: 00000000 ebp: e4a34000 esp: e4a35f88
ds: 007b es: 007b ss: 0068
Process modprobe (pid: 4463, threadinfo=e4a34000 task=dfddc030)
Stack: dff7b800 f195ef80 08049470 f1957033 f195ebc0 dff7b800 b7fcb000 f195ef80
c0134df8 b7fcb000 08075650 08049470 c0102fa9 b7fcb000 00004434 08075650
08075650 08049470 bffe4928 00000080 0000007b c010007b 00000080 b7f5a1de
Call Trace:
[<f1957033>] ptserial_pci_init+0x33/0xc2 [pctel]
[<c0134df8>] sys_init_module+0x98/0x1e0
[<c0102fa9>] syscall_call+0x7/0xb
Code: 8b 43 10 50 e8 4b ff ff ff 89 c2 5f 85 d2 58 74 06 89 d0 5b 5e 5f c3 b8 00 e0 ff ff 21 e0 8b 48 14 41 89 48 14 8b 83 b8 00 00 00 <8b> 08 0f 18 01 90 8d bb b8 00 00 00 39 c7 75 22 e9 94 00 00 00
<6>note: modprobe[4463] exited with preempt_count 1

Do you have an idea what to do?
 
Old 12-18-2005, 08:09 PM   #41
helmut_hed
Member
 
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103

Rep: Reputation: 15
Hi Linx,

This is probably a known problem with the driver and 2.6.13 (and greater) kernels. Can you give the following fix a try?

change line 716 of ptserial_pci-2.6.c from this:

if( pci_match_device( serial_pci_tbl, dev)

to this:

if( pci_match_id( serial_pci_tbl, dev)

This problem has been known for some time but is not yet in the driver. I will ask the maintainer when he thinks it can be released.

Regards,
Jeff
 
Old 12-19-2005, 02:02 AM   #42
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
Thanks alot. Yes, it did work.
 
Old 12-06-2006, 02:48 PM   #43
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
Hi Jeff

Again I have a problem with the driver with kernel 2.6.19. I downloaded the driver from here:

http://linmodems.technion.ac.il/pctel-l ... t-6.tar.gz

When I try to make, I get the following:

PHP Code:
root@mybox:/usr/src/modules/pctel-0.9.7-9-rht-6# make
  
CC    vuart.o
  LD    binary
.a
make 
-/lib/modules/2.6.19-slh-smp-1/build M=/usr/src/modules/pctel-0.9.7-9-rht-6
make
[1]: Entering directory `/usr/src/linux-2.6.19-slh-smp-1'
  LD      /usr/src/modules/pctel-0.9.7-9-rht-6/built-in.o
  CC [M]  /usr/src/modules/pctel-0.9.7-9-rht-6/linmodem-2.6.o
/usr/src/modules/pctel-0.9.7-9-rht-6/linmodem-2.6.c:456:48: error: macro "uart_handle_sysrq_char" passed 3 arguments, but takes just 2
/usr/src/modules/pctel-0.9.7-9-rht-6/linmodem-2.6.c: In function ‘receive_chars’:
/usr/src/modules/pctel-0.9.7-9-rht-6/linmodem-2.6.c:456: warning: the address of ‘uart_handle_sysrq_char’, will always evaluate as ‘true’
/usr/src/modules/pctel-0.9.7-9-rht-6/linmodem-2.6.c: In function ‘serial_link_irq_chain’:
/usr/src/modules/pctel-0.9.7-9-rht-6/linmodem-2.6.c:603: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/usr/src/modules/pctel-0.9.7-9-rht-6/linmodem-2.6.c: At top level:
/usr/src/modules/pctel-0.9.7-9-rht-6/linmodem-2.6.c:1077: warning: initialization from incompatible pointer type
/usr/src/modules/pctel-0.9.7-9-rht-6/linmodem-2.6.c:1078: warning: initialization from incompatible pointer type
make[2]: *** [/usr/src/modules/pctel-0.9.7-9-rht-6/linmodem-2.6.o] Error 1
make[1]: *** [_module_/usr/src/modules/pctel-0.9.7-9-rht-6] Error 2
make[1]: Leaving directory 
`/usr/src/linux-2.6.19-slh-smp-1'
make: *** [all] Error 2
root@mybox:/usr/src/modules/pctel-0.9.7-9-rht-6# 
The kernel source 2.6.19 is already configured in my system. Do you have an idea what I should do?

Last edited by linx win; 12-07-2006 at 11:10 AM.
 
Old 12-07-2006, 06:10 PM   #44
helmut_hed
Member
 
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103

Rep: Reputation: 15
Hi Linx,

I hadn't realized 2.6.19 had been released already! I think you are an "early adopter". Anyway, there is at least one known problem for which a new version of the driver will be required. Namely, the interrupt handler routine has been changed to have one argument instead of two, which is the source of the line 603 warning. I'm not sure about the other ones, but only a few hours of work should be necessary to figure it out and send you a patch.

I can't get to this immediately, but hopefully "soon"? I'll try to make it this weekend.

Cheers,
Jeff
 
Old 12-07-2006, 10:52 PM   #45
linx win
Member
 
Registered: Jan 2004
Posts: 390

Rep: Reputation: 31
Hi Jeff

Thanks for your usual support.

If a new version is a must, I suggest you add the following line to the configure file:

PHP Code:
#include "$kernel_inc/linux/utsrelease.h" 
after line 441 as follows:

PHP Code:
echo -"checking for kernel version in version.h..."
cat >t.<<EOF
#include <stdio.h>
#include "$kernel_inc/linux/version.h"
#include "$kernel_inc/linux/utsrelease.h"
int main() {
   
printf("%s\n"UTS_RELEASE);
   return 
0;
}
EOF 
This will avoid the problem of not recognizing the UTS Release.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:45 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