Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jun 2009 22:09:53 +0000 (UTC)
From:      Edwin Groothuis <edwin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r194778 - stable/7/tools/tools/nanobsd
Message-ID:  <200906232209.n5NM9rpQ091931@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906232209.n5NM9rpQ091931>