Bug 21935

Summary: Can't serial line login via cross-cable
Product: Base System Reporter: kaz <kaz>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: kaz
Priority: Normal    
Version: 3.3-RELEASE   
Hardware: Any   
OS: Any   

Description kaz 2000-10-12 16:40:03 UTC
	But can't login or connect. Terminal Emulator on Windows dos'nt echo
	anything. Of cource, the "login:" message also does'nt appear.

Fix: 

And "kill -1 1". Then it appear "login:" message on the Windows terminal.--H7kGOFn7Pj1Er5NVet0ypPhgJOMPTYoTt8kYtxNQ93Cy5Ncq
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- /etc/ttys~	Fri Oct 13 00:25:08 2000
+++ /etc/ttys	Fri Oct 13 00:24:47 2000
@@ -42,8 +42,8 @@
 ttyv8	"/usr/X11R6/bin/xdm -nodaemon"	xterm	off secure
 # Serial terminals
 # The 'dialup' keyword identifies dialin lines to login, fingerd etc.
-ttyd0	"/usr/libexec/getty std.9600"	vt100	on secure
-ttyd1	"/usr/libexec/getty std.9600"	vt100	on secure
+cuaa0	"/usr/libexec/getty std.9600"	vt100	on secure
+cuaa1	"/usr/libexec/getty std.9600"	vt100	on secure
 ttyd2	"/usr/libexec/getty std.9600"	dialup	off secure
 ttyd3	"/usr/libexec/getty std.9600"	dialup	off secure
 # Pseudo terminals
Comment 1 Brian Somers 2000-10-13 14:59:34 UTC
> 
> >Number:         21935
> >Category:       conf
> >Synopsis:       Can't serial line login via cross-cable
[.....]
> -ttyd0	"/usr/libexec/getty std.9600"	vt100	on secure
> -ttyd1	"/usr/libexec/getty std.9600"	vt100	on secure
> +cuaa0	"/usr/libexec/getty std.9600"	vt100	on secure
> +cuaa1	"/usr/libexec/getty std.9600"	vt100	on secure

Your cross-cable is mis-wired.  It should have CD (and CTS) on one 
side wired to DTR on the other etc.  This is a problem with most 
``laplink'' cables.

Your fix is quite appropriate.  The ttyd devices will block on open 
'till carrier is available - which will never happen.

I'll close the PR when I get a 
 chance....
-- 
Brian <brian@Awfulhak.org>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>                   <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !
Comment 2 Brian Somers freebsd_committer freebsd_triage 2000-10-15 21:15:19 UTC
State Changed
From-To: open->closed

I believe the cross cable is miswired - unless you have a 
CD <-> CTS/DTR wiring, you must use cuaa*.