Subject: Re: /dev/ttyXX for first serial port on NetBSD?
To: Matthias Scheler <tron@zhadum.org.uk>
From: Gilles Gravier <Gilles@Gravier.org>
List: netbsd-users
Date: 04/27/2007 15:27:46
Hi, Matthias!

So it says : com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo

This means that the device is /dev/tty00 ?

Thanks,
Gilles.

Matthias Scheler wrote:
> On Fri, Apr 27, 2007 at 02:54:35PM +0300, Jukka Marin wrote:
>   
>> On Fri, Apr 27, 2007 at 01:50:59PM +0200, Gilles Gravier wrote:
>>     
>>> What's the /dev/ttyXX for COM1: (i.e. first - only in my case - RS232 
>>> port) on an x86 machine?
>>>       
>> /dev/tty00
>>     
>
> That's correct device file for whatever NetBSD attaches as "com0".
> If you however use "GENERIC" on a system which supports ACPI
> "COM1:" might get attached as "com3" because "com0" to "com2"
> are reservered for serial ports found via ISA probing.
>
> I would recomment checking the output of "grep ^com /var/run/dmesg.boot"
> to figure out the name of the serial device. The device file for
> "com<n>" is "/dev/tty0<n>".
>
> 	Kind regards
>
>   

-- 
/*Gilles Gravier*/ *=* *Gilles@Gravier.org* <mailto:Gilles@Gravier.org> 
*=* *http://www.gravier.org/*
ICQ : *77488526* 
<http://www.icq.com/whitepages/about_me.php?Uin=77488526> * || *MSN 
Messenger : Gilles@Gravier.org <http://members.msn.com/Gilles@Gravier.org>*
*Skype : ggravier <callto://ggravier>* || *Y! : ggravier 
<http://profiles.yahoo.com/ggravier> || AOL : gillesgravier 
<aim:goim?screenname=gillesgravier>
PGP Key ID : *0x8DE6D026* 
<http://pgp.mit.edu:11371/pks/lookup?search=0x8DE6D026&op=index>
"Chastity is its own punishment." (/Solomon Short/) [/David Gerrold/]
"De toutes les aberrations sexuelles, la chasteté est la plus 
aberrante." [Anatole France]