Multiple serial consoles via null modem cable

Ulrich Spörlein uqs at spoerlein.net
Thu Jan 21 16:26:51 UTC 2010


On Thu, 21.01.2010 at 11:37:06 +0200, Marin Atanasov wrote:
> Here's what I did:
> 
> box1 COM1/ttyd0 -> box2 COM1/ttyd0 -> using null modem cable
> box1 COM2/ttyd1 -> box3 COM1/ttyd0 -> using null modem cable
> 
> On box1 I have this in /etc/ttys:
> 
> ttyd0   "/usr/libexec/getty std.9600"   vt100   on secure
> ttyd1   "/usr/libexec/getty std.9600"   vt100   on secure
> 
> Now if I want to connect to box1 from box2 or box3 through the serial
> connection it should work, right?
> But I only can connect to box1 from box2, because box2's COM port is
> connected to box1's COM1 port.

Are there actually two gettys running on the serial ports? Did you do
kill -1 1 after the changes to /etc/ttys?

On box1, what do the following commands produce

egrep "uart|sio" /var/run/dmesg.boot
pgrep -fl getty

Regards,
Uli


More information about the freebsd-stable mailing list