From jhs@berklix.org  Thu Dec 13 01:08:24 2007
Return-Path: <jhs@berklix.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CCE1616A418
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 13 Dec 2007 01:08:24 +0000 (UTC)
	(envelope-from jhs@berklix.org)
Received: from tower.berklix.org (tower.berklix.org [83.236.223.114])
	by mx1.freebsd.org (Postfix) with ESMTP id 777ED13C442
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 13 Dec 2007 01:08:24 +0000 (UTC)
	(envelope-from jhs@berklix.org)
Received: from js.berklix.net (p549A690D.dip.t-dialin.net [84.154.105.13])
	(authenticated bits=0)
	by tower.berklix.org (8.13.6/8.13.6) with ESMTP id lBD18Lux026872
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 13 Dec 2007 01:08:22 GMT
	(envelope-from jhs@berklix.org)
Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41])
	by js.berklix.net (8.13.8/8.13.8) with ESMTP id lBD184TU003743
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 13 Dec 2007 02:08:04 +0100 (CET)
	(envelope-from jhs@berklix.org)
Received: from fire.js.berklix.net (localhost.js.berklix.net [127.0.0.1])
	by fire.js.berklix.net (8.13.8/8.13.8) with ESMTP id lBD187O3007585
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 13 Dec 2007 02:08:07 +0100 (CET)
	(envelope-from jhs@fire.js.berklix.net)
Received: (from jhs@localhost)
	by fire.js.berklix.net (8.13.8/8.13.8/Submit) id lBD187Ye007584;
	Thu, 13 Dec 2007 02:08:07 +0100 (CET)
	(envelope-from jhs)
Message-Id: <200712130108.lBD187Ye007584@fire.js.berklix.net>
Date: Thu, 13 Dec 2007 02:08:07 +0100 (CET)
From: "Julian H. Stacey" <jhs@berklix.org>
Reply-To: "Julian H. Stacey" <jhs@berklix.org>
To: FreeBSD-gnats-submit@freebsd.org
Subject: remove requirement for SLIP install cables to support hard flow
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         118636
>Category:       bin
>Synopsis:       sysinstall(8): [patch] [request] remove requirement for SLIP install cables to support hard flow
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    brucec
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 13 01:10:00 UTC 2007
>Closed-Date:    Wed Jun 23 14:58:04 UTC 2010
>Last-Modified:  Wed Jun 23 14:58:04 UTC 2010
>Originator:     Julian H. Stacey jhs@berklix.com
>Release:        FreeBSD 7.0BETA4
>Organization:
http://berklix.com
>Environment:
System: FreeBSD fire.js.berklix.net 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Mon Sep 17 23:01:21 CEST 2007 jhs@fire.js.berklix.net:/usr1/src/sys/amd64/compile/FIRE64.small amd64


	
>Description:
	
	Comment in diff.
>How-To-Repeat:
	
	Comment in diff.
>Fix:

	----------------
This file is:
http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/usr.sbin/sysinstal/network.c.REL=ALL.diff

Discard -h as a liability: It is doesnt work on various commercial
cables, We should be conservative & inclusive.  Chances are, if
someone is using SLIP, theyre already desperate & near ready to
give up, having encountered enough install problems.  EG one real
nightmare laptop:
	http://localhost/~jhs/hardware/laptops/dell_latitude_xpi_p133st/
Had all these problems in one laptop:
	laptop pcmcia cdrom not recogniesd on 7.0BETA3 (OK on 4.11)
	laptop pcmcia ethernet not recognised on 7.0BETA3 (OK on 4.11)
	BIOS broken, creating spare partition to park eg 7.0BETA4 distribution
		imported under 4.11-RELEASE, kills boot on all partitions.
	7.0BETA3 ATA/WC driver broken (4.11-RELEASE OK), silently
		failing to write without  eg hw.ata.ata_dma=0 in
		http://localhost/~jhs/hardware/laptops/#loader.conf
	PLIP broken (been so FreeBSD-5.0 to 7.0BETA4 inclusive)
		http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/share/man/man4/lp.4.REL=ALL.diff
		http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/share/man/man4/plip.4.send-pr.ignore
		http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/jhs/sys/dev/ppbus/if_plip.c.REL=ALL.diff
	SLIP breaks by default on some commercial cables. without patch below.

PS 1 Remove word `execute' un-necessary geek speak ;-)
PS 2 A 4.11 server feeds 7.0BETA3 client happily without '-h'


*** 6.2-RELEASE/src/usr.sbin/sysinstall/network.c	Thu Dec 13 00:22:22 2007
--- new-generic/src/usr.sbin/sysinstall/network.c	Thu Dec 13 01:00:12 2007
***************
*** 93,107 ****
  
  	/* Cheesy slip attach */
  	snprintf(attach, 256, "slattach -a -h -l -s 9600 %s", dev->devname);
  	val = msgGetInput(attach,
  			  "Warning:  SLIP is rather poorly supported in this revision\n"
  			  "of the installation due to the lack of a dialing utility.\n"
  			  "If you can use PPP for this instead then you're much better\n"
  			  "off doing so, otherwise SLIP works fairly well for *hardwired*\n"
  			  "links.  Please edit the following slattach command for\n"
! 			  "correctness (default here is: VJ compression, Hardware flow-\n"
! 			  "control, ignore carrier and 9600 baud data rate).  When you're\n"
! 			  "ready, press [ENTER] to execute it.");
  	if (!val) {
  	    msgConfirm("slattach command was empty.  Try again!");
  	    restorescr(w);
--- 93,123 ----
  
  	/* Cheesy slip attach */
  	snprintf(attach, 256, "slattach -a -h -l -s 9600 %s", dev->devname);
+ 	snprintf(attach, 256, "slattach -a -l -s 9600 %s", dev->devname);
  	val = msgGetInput(attach,
  			  "Warning:  SLIP is rather poorly supported in this revision\n"
  			  "of the installation due to the lack of a dialing utility.\n"
  			  "If you can use PPP for this instead then you're much better\n"
  			  "off doing so, otherwise SLIP works fairly well for *hardwired*\n"
  			  "links.  Please edit the following slattach command for\n"
! 			  "correctness (default here is: VJ compression, Software flow-\n"
! 			  "control, ignore carrier and 9600 baud data rate).\n"
! 			  "Some commercial cables do not support hardware flow control,\n"
! 			  "but if your cables do support it, you can add '-h' .\n"
! 			  "When you're ready, press [ENTER].");
! 			/* Comment To Reduce Before Commiting:
! 			   jhs@berklix.com has 2 red commercial
! 			   cables with 9 pins. & 1 blue commercial
! 			   cable with both 9 & 25 plugs that do Not
! 			   support '-h' Proven between a Toshiba
! 			   Libretto 70CT
! 			   http://www.berklix.com/~jhs/hardware/toshiba/libretto/
! 			   & an ACi Mirage Model 8700M
! 			   http://www.berklix.com/~jhs/hardware/laptops/aci_mirage_8700m/
! 			   both running 4.11-RELEASE (but also tried
! 			   with newer FreeBSD).
! 
! 			 */
  	if (!val) {
  	    msgConfirm("slattach command was empty.  Try again!");
  	    restorescr(w);
	----------------


>Release-Note:
>Audit-Trail:

From: "Julian Stacey" <jhs@berklix.org>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc:  
Subject: Re: bin/118636: [patch] [request] sysinstall(8): remove requirement for SLIP install cables to support hard flow 
Date: Fri, 01 Feb 2008 00:06:07 +0100

 > http://www.freebsd.org/cgi/query-pr.cgi?pr=118636
 > 
 > >Category:       bin
 > >Responsible:    freebsd-bugs
 > >Synopsis:       [patch] [request] sysinstall(8): remove requirement for SLIP install cables to support hard flow
 
 My Typos/Errors. Please correct these URLS:
 
 Old:	http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/usr.sbin/sysinstal/network.c.REL=ALL.diff
 New:	http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/usr.sbin/sysinstall/network.c.REL=ALL.diff
 
 Old:	http://localhost/~jhs/hardware/laptops/dell_latitude_xpi_p133st/
 New:	http://berklix.com/~jhs/hardware/laptops/dell_latitude_xpi_p133st/
 
 Old:	http://localhost/~jhs/hardware/laptops/#loader.conf
 New:	http://berklix.com/~jhs/hardware/laptops/#loader.conf
 
 -- 
 Julian Stacey. Munich Computer Consultant, BSD Unix C Linux. http://berklix.com
State-Changed-From-To: open->closed  
State-Changed-By: brucec 
State-Changed-When: Wed Jun 23 14:50:56 UTC 2010 
State-Changed-Why:  
SLIP support has been removed in 8.0 so I think at this stage it's probably  
not worth fixing the code, but the workaround should probably be documented. 


Responsible-Changed-From-To: freebsd-bugs->brucec  
Responsible-Changed-By: brucec 
Responsible-Changed-When: Wed Jun 23 14:50:56 UTC 2010 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118636 
>Unformatted:
