From owner-svn-src-stable-7@FreeBSD.ORG Tue Jun 23 22:09:54 2009 Return-Path: Delivered-To: svn-src-stable-7@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B204106564A; Tue, 23 Jun 2009 22:09:54 +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 ECC938FC18; Tue, 23 Jun 2009 22:09:53 +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 n5NM9rMV091933; Tue, 23 Jun 2009 22:09:53 GMT (envelope-from edwin@svn.freebsd.org) Received: (from edwin@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5NM9rpQ091931; Tue, 23 Jun 2009 22:09:53 GMT (envelope-from edwin@svn.freebsd.org) Message-Id: <200906232209.n5NM9rpQ091931@svn.freebsd.org> From: Edwin Groothuis Date: Tue, 23 Jun 2009 22:09:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194778 - stable/7/tools/tools/nanobsd X-BeenThere: svn-src-stable-7@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 7-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 22:09:54 -0000 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 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