LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 01-05-2006, 07:52 AM   #1
sonika
LQ Newbie
 
Registered: Jan 2006
Distribution: Fedora FC4
Posts: 8

Rep: Reputation: 0
Compaq Evo N600c Modem Problem


Hi guys,

I've been using FC4 on my Compaq Evo N600c Laptop and I need to get the dialup modem working. The problem as usual is that it's a crappy win modem. I've tried running scanmodem and making the driver but so far I haven't been able to get it to work.

Is there anyone out there that has managed to get it working?

Someone please help?!

TIA
 
Old 01-06-2006, 02:20 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
http://www.psychosis.net/evo-linux/

what does scanmodem tell you to use?
what does scanmodem tell you about your modem?
what was the result of compiling the driver?
what happens when you try to activate the modem... and what do you use to do this?

It could be as simple as fedoras network configuration tool misbehaving as usual.
 
Old 01-06-2006, 10:38 PM   #3
sonika
LQ Newbie
 
Registered: Jan 2006
Distribution: Fedora FC4
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Simon,

Cheers for the link I gave that one a shot before and found some info on it.

I ran Scanmodem and I followed it's suggestions and downloaded ltmodem-2.6-alk-7a.tar.gz which I extracted in the root folder. I then followed the instructions in the readme and on the site there's specific instructions for FC4. The problem is that following either set of instructions entirely didn't work!

The instructions with the ltmodem-2.6.... only ever completed the make a few times and with lot's off errors. The FC4 instructions worked up to the UDEV part. I think I'm closer to working out the UDEV part but now the "make" doesn't work

The error I get is;

make -C /lib/modules/`uname -r`/build SUBDIRS=/root/ltmodem-2.6-alk-7a modules
make: *** /lib/modules/2.6.11-1.1369_FC4/build: No such file or directory. Stop.
make: *** [module] Error 2

(This I'm pretty sure is me just overlooking something in the makefile and I do have 2 different kernels that I've tried it on, but I have deleted the extracted files each time.) If it helps the 2 kernels i can try are 2.6.11-1.1369_FC4 2.6.14-1.1653_FC4.

This is part of the makefile and I think the most likely culprit;

DEVICE_FILE := /dev/ttyLTM0

MODULE_NAME := ltmodem

KERNEL_DIR := /lib/modules/`uname -r`/
#KERNEL_DIR := /usr/src/linux-2.6.10

INSTALL_DIR := /lib/modules/`uname -r`/other

----------------------------------------
Also, this is what I get through lspci -v

02:04.0 Communication controller: Agere Systems (former Lucent Microelectronics) LT WinModem (rev 02)
Subsystem: AMBIT Microsystem Corp.: Unknown device 0450
Flags: bus master, medium devsel, latency 66, IRQ 11
Memory at 40180000 (32-bit, non-prefetchable) [size=256]
I/O ports at 2840 [size=8]
I/O ports at 2000 [size=256]
Capabilities: [f8] Power Management version 2

I can post the info from scanmodem if you think it would help, but I think at the momemt, if I can get the "make" to work properly I should be right. There's definately something I'm overlooking... best way to describe it... "user error".. ie lack of knowledge!

Thanks for your help
 
Old 01-07-2006, 12:44 AM   #4
sonika
LQ Newbie
 
Registered: Jan 2006
Distribution: Fedora FC4
Posts: 8

Original Poster
Rep: Reputation: 0
ok, I got a little bit further, I realised that the kernel headers weren't installed as I had done a reinstall to see if that would help with the problem.

It came up with quite a few warnings this time though. I've C&P the output below;

make
make -C /lib/modules/`uname -r`/build SUBDIRS=/root/ltmodem-2.6-alk-7a modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
CC [M] /root/ltmodem-2.6-alk-7a/lt_modem.o
/root/ltmodem-2.6-alk-7a/lt_modem.c: In function ‘lt_get_modem_interface’:
/root/ltmodem-2.6-alk-7a/lt_modem.c:309: warning: assignment from incompatible pointer type
/root/ltmodem-2.6-alk-7a/lt_modem.c:318: warning: assignment from incompatible pointer type
CC [M] /root/ltmodem-2.6-alk-7a/serial.o
/root/ltmodem-2.6-alk-7a/serial.c: In function ‘lt_init’:
/root/ltmodem-2.6-alk-7a/serial.c:804: warning: assignment from incompatible pointer type
LD [M] /root/ltmodem-2.6-alk-7a/ltmodem.o
LD [M] /root/ltmodem-2.6-alk-7a/ltserial.o
Building modules, stage 2.
MODPOST
Warning: could not find /root/ltmodem-2.6-alk-7a/.ltmdmobj.o.cmd for /root/ltmodem-2.6-alk-7a/ltmdmobj.o
CC /root/ltmodem-2.6-alk-7a/ltmodem.mod.o
LD [M] /root/ltmodem-2.6-alk-7a/ltmodem.ko
CC /root/ltmodem-2.6-alk-7a/ltserial.mod.o
LD [M] /root/ltmodem-2.6-alk-7a/ltserial.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686


-------------------------------------

I'll propably give it a shot anyway, but are those warnings going to stop the modem from working? The ONE time when it worked perfectly there weren't really any errors or warnings, but I've got a feeling that was using a newer kernel.
 
Old 01-07-2006, 01:03 AM   #5
sonika
LQ Newbie
 
Registered: Jan 2006
Distribution: Fedora FC4
Posts: 8

Original Poster
Rep: Reputation: 0
I'm just going thru the udev part and there is no folder /etc/udev/permissions.d and therefore no 50-udev.permissions. Would it be feasible just to create one? Obviously with out all those other entries below, or is there a better way of linking to it?

To arrange for ports under udev filesystem control, create a file: /etc/udev/rules.d/ltmodem.rules
The commented # line below is just explanation, while the 2nd is functional.
# symbolic link creation /dev/modem --> /dev/ttyLTM0
KERNEL=ttyLTM0, NAME=%k, SYMLINK=modem

Within /etc/udev/permissions.d/50-udev.permissions
there is a stanza like:

# serial+dialup devices
ttyS*:root:uucp:0660
ippp*:root:root:0660
isdn*:root:root:0660
isdnctrl*:root:root:0660
capi*:root:root:0660
dcbri*:root:root:0660
ircomm*:root:uucp:0660
ttyUSB*:root:uucp:0660
tts/[0-9]*:root:uucp:0660
tts/USB[0-9]*:root:uucp:0660
ttyLTM0:root:uucp:0660

to which you should add the last line show above:
ttyLTM0:root:uucp:0660
 
Old 01-07-2006, 01:26 AM   #6
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
[QUOTE=sonika]I'm just going thru the udev part and there is no folder /etc/udev/permissions.d and therefore no 50-udev.permissions. Would it be feasible just to create one? Obviously with out all those other entries below, or is there a better way of linking to it?

hmmm ... that's odd since that directory and file exist in mine. I'm pretty sure I didn't have to do anything special to enable udev. So you should have one on installation. It's probably a bad idea to create it.

udev is part of the hotplug system - try man udev - to understand.

do

rpm -q udev

tell me the output.

...
also: warnings are not normally a problem. Basically gcc is very fussy and complains about things when they are a tad sloppy but will still work.

also: as well as kernel headers, you may need the kernel source.
both available from yum if you use the fedorafaq yum.conf
 
Old 01-07-2006, 02:17 AM   #7
sonika
LQ Newbie
 
Registered: Jan 2006
Distribution: Fedora FC4
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Simon, thanks for all your help so far. I'm almost there! I'm online using that modem at the moment and the only issue is it starting automatically using udev or similar.

I ran the command and it returned;
udev-058-1

When I did a fresh install, I selected the most basic package in case I had to reinstall it again, so maybe it had something to do with that? Either that or older kernel? Using 2.6.11-1.1369_FC4 at the moment.

The headers were enough and as you said the warnings haven't seemed to matter so far.

I can get it to work by using;
ln -s /dev/ttyLTM0 /dev/modem
but the udev seems like a much better way of doing it.

I also tried creating that folder and file and it didn't seem to work. Didn't crash the system, but didn't create it properly either! Any suggestions?
 
Old 01-07-2006, 03:14 PM   #8
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
For me:

$ rpm -q udev
udev-0.58-1.0.FC4.1

... this what you mean?
An entry like that means it is installed.

... however, it isn't running like it's installed... check that /sbin/udev exists.

Anyway... udev info at: http://fedora.redhat.com/docs/udev/

You should not be editing 50-udev.rules in any case.
Quote:
New Rules

New rules should be placed in a file, which ends in .rules in /etc/udev/rules.d/. Please do not use 50-udev.rules. The supported and preferred way is to create rules without the "NAME" tag and only create "SYMLINK"s.

A nice document describing how to write rules can be found on http://www.reactivated.net/udevrules.php.
 
Old 01-09-2006, 07:30 AM   #9
sonika
LQ Newbie
 
Registered: Jan 2006
Distribution: Fedora FC4
Posts: 8

Original Poster
Rep: Reputation: 0
I updated udev in case that had something to do with it, but there's still no permissions folder. I checked the sbin folder and udev exists and when the system boots up it says it completes ok.

The only thing that I can think of, is that udev needs to be configured to grant permissions or something like that? I don't think so, but I'm clutching at straws here.

********

On a seperate note, and it's not essential, but can you think of any reason the modem would freeze the system on the newer kernel when it dials out? It works on 2.6.11-1.1369 but not 2.6.14-1.1656 even though I made it again.
 
Old 01-10-2006, 04:00 AM   #10
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
Have you read the udev info link?

Can you hotplug anything else - like a USB device (not counting mouse and keyboard here)?

....

The only reason I can think of that the modem could be different under the different kernels is that you compiled in the new kernel without that kernels headers?

You would definitely have to remake the driver for each kernel upgrade. You may even need a different version of the driver.

The ltmodem page: http://www.heby.de/ltmodem has this to say about compiling from source:
To build a driver from source code you will need to install the full (and configured) kernel source, only the kernel headers are not enough.

There is advise and stuff in:
http://linmodems.technion.ac.il/pack...em/kernel-2.6/

I don't see your ltmodem-2.6-alk-7a.tar.gz tarball there. Though there is one called ltmodem-2.6-7-alk.tar.bz

There are more recent versions than this.
There is the following advise in the readme
Edit KERNEL_DIR variable in Makefile to reflect your 2.6 kernel dir.

... this step changes between kernels.
 
Old 01-10-2006, 08:31 AM   #11
sonika
LQ Newbie
 
Registered: Jan 2006
Distribution: Fedora FC4
Posts: 8

Original Poster
Rep: Reputation: 0
Sure have and all the info I saw, just seems to take it for granted that it's in there! As for hotplugging devices, I'm not sure if it really counts but flash drives and external USB hard drives detect and mount. PCMCIA ethernet and modems detect and can be used as well.

Other than those links, I've googled and no-one really seems to mention it not being there. I've looked through some other distros post etc to try and find out too, but still no luck.

-----

As for the modem that one is there it's just hard to see it amongst all the other ones, especially seeing how you can't always see the full names. I'd already downloaded the Kernel headers and updated the kernel. I would've thought that would've meant I had the full kernel there, but I could be wrong. The strange thing is, I did it exactly the same as the earlier kernel and the earlier one worked.

One thing I didn't try is editing the makefile, as originally that wasn't necessary. I'll try giving that a shot too, but it did seem to make it ok, it just freezes when dialing.

Also to be honest, the only reason I used the ltmodem-2.6-alk-7a.tar.gz one is because it was in the FC4 instructions in that directory. In hindsite, I probably should've used a newer one, but I wasn't sure which ones I could use!

Would the latest suitable one for FC4 be http://linmodems.technion.ac.il/pack...-alk-8.tar.bz2

The ones that might be later end in .deb (i'm assuming only or more for Debian)
 
Old 01-12-2006, 03:54 AM   #12
yowi
Member
 
Registered: Dec 2002
Location: Au
Distribution: Debian
Posts: 152

Rep: Reputation: 30
Thought this might help:
http://fedora.redhat.com/docs/udev/
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compaq n600c multiport wireless under FC3 beez Linux - Laptop and Netbook 0 03-09-2005 04:30 PM
redhat 9 and mandrake 10 stability problem in compaq evo d380 zyebucks Linux - General 0 08-14-2004 10:51 PM
Compaq Evo N610c cck23 Linux - Wireless Networking 3 06-23-2004 06:30 AM
Problem installing linux on Compaq Evo D510! funkymunky Linux - General 1 08-31-2003 08:54 PM
Problem installing Linux on Compaq Evo D510! funkymunky Red Hat 1 08-31-2003 05:20 AM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration