Re: /dev/cua? and /dev/ttyS?
As I recall I tried using ttyS0 (I want to use ttyS0 not ttys0 right? I
think the other one is a terminal port). At any rate, things never worked
out for that one. Believe me, that was the first one that I tried, since
that was what the PCMCIA-HOWTO recommended. As an aside, I don't nor have
I ever used DOS, so your assumptions were wrong.
Another reason why I chose /dev/cua1 was this paragraph in the
PCMCIA-HOWTO which states
3.3 How do I use my PCMCIA modem card?
Linux serial devices are accessed via the /dev/cua* and /dev/ttyS*
special device files. The ttyS* devices are for incoming connections, such
as directly connected terminals. The cua* devices are for outgoing
connections, such as modems. The configuration of a serial device can be
examined and modified with the setserial command.
When a PCMCIA serial or modem card is detected, it will be
assigned to the first available serial device slot. This will usually be
/dev/cua1 or /dev/cua2, depending on the number of buil-in serial ports.
Okay, so end quote. When I configured the pcmcia card daemon, cardmgr it
refused to recognize my card (one high beep, then one low -- meaning card
not configured). This problem was solved when I did a mknod /dev/cua1 and
set the major and minor numbers. After that it worked, ... well ... after I
changed a #define in the kernel code to point to the right I/O address
and added some lines to the /etc/pcmcia/config.opts. In otherwords, it was
a real hassel to get linux to recognize my modem and I stopped as soon as
everything seemed to be working.
Now, having had a chance to relax and fully use linux I've taken a
look at my /var/run/stab file and see that it states
Socket 0: Serial or Modem Card
0 serial serial_cs 0 ttyS1 4
So I see that I was choosing the wrong device, ttyS0 not ttyS1. This port
seems to work fine, and I'm using it now. But I hope you can see my
confusion, I was relying on the only documentation that I had.
- John Kloss
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to email@example.com .