misc/101228: [patch] Two more entries for FlashDevice.sub

Henrik Brix Andersen henrik at brixandersen.dk
Tue Aug 1 22:10:13 UTC 2006


>Number:         101228
>Category:       misc
>Synopsis:       [patch] Two more entries for FlashDevice.sub
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 01 22:10:09 GMT 2006
>Closed-Date:
>Last-Modified:
>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 at 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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list