PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > modem works in sarge but not etch or lenny
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

modem works in sarge but not etch or lenny

Réponse
 
LinkBack Outils de la discussion
Vieux 09/09/2007, 22h50   #1
Nathan Salwen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut modem works in sarge but not etch or lenny

If this is the wrong list, please tell me where to repost it.

I have a V1456VQH-X pnp ISA card that I only use for sending and receiving
faxes. It worked in Sarge but I have not been able to get it to work in my
Lenny/Sid box.
I reinstalled sarge on a different partition and the modem still works so it
is not a hardware issue. I believe it is a kernel issue since it works with
kernel2.4 and not with kernel 2.6. Although it works in 2.4 (sarge) I have
not been able to find any log messages or dmesg output to tell me exactly
what the kernel is doing iwth it. All I know is that minicom with
/dev/ttyS1 returns OK when I type AT.

I also went to an old partition with etch i(2.6.2.6.18-3-k7 #1 SMP Mon Dec 4
17:23:11 UTC 2006 i686 GNU/Linux) and it also doesn't seem to work.

dmsg returns the following:

> isapnp: Scanning for PnP cards...
> isapnp: Card '56K PnP DATA FAX VOICE Modem'
> isapnp: 1 Plug & Play card detected total
>


So it does seem like the kernel finds it. When I go to
/sys/devices/pnp1/01:01/name I find "56K PnP DATA FAX VOICE Modem"
and the file /sys/devices/pnp1/01:01/01:01.00/resources has "state =
disabled"

After "echo AUTO > resources" the file resources contains:
state = disabled
io 0x2e8-0x2ef
irq 5

When I try running scanModem from linuxant it tells me that I need some
proprietary driver from them but, as I said, the card worked in sarge. I
don't know whether there was a decision to stop supporting some devices or
this is a bug or I am just not configuring things right. (If it is a
configuration issue that would also indicate a documentation bug.) I would
like to post a bug but am not sure to which package it would go. I guess to
the linux-image2.6 package.

Any guidance would be appreciated.

Thanks,
Nathan Salwen

  Réponse avec citation
Vieux 10/09/2007, 00h40   #2
Mumia W..
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: modem works in sarge but not etch or lenny

On 09/09/2007 04:31 PM, Nathan Salwen wrote:
> If this is the wrong list, please tell me where to repost it.
>
> I have a V1456VQH-X pnp ISA card that I only use for sending and receiving
> faxes. It worked in Sarge but I have not been able to get it to work in my
> Lenny/Sid box.
> I reinstalled sarge on a different partition and the modem still works so it
> is not a hardware issue. I believe it is a kernel issue since it works with
> kernel2.4 and not with kernel 2.6. Although it works in 2.4 (sarge) I have
> not been able to find any log messages or dmesg output to tell me exactly
> what the kernel is doing iwth it. All I know is that minicom with
> /dev/ttyS1 returns OK when I type AT.
>
> I also went to an old partition with etch i(2.6.2.6.18-3-k7 #1 SMP Mon Dec 4
> 17:23:11 UTC 2006 i686 GNU/Linux) and it also doesn't seem to work.
>
> dmsg returns the following:
>
>> isapnp: Scanning for PnP cards...
>> isapnp: Card '56K PnP DATA FAX VOICE Modem'
>> isapnp: 1 Plug & Play card detected total
>>

>
> So it does seem like the kernel finds it. When I go to
> /sys/devices/pnp1/01:01/name I find "56K PnP DATA FAX VOICE Modem"
> and the file /sys/devices/pnp1/01:01/01:01.00/resources has "state =
> disabled"
>
> After "echo AUTO > resources" the file resources contains:
> state = disabled
> io 0x2e8-0x2ef
> irq 5
>
> When I try running scanModem from linuxant it tells me that I need some
> proprietary driver from them but, as I said, the card worked in sarge. I
> don't know whether there was a decision to stop supporting some devices or
> this is a bug or I am just not configuring things right. (If it is a
> configuration issue that would also indicate a documentation bug.) I would
> like to post a bug but am not sure to which package it would go. I guess to
> the linux-image2.6 package.
>
> Any guidance would be appreciated.
>
> Thanks,
> Nathan Salwen
>


First, see if minicom can take the modem off-hook and on-hook:

ATH1
ATH

The modem should say OK for each of those, and you might hear the modem
as it changes states. Try to identify the modem:

ATI
ATI1
ATI2
ATI3

This s ensure that you're talking to the device that you expect to
control eventually. Then try to dial your ISP like so:

ATDT555-1234

You might hear the modem dialing. Since you probably don't talk PPP, you
can just hang up before it makes a connection by hitting ENTER or doing
the "+++ATH" thing.




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 11/09/2007, 05h00   #3
Mumia W..
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: modem works in sarge but not etch or lenny

On 09/09/2007 04:31 PM, Nathan Salwen wrote:
> If this is the wrong list, please tell me where to repost it.
>
> I have a V1456VQH-X pnp ISA card that I only use for sending and receiving
> faxes. It worked in Sarge but I have not been able to get it to work in my
> Lenny/Sid box.
> I reinstalled sarge on a different partition and the modem still works so it
> is not a hardware issue. I believe it is a kernel issue since it works with
> kernel2.4 and not with kernel 2.6. Although it works in 2.4 (sarge) I have
> not been able to find any log messages or dmesg output to tell me exactly
> what the kernel is doing iwth it. All I know is that minicom with
> /dev/ttyS1 returns OK when I type AT.
>
> I also went to an old partition with etch i(2.6.2.6.18-3-k7 #1 SMP Mon Dec 4
> 17:23:11 UTC 2006 i686 GNU/Linux) and it also doesn't seem to work.
>
> dmsg returns the following:
>
>> isapnp: Scanning for PnP cards...
>> isapnp: Card '56K PnP DATA FAX VOICE Modem'
>> isapnp: 1 Plug & Play card detected total
>>

>
> So it does seem like the kernel finds it. When I go to
> /sys/devices/pnp1/01:01/name I find "56K PnP DATA FAX VOICE Modem"
> and the file /sys/devices/pnp1/01:01/01:01.00/resources has "state =
> disabled"
>
> After "echo AUTO > resources" the file resources contains:
> state = disabled
> io 0x2e8-0x2ef
> irq 5
>


See if you can change these settings to these:

io 0x2f8-0x2ff
irq 3

Try to enable it too.

Also, try adding this on the kernel command line:

isapnp=off

I noticed the following for Sarge:

crw-rw---- 1 root dialout 4, 64 2005-02-26 01:39 /dev/ttyS0
crw-rw---- 1 root dialout 4, 65 2007-09-09 16:09 /dev/ttyS1
crw-rw---- 1 root dialout 4, 66 2005-02-26 01:39 /dev/ttyS2
crw-rw---- 1 root dialout 4, 67 2005-02-26 01:39 /dev/ttyS3
crw-rw---- 1 root dialout 4, 68 2005-02-26 01:39 /dev/ttyS4

Do you know why the device node for ttyS1 is so recent?

In order for COM2 (/dev/ttyS1) to work properly, IRQ 3 and IO-PORTS
0x2f8-0x2ff need to be free. Look into the /proc filesystem and find out
what is hogging the needed resources and move whatever it is somewhere
else if possible; I don't mean to remove it from the machine :-) Just
change the resources it uses.

Mind you, I have no idea how to do this.

You might need to recompile your kernel with support for exotic serial
boards. Go here: "make menuconfig-> Device Drivers-> Character Devices->
Non standard serial port support. I noticed that Sarge recognizes the
modem's serial interface right away--before any on-disk modules are
loaded. Probably the module that makes the modem available is compiled
directly into the kernel.

I couldn't but notice that COMX is missing from the 2.6 kernel.
It's missing from both the dmesg output and from the kernel source.
Right under the line in Sarge showing the settings for ttyS02 is this line:

COMX: driver version 0.85 (C) 1995-1999 ITConsult-Pro Co. <info@itc.hu>

That comes from <kernel-2.4-source>/drivers/net/wan/comx.c which does
not exist in kernel 2.6. It sort of sounds like they changed the way
serial ports are done for 2.6, and the old code was removed, but the new
code knows nothing about your modem. However, this may be a red herring
because comx.c is part of the 'wan' directory which seems to relate to
special Wide Area Network interfaces.

> When I try running scanModem from linuxant it tells me that I need some
> proprietary driver from them but, as I said, the card worked in sarge. I
> don't know whether there was a decision to stop supporting some devices or
> this is a bug or I am just not configuring things right. (If it is a
> configuration issue that would also indicate a documentation bug.) I would
> like to post a bug but am not sure to which package it would go. I guess to
> the linux-image2.6 package.
>
> Any guidance would be appreciated.
>
> Thanks,
> Nathan Salwen
>


I think your suspicion that this is a kernel bug/removed-feature is
correct. Try the other things I discussed first. If none of them work,
perhaps file a request-for-enhancement with the kernel developers. The
enhancement would be to add support for your modem.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 11/09/2007, 21h30   #4
Nathan Salwen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: modem works in sarge but not etch or lenny

Interestingly, when I turned isapnp=off on the command line, I got
io 0x2f8-0x2ff
irq 5
but I don't know how to change this or to enable the device. I
thought sending AUTO to the file should do that. I tried
>echo ENABLE > resources

but that didn't do anything.

The comx driver is an interesting lead but I wonder if it is a red
herring. When I ran sarge with the modem card physically removed, the
COMX line also showed up in dmesg. The only difference was that
ttyS02 is missing.

modem card physically absent:
> Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
> ttyS00 at 0x03f8 (irq = 4) is a 16550A
> ttyS01 at 0x02f8 (irq = 3) is a 16550A
> COMX: driver version 0.85 (C) 1995-1999 ITConsult-Pro Co. <info@itc.hu>


modem card physically present:
> Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
> ttyS00 at 0x03f8 (irq = 4) is a 16550A
> ttyS01 at 0x02f8 (irq = 3) is a 16550A
> ttyS02 at 0x03e8 (irq = 4) is a 16550A
> COMX: driver version 0.85 (C) 1995-1999 ITConsult-Pro Co. <info@itc.hu>


That is a little weird because the modem actually shows up at ttyS1.
I guess the modem shows up at ttyS01 and the and the second internal
UART is pushed to ttyS02. Actually, the COMX driver appears to be for
a synchronous card and I believe my card is asynchronous as most
modems are, so I believe that is not the driver that is actually
handling my card. I think maybe the "Serial driver" handles my card
but I don't really know. I have experience writing drivers but not
with linux.

> Do you know why the device node for ttyS1 is so recent?


The /dev/ttyS1 device updates its modify time every time I run
minicom. Maybe when minicom resets the device.

> In order for COM2 (/dev/ttyS1) to work properly, IRQ 3 and IO-PORTS
> 0x2f8-0x2ff need to be free. Look into the /proc filesystem and ...


When the card is plugged in, lenny creates space for it and removes
the serial card from /proc/ioports

proc/ioports (modem physically removed):
....
02f8-02ff : serial
....

proc/ioports (modem physically in computer):
....
0213-0213 : ISAPnP
....
0a79-0a79 : isapnp write
....

where the other parts are identical.
Also, there is nothing on interrupt 3 or 4 in /proc/interrupts
(whether the card is inserted or not).

I have never run linux under a debugger, but my inclination would be
to try to do that and then put a break on access to the ttyS1 io port.
Or to the plugnplay port.
I don't really understand the structure of the kernel so I don't
really know where to start. I guess once the card is set up for by
the pnp driver and the uart at that location is disabled, the kernel
doesn't have to know whether it accessing the original uart or going
through the modem card. Maybe all I need to do is somehow enable the
card.

Another mystery, since there is nothing at 2f8, why does ttyS1 show up?

Nathan




On 9/10/07, Mumia W.. <paduille.4061.mumia.w+nospam@earthlink.net> wrote:
> On 09/09/2007 04:31 PM, Nathan Salwen wrote:
> > If this is the wrong list, please tell me where to repost it.
> >
> > I have a V1456VQH-X pnp ISA card that I only use for sending and receiving
> > faxes. It worked in Sarge but I have not been able to get it to work in my
> > Lenny/Sid box.
> > I reinstalled sarge on a different partition and the modem still works so it
> > is not a hardware issue. I believe it is a kernel issue since it works with
> > kernel2.4 and not with kernel 2.6. Although it works in 2.4 (sarge) I have
> > not been able to find any log messages or dmesg output to tell me exactly
> > what the kernel is doing iwth it. All I know is that minicom with
> > /dev/ttyS1 returns OK when I type AT.
> >
> > I also went to an old partition with etch i(2.6.2.6.18-3-k7 #1 SMP Mon Dec 4
> > 17:23:11 UTC 2006 i686 GNU/Linux) and it also doesn't seem to work.
> >
> > dmsg returns the following:
> >
> >> isapnp: Scanning for PnP cards...
> >> isapnp: Card '56K PnP DATA FAX VOICE Modem'
> >> isapnp: 1 Plug & Play card detected total
> >>

> >
> > So it does seem like the kernel finds it. When I go to
> > /sys/devices/pnp1/01:01/name I find "56K PnP DATA FAX VOICE Modem"
> > and the file /sys/devices/pnp1/01:01/01:01.00/resources has "state =
> > disabled"
> >
> > After "echo AUTO > resources" the file resources contains:
> > state = disabled
> > io 0x2e8-0x2ef
> > irq 5
> >

>
> See if you can change these settings to these:
>
> io 0x2f8-0x2ff
> irq 3
>
> Try to enable it too.
>
> Also, try adding this on the kernel command line:
>
> isapnp=off
>
> I noticed the following for Sarge:
>
> crw-rw---- 1 root dialout 4, 64 2005-02-26 01:39 /dev/ttyS0
> crw-rw---- 1 root dialout 4, 65 2007-09-09 16:09 /dev/ttyS1
> crw-rw---- 1 root dialout 4, 66 2005-02-26 01:39 /dev/ttyS2
> crw-rw---- 1 root dialout 4, 67 2005-02-26 01:39 /dev/ttyS3
> crw-rw---- 1 root dialout 4, 68 2005-02-26 01:39 /dev/ttyS4
>
> Do you know why the device node for ttyS1 is so recent?
>
> In order for COM2 (/dev/ttyS1) to work properly, IRQ 3 and IO-PORTS
> 0x2f8-0x2ff need to be free. Look into the /proc filesystem and find out
> what is hogging the needed resources and move whatever it is somewhere
> else if possible; I don't mean to remove it from the machine :-) Just
> change the resources it uses.
>
> Mind you, I have no idea how to do this.
>
> You might need to recompile your kernel with support for exotic serial
> boards. Go here: "make menuconfig-> Device Drivers-> Character Devices->
> Non standard serial port support. I noticed that Sarge recognizes the
> modem's serial interface right away--before any on-disk modules are
> loaded. Probably the module that makes the modem available is compiled
> directly into the kernel.
>
> I couldn't but notice that COMX is missing from the 2.6 kernel.
> It's missing from both the dmesg output and from the kernel source.
> Right under the line in Sarge showing the settings for ttyS02 is this line:
>
> COMX: driver version 0.85 (C) 1995-1999 ITConsult-Pro Co. <info@itc.hu>
>
> That comes from <kernel-2.4-source>/drivers/net/wan/comx.c which does
> not exist in kernel 2.6. It sort of sounds like they changed the way
> serial ports are done for 2.6, and the old code was removed, but the new
> code knows nothing about your modem. However, this may be a red herring
> because comx.c is part of the 'wan' directory which seems to relate to
> special Wide Area Network interfaces.
>
> > When I try running scanModem from linuxant it tells me that I need some
> > proprietary driver from them but, as I said, the card worked in sarge. I
> > don't know whether there was a decision to stop supporting some devices or
> > this is a bug or I am just not configuring things right. (If it is a
> > configuration issue that would also indicate a documentation bug.) I would
> > like to post a bug but am not sure to which package it would go. I guess to
> > the linux-image2.6 package.
> >
> > Any guidance would be appreciated.
> >
> > Thanks,
> > Nathan Salwen
> >

>
> I think your suspicion that this is a kernel bug/removed-feature is
> correct. Try the other things I discussed first. If none of them work,
> perhaps file a request-for-enhancement with the kernel developers. The
> enhancement would be to add support for your modem.
>
>
>



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 11/09/2007, 23h20   #5
Mumia W..
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: modem works in sarge but not etch or lenny

On 09/11/2007 03:06 PM, Nathan Salwen wrote:
> Interestingly, when I turned isapnp=off on the command line, I got
> io 0x2f8-0x2ff
> irq 5
> but I don't know how to change this or to enable the device. I
> thought sending AUTO to the file should do that. I tried
>> echo ENABLE > resources

> but that didn't do anything.
>
> The comx driver is an interesting lead but I wonder if it is a red
> herring. When I ran sarge with the modem card physically removed, the
> COMX line also showed up in dmesg. The only difference was that
> ttyS02 is missing.
>
> modem card physically absent:
>> Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
>> ttyS00 at 0x03f8 (irq = 4) is a 16550A
>> ttyS01 at 0x02f8 (irq = 3) is a 16550A
>> COMX: driver version 0.85 (C) 1995-1999 ITConsult-Pro Co. <info@itc.hu>

>
> modem card physically present:
>> Serial driver version 5.05c (2001-07-08) with HUB-6 MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled
>> ttyS00 at 0x03f8 (irq = 4) is a 16550A
>> ttyS01 at 0x02f8 (irq = 3) is a 16550A
>> ttyS02 at 0x03e8 (irq = 4) is a 16550A
>> COMX: driver version 0.85 (C) 1995-1999 ITConsult-Pro Co. <info@itc.hu>

>
> That is a little weird because the modem actually shows up at ttyS1.
> I guess the modem shows up at ttyS01 and the and the second internal
> UART is pushed to ttyS02. Actually, the COMX driver appears to be for
> a synchronous card and I believe my card is asynchronous as most
> modems are, so I believe that is not the driver that is actually
> handling my card. I think maybe the "Serial driver" handles my card
> but I don't really know. I have experience writing drivers but not
> with linux.
>


To me, it sounds like your modem might be normally located at ttyS2.
Communicate with your serial ports as best you can. Use ATI commands to
identify the modem(s).

>> Do you know why the device node for ttyS1 is so recent?

>
> The /dev/ttyS1 device updates its modify time every time I run
> minicom. Maybe when minicom resets the device.
>


Yes, I just noticed that here too.

>> In order for COM2 (/dev/ttyS1) to work properly, IRQ 3 and IO-PORTS
>> 0x2f8-0x2ff need to be free. Look into the /proc filesystem and ...

>
> When the card is plugged in, lenny creates space for it and removes
> the serial card from /proc/ioports
>
> proc/ioports (modem physically removed):
> ...
> 02f8-02ff : serial
> ...
>
> proc/ioports (modem physically in computer):
> ...
> 0213-0213 : ISAPnP
> ...
> 0a79-0a79 : isapnp write
> ...
>
> where the other parts are identical.
> Also, there is nothing on interrupt 3 or 4 in /proc/interrupts
> (whether the card is inserted or not).
>


Perhaps another driver is capturing the device before the serial driver
can get it.

> I have never run linux under a debugger, but my inclination would be
> to try to do that and then put a break on access to the ttyS1 io port.
> Or to the plugnplay port.
> I don't really understand the structure of the kernel so I don't
> really know where to start. I guess once the card is set up for by
> the pnp driver and the uart at that location is disabled, the kernel
> doesn't have to know whether it accessing the original uart or going
> through the modem card. Maybe all I need to do is somehow enable the
> card.
>
> Another mystery, since there is nothing at 2f8, why does ttyS1 show up?
>
> Nathan
>


I don't understand. There's something at 0x2f8 in both cases it seems.

BTW, please don't top-post on this list. It makes it harder for people
to respond.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 11h27.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,27188 seconds with 13 queries