Subject: Re: /dev/ttyXX for first serial port on NetBSD?
To: Gilles Gravier <>
From: Matthias Scheler <>
List: netbsd-users
Date: 04/27/2007 13:31:07
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

Matthias Scheler