From brix@fangorn.brixandersen.dk  Tue Aug  1 22:00:49 2006
Return-Path: <brix@fangorn.brixandersen.dk>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7971716A508;
	Tue,  1 Aug 2006 22:00:49 +0000 (UTC)
	(envelope-from brix@fangorn.brixandersen.dk)
Received: from ns2.pil.dk (ns2.pil.dk [195.41.47.38])
	by mx1.FreeBSD.org (Postfix) with ESMTP id F423D43D5F;
	Tue,  1 Aug 2006 22:00:48 +0000 (GMT)
	(envelope-from brix@fangorn.brixandersen.dk)
Received: from fangorn.brixandersen.dk (osgiliath.brixandersen.dk [87.53.223.189])
	by ns2.pil.dk (Postfix) with ESMTP id 95CD17BACB2;
	Wed,  2 Aug 2006 00:00:47 +0200 (CEST)
Received: by fangorn.brixandersen.dk (Postfix, from userid 1001)
	id CA41C2E023; Wed,  2 Aug 2006 00:00:40 +0200 (CEST)
Message-Id: <20060801220040.CA41C2E023@fangorn.brixandersen.dk>
Date: Wed,  2 Aug 2006 00:00:40 +0200 (CEST)
From: Henrik Brix Andersen <henrik@brixandersen.dk>
Reply-To: Henrik Brix Andersen <henrik@brixandersen.dk>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Simon L. Nielsen <simon@FreeBSD.org>
Subject: [patch] Two more entries for FlashDevice.sub 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         101228
>Category:       kern
>Synopsis:       [nanobsd] [patch] Two more entries for FlashDevice.sub
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    edwin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 01 22:10:09 GMT 2006
>Closed-Date:    Tue Jun 23 22:20:34 UTC 2009
>Last-Modified:  Tue Jun 23 22:20:34 UTC 2009
>Originator:     Henrik Brix Andersen
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
pil.dk 
>Environment:
System: FreeBSD fangorn.brixandersen.dk 6.1-STABLE FreeBSD 6.1-STABLE #5: Mon Jul 24 22:41:29 CEST 2006 root@fangorn.brixandersen.dk:/usr/obj/usr/src/sys/GENERIC i386
	
>Description:
This patch against RELENG_6 adds two more entries to
src/tools/tools/nanobsd/FlashDevice.sub - one for a 256MB Hitachi CF
card and one for a 256MB Silicon Systems CF card.

Both entries have been verified to work with a Soekris net4801.

	
>How-To-Repeat:
N/A
	
>Fix:
Proposed patch:
	

--- FlashDevice.sub.patch begins here ---
--- FlashDevice.sub.orig	Tue Aug  1 21:09:52 2006
+++ FlashDevice.sub	Tue Aug  1 21:39:53 2006
@@ -41,6 +41,19 @@ sub_FlashDevice () {
 	a1=`echo $1 | tr '[A-Z]' '[a-z]'` 
 	a2=`echo $2 | tr '[A-Z]' '[a-z]'` 
 	case $a1 in
+	hitachi)
+		case $a2 in
+		256|256mb)
+			NANO_MEDIASIZE=`expr 256204800 / 512`
+			NANO_HEADS=15
+			NANO_SECTS=48
+			;;
+		*)
+			echo "Unknown Hitachi Flash capacity"
+			exit 2
+			;;
+		esac
+		;;
 	integral)
 		# Source: mich@FreeBSD.org
 		case $a2 in
@@ -114,6 +127,11 @@ sub_FlashDevice () {
 		;;
 	siliconsystems)
 		case $2 in
+		256|256mb)
+			NANO_MEDIASIZE=`expr 260571136 / 512`
+			NANO_HEADS=16
+			NANO_SECTS=32
+			;;
 		4096|4g)
 			NANO_MEDIASIZE=`expr 4224761856 / 512`
 			NANO_HEADS=16
--- FlashDevice.sub.patch ends here ---


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-embedded 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Aug 2 02:51:27 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101228 
State-Changed-From-To: open->patched 
State-Changed-By: edwin 
State-Changed-When: Tue Jun 16 12:05:47 UTC 2009 
State-Changed-Why:  
Commited to head, waiting for MFC. 


Responsible-Changed-From-To: freebsd-embedded->edwin 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Tue Jun 16 12:05:47 UTC 2009 
Responsible-Changed-Why:  
I'll handle the MFC 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101228 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/101228: commit references a PR
Date: Tue, 16 Jun 2009 12:05:16 +0000 (UTC)

 Author: edwin
 Date: Tue Jun 16 12:05:04 2009
 New Revision: 194285
 URL: http://svn.freebsd.org/changeset/base/194285
 
 Log:
   Add support for 256MB Hitachi CF card and 256MB Silicon Systems CF card
   
   	This patch against RELENG_6 adds two more entries to
   	src/tools/tools/nanobsd/FlashDevice.sub - one for a 256MB
   	Hitachi CF card and one for a 256MB Silicon Systems CF card.
   
   	Both entries have been verified to work with a Soekris net4801.
   
   PR:		kern/101228
   Submitted by:	Henrik Brix Andersen <henrik@brixandersen.dk>
   MFC after:	1 week
 
 Modified:
   head/tools/tools/nanobsd/FlashDevice.sub
 
 Modified: head/tools/tools/nanobsd/FlashDevice.sub
 ==============================================================================
 --- head/tools/tools/nanobsd/FlashDevice.sub	Tue Jun 16 05:10:21 2009	(r194284)
 +++ head/tools/tools/nanobsd/FlashDevice.sub	Tue Jun 16 12:05:04 2009	(r194285)
 @@ -41,6 +41,19 @@ sub_FlashDevice () {
  	a1=`echo $1 | tr '[:upper:]' '[:lower:]'`
  	a2=`echo $2 | tr '[:upper:]' '[:lower:]'`
  	case $a1 in
 +	hitachi)
 +		case $a2 in
 +		256|256mb)
 +			NANO_MEDIASIZE=`expr 256204800 / 512`
 +			NANO_HEADS=15
 +			NANO_SECTS=48
 +			;;
 +		*)
 +			echo "Unknown Hitachi Flash capacity"
 +			exit 2
 +			;;
 +		esac
 +		;;
  	integral)
  		# Source: mich@FreeBSD.org
  		case $a2 in
 @@ -129,6 +142,11 @@ sub_FlashDevice () {
  		;;
  	siliconsystems)
  		case $a2 in
 + 		256|256mb)
 + 			NANO_MEDIASIZE=`expr 260571136 / 512`
 + 			NANO_HEADS=16
 + 			NANO_SECTS=32
 + 			;;
  		4096|4g)
  			NANO_MEDIASIZE=`expr -e 4224761856 / 512`
  			NANO_HEADS=16
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/101228: commit references a PR
Date: Tue, 23 Jun 2009 22:10:12 +0000 (UTC)

 Author: edwin
 Date: Tue Jun 23 22:09:53 2009
 New Revision: 194778
 URL: http://svn.freebsd.org/changeset/base/194778
 
 Log:
   MFC of 194285
   
   Add support for 256MB Hitachi CF card and 256MB Silicon Systems CF card
   
         This patch against RELENG_6 adds two more entries to
         src/tools/tools/nanobsd/FlashDevice.sub - one for a 256MB
         Hitachi CF card and one for a 256MB Silicon Systems CF card.
   
         Both entries have been verified to work with a Soekris net4801.
   
   PR:           kern/101228
   Submitted by: Henrik Brix Andersen <henrik@brixandersen.dk>
 
 Modified:
   stable/7/tools/tools/nanobsd/FlashDevice.sub   (contents, props changed)
 
 Modified: stable/7/tools/tools/nanobsd/FlashDevice.sub
 ==============================================================================
 --- stable/7/tools/tools/nanobsd/FlashDevice.sub	Tue Jun 23 22:08:55 2009	(r194777)
 +++ stable/7/tools/tools/nanobsd/FlashDevice.sub	Tue Jun 23 22:09:53 2009	(r194778)
 @@ -41,6 +41,19 @@ sub_FlashDevice () {
  	a1=`echo $1 | tr '[:upper:]' '[:lower:]'`
  	a2=`echo $2 | tr '[:upper:]' '[:lower:]'`
  	case $a1 in
 +	hitachi)
 +		case $a2 in
 +		256|256mb)
 +			NANO_MEDIASIZE=`expr 256204800 / 512`
 +			NANO_HEADS=15
 +			NANO_SECTS=48
 +			;;
 +		*)
 +			echo "Unknown Hitachi Flash capacity"
 +			exit 2
 +			;;
 +		esac
 +		;;
  	integral)
  		# Source: mich@FreeBSD.org
  		case $a2 in
 @@ -129,6 +142,11 @@ sub_FlashDevice () {
  		;;
  	siliconsystems)
  		case $a2 in
 + 		256|256mb)
 + 			NANO_MEDIASIZE=`expr 260571136 / 512`
 + 			NANO_HEADS=16
 + 			NANO_SECTS=32
 + 			;;
  		4096|4g)
  			NANO_MEDIASIZE=`expr -e 4224761856 / 512`
  			NANO_HEADS=16
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: edwin 
State-Changed-When: Tue Jun 23 22:18:28 UTC 2009 
State-Changed-Why:  
iMFC to stable/7 done, thank you very much! 

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