Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2010 01:11:27 -0800
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        freebsd-stable@freebsd.org
Subject:   Re: Multiple serial consoles via null modem cable
Message-ID:  <20100122091127.GA64593@icarus.home.lan>
In-Reply-To: <717f7a3e1001212236x78c12d1ue22283338e3e179c@mail.gmail.com>
References:  <717f7a3e1001120714m37aada69gfaa35f0f9b17f435@mail.gmail.com> <44678539@bb.ipt.ru> <717f7a3e1001142234y1de7ae15x6853e3ddcab4add9@mail.gmail.com> <op.u6oij7dz8527sy@212-123-145-58.ip.telfort.nl> <717f7a3e1001192246o4dce4a82q57c05ff3f41b5feb@mail.gmail.com> <20100120074611.GA405@icarus.home.lan> <717f7a3e1001210137p7884adcbxc66a4f7fff928821@mail.gmail.com> <20100121162649.GP96430@acme.spoerlein.net> <717f7a3e1001212236x78c12d1ue22283338e3e179c@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 22, 2010 at 08:36:51AM +0200, Marin Atanasov wrote:
> On Thu, Jan 21, 2010 at 6:26 PM, Ulrich Spörlein <uqs@spoerlein.net> wrote:
> 
> > 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
> >
> Hi,
> 
> This is the output from the requested commands:
> 
> box1# egrep 'uart|sio' /var/run/dmesg.boot
> usb0: USB revision 1.0
> sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
> acpi0
> sio0: type 16550A
> sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0
> sio1: type 16550A
> 
> box1# pgrep -fl getty
> 3066 /usr/libexec/getty std.9600 ttyd1
> 3065 /usr/libexec/getty std.9600 ttyd0
> 534 /usr/libexec/getty Pc ttyv7
> 533 /usr/libexec/getty Pc ttyv6
> 532 /usr/libexec/getty Pc ttyv5
> 531 /usr/libexec/getty Pc ttyv4
> 530 /usr/libexec/getty Pc ttyv3
> 529 /usr/libexec/getty Pc ttyv2
> 528 /usr/libexec/getty Pc ttyv1
> 527 /usr/libexec/getty Pc ttyv0

Can you run the same commands on box2 please?

-- 
| Jeremy Chadwick                                   jdc@parodius.com |
| Parodius Networking                       http://www.parodius.com/ |
| UNIX Systems Administrator                  Mountain View, CA, USA |
| Making life hard for others since 1977.              PGP: 4BD6C0CB |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100122091127.GA64593>