From owner-freebsd-questions Sat Apr 1 22:17:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id 54EE337B99F for ; Sat, 1 Apr 2000 22:17:32 -0800 (PST) (envelope-from Doug@gorean.org) Received: from gorean.org (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id WAA86311; Sat, 1 Apr 2000 22:17:15 -0800 (PST) (envelope-from Doug@gorean.org) Message-ID: <38E6E5EA.22A1038F@gorean.org> Date: Sat, 01 Apr 2000 22:17:14 -0800 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 5.0-CURRENT-0325 i386) X-Accept-Language: en MIME-Version: 1.0 To: The Hermit Hacker Cc: freebsd-questions@freebsd.org Subject: Re: Serial->serial connection (sio0 -> sio1) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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