From owner-svn-src-all@FreeBSD.ORG Tue Jun 16 12:05:04 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB697106564A; Tue, 16 Jun 2009 12:05:04 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C94CC8FC1D; Tue, 16 Jun 2009 12:05:04 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5GC54ke026711; Tue, 16 Jun 2009 12:05:04 GMT (envelope-from edwin@svn.freebsd.org) Received: (from edwin@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5GC54go026710; Tue, 16 Jun 2009 12:05:04 GMT (envelope-from edwin@svn.freebsd.org) Message-Id: <200906161205.n5GC54go026710@svn.freebsd.org> From: Edwin Groothuis Date: Tue, 16 Jun 2009 12:05:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194285 - head/tools/tools/nanobsd X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2009 12:05:05 -0000 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 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