Tom Ed White wrote:
>
> I am running Debian v2.0 on a Fujitsu Lifebook C350. I am trying to
> get a Viking 56K PC card modem running.
>
> When I insert the card, I get two high beeps.
Tom,
this seems to be ok. What does "cat /var/run/stab" give then?
What gives a "ls -l /dev/modem" without running setserial at all?
> Occasionally, when I run
> setserial, I get:
>
> /dev/modem, UART: 16550A, Port: 0x02b8, IRQ: 3
>
AFAIK setserial is called internally from the pcmcia scripts, so there
shouldn't be any need for calling it extra.
> When this happens, I can run minicom and enter AT commands and get an
> 'OK' response. If I run ppp for a while, though, the modem stops
> responding and the routing table disappears.
How do you run ppp? Do you use any script, ppp.chat file etc? Find the
place in your script where pppd is called and insert a debug option.
This will give you some more messages in your log file (for me:
/var/log/messages). Here are the relevant parts of my script which -
together with an aproppriate ppp.chat file - will connect me to my ISP
as user $USER (whichever value $USER is given in the script).
------------------------------------
# uncomment only for debugging:
#CHATDEBUG=" -V"
#DEBUG="debug"
# no need to configure:
localip=0.0.0.0
remoteip=
device=/dev/modem
pppflags="115200 modem defaultroute crtscts noipdefault -as 0 \
-ipx-protocol netmask 255.255.255.0 user $USER"
#....
# start
/usr/sbin/pppd lock $DEBUG connect \
'/usr/sbin/chat $CHATDEBUG -v -f /etc/ppp/ppp.chat' \
$device $pppflags $localip:$remoteip
-----------------------------
My script does also a few more things, like changing /etc/resolv.conf,
putting the appropriate dnsserver and search options for my ISP ('cause
my ethernet PCMCIA card needs different settings ;-)) when I start pppd
and deleting them when I stop it, so I don't put it all here. I can send
it to you though, if you like.
> I tried different interrupts, including setting the IRQ to zero, with
> no luck. I also tried excluding the ports reported by 'cardctl
> config,' with no luck. I think it's a port conflict. Which ports
> should I exclude/include? Is it possible to specify a port, such as
> one reserved for something I don't have, like a token ring adapter?
>
Well, here is my port range:
#
# Changed by root.
# Original:
# include port 0x100-0x3ff, memory 0xc0000-0xfffff
# New:
# include port 0x100-0x3ff, memory 0xd0000-0xdffff
include port 0x100-0x1ef
exclude port 0x1f0-0x1f7
include port 0x1f8-0x2e7
exclude port 0x2e8-0x2ef
include port 0x2f0-0x2f7
exclude port 0x2f8-0x2ff
include port 0x300-0x377
exclude port 0x378-0x37b
include port 0x37c-0x3bf
exclude port 0x3c0-0x3de
include port 0x3df-0x3ef
exclude port 0x3f0-0x3f6
include port 0x3f7-0x3f7
exclude port 0x3f8-0x3ff
include memory 0xcc000-0xcffff
#
#
#
# Extra port range for IBM Token Ring
#
include port 0xa00-0xaff
#
Dont't ask me why - I don't remember :-(
Probably because pcmcia complained about the ranges, which I then
excluded (I hate warnings, they upset me too much, kind of reminiscent
of the ugly windblows era, where a warning was a sign of an imminent
crash :-( )
Here is my interrupt range:
-----------------------
#
# Resources we should not use, even if they appear to be available
#
# First built-in serial port
exclude irq 4
# First built-in parallel port
exclude irq 7
#
--------------------
I use a PSION Gold Card Global V34+Fax. It gets recognized as such and
is assigned ttyS2 at 0x03e8 (irq 3) as the log shows:
------------------------
Jan 16 11:18:25 midas cardmgr[2722]: initializing socket 0
Jan 16 11:18:25 midas cardmgr[2722]: socket 0: Psion Gold Card Global
V.34+Fax
Jan 16 11:18:25 midas cardmgr[2722]: executing: 'insmod
/lib/modules/2.0.33/misc/serial.o'
Jan 16 11:18:26 midas kernel: Serial driver version 4.13 with no serial
options enabled
Jan 16 11:18:26 midas kernel: tty00 at 0x03f8 (irq = 4) is a 16550A
Jan 16 11:18:26 midas kernel: tty01 at 0x02f8 (irq = 3) is a 16550A
Jan 16 11:18:26 midas cardmgr[2722]: executing: 'insmod
/lib/modules/2.0.33/pcmcia/serial_cs.o'
Jan 16 11:18:28 midas kernel: tty02 at 0x03e8 (irq = 3) is a 16550A
Jan 16 11:18:28 midas cardmgr[2722]: executing: './serial start ttyS2'
---------------------
As you see, setserial is called automatically ("Serial driver version
4.13...").
Hope all this helps you a little find what's going on.
Chris