Subject: Re: Adding a Serial device
To: None <port-i386@NetBSD.org>
From: Jukka Salmi <j+nbsd@2007.salmi.ch>
List: port-i386
Date: 07/29/2007 10:06:34
David Dudley --> port-i386 (2007-07-28 18:40:31 -0500):
> OK guys,
> 
> I'm adding support (at least - trying to) for B&B Electronics Multi-IO
> cards (1,2,4, and 8 port RS-485 comm cards).
> 
> I've added the definitions to the files in the sys/dev/pci directory
> (pcidefs, pcidefs.h, pucdata, etc...), and the driver builds correctly. 
> When the system starts up, the card is recognized correctly, however, I
> don't have a /dev/tty02,3,... device being added into the system (tty0
> and 1 are on the system card).
> 
> Looking at the dmesg output, I see the card was recognized, and
> assigned to com3 and com4.
> Should I just have to do a 'mknod /dev/tty02 c 8 3' type command to get
> it going (8 is the com device)?  What's the next step?

Running

$ cd /dev && sh MAKEDEV tty3 tty4

as root should create the device files you need.


HTH, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~