Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 01 Apr 2000 22:17:14 -0800
From:      Doug Barton <Doug@gorean.org>
To:        The Hermit Hacker <scrappy@hub.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Serial->serial connection (sio0 -> sio1)
Message-ID:  <38E6E5EA.22A1038F@gorean.org>
References:  <Pine.BSF.4.21.0004011859490.310-100000@thelab.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
The Hermit Hacker wrote:
> 
> Morning all ...
> 
>         I'm trying to test a null modem cable under FreeBSD by connecting
> each end to my two serial ports, and for the life of me, I can't get a
> login prompt, so either this isn't possible or I'm doing something
> wrong.  We ended up testing it by using the 'Direct Connect' feature in
> Win98, so we know the cable is working, but I want to get this working
> with my FreeBSD machine :(

	There is a weird problem with the serial code in ttys. You have to boot
with a comconsole before the tty will appear. You should be able to get
it working with the following steps. 

1. Set up an appropriate entry in /etc/remote. If you are connected to
cuaa1 (com 2) on the machine that will be reading the console, just
duplicate the entry for cuaa0c in the file and change the name and
device accordingly. Mine (for 9600) looks like this:

cuaa1-9600|slow:dv=/dev/cuaa1:br#9600:pa=none:

2. Connect to the port with tip. 'tip slow'

3. echo '-P' > /boot.config

4. Enable the tty on ttyd0. Either that, or recompile the kernel to put
the console on cuaa0. 

5. Shutdown the machine you want to read the serial terminal from.

6. Disconnect the keyboard from that machine, and power it up. 

7. Watch the console messages on your serial console.

8. The tty will come up after it's done booting. :)

Good luck,

Doug
-- 
    "So, the cows were part of a dream that dreamed itself into
existence? Is that possible?" asked the student incredulously.
    The master simply replied, "Mu."


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38E6E5EA.22A1038F>