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-20-2005, 06:01 PM
|
#31
|
LQ Newbie
Registered: Feb 2005
Location: Richmond BC
Posts: 19
Rep:
|
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
|
|
|
10-21-2005, 08:43 AM
|
#32
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
Do you have your kernel sources installed and compiled? Kernel headers may not be enough for this driver to compile.
|
|
|
10-21-2005, 08:58 AM
|
#33
|
LQ Newbie
Registered: Feb 2005
Location: Richmond BC
Posts: 19
Rep:
|
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.
|
|
|
10-21-2005, 06:27 PM
|
#34
|
Member
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103
Rep:
|
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.
|
|
|
10-23-2005, 05:27 AM
|
#35
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
Try this please:
ln -s /dev/ttySL0 /dev/modem
Then point kppp to /dev/modem and do a query.
|
|
|
10-23-2005, 04:40 PM
|
#36
|
LQ Newbie
Registered: Feb 2005
Location: Richmond BC
Posts: 19
Rep:
|
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
|
|
|
10-24-2005, 08:30 AM
|
#37
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
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).
|
|
|
10-28-2005, 12:15 PM
|
#38
|
Member
Registered: Jun 2004
Location: Mumbai-India
Distribution: RHEL-4 Update 2 & Fedore Core 5
Posts: 40
Original Poster
Rep:
|
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
|
|
|
10-29-2005, 11:39 AM
|
#39
|
Member
Registered: Jun 2004
Location: Mumbai-India
Distribution: RHEL-4 Update 2 & Fedore Core 5
Posts: 40
Original Poster
Rep:
|
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?
|
|
|
12-17-2005, 09:24 AM
|
#40
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
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?
|
|
|
12-18-2005, 08:09 PM
|
#41
|
Member
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103
Rep:
|
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
|
|
|
12-19-2005, 02:02 AM
|
#42
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
Thanks alot. Yes, it did work.
|
|
|
12-06-2006, 02:48 PM
|
#43
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
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 -C /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.
|
|
|
12-07-2006, 06:10 PM
|
#44
|
Member
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103
Rep:
|
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
|
|
|
12-07-2006, 10:52 PM
|
#45
|
Member
Registered: Jan 2004
Posts: 390
Rep:
|
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 -n "checking for kernel version in version.h..."
cat >t.c <<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.
|
|
|
All times are GMT -5. The time now is 06:45 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
|
|