Date: Wed, 2 Aug 2006 00:00:40 +0200 (CEST) From: Henrik Brix Andersen <henrik@brixandersen.dk> To: FreeBSD-gnats-submit@FreeBSD.org Cc: "Simon L. Nielsen" <simon@FreeBSD.org> Subject: misc/101228: [patch] Two more entries for FlashDevice.sub Message-ID: <20060801220040.CA41C2E023@fangorn.brixandersen.dk> Resent-Message-ID: <200608012210.k71MAAc5063488@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060801220040.CA41C2E023>