diff options
author | edwin <edwin@FreeBSD.org> | 2009-06-16 12:05:04 +0000 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2009-06-16 12:05:04 +0000 |
commit | cb9dbdea94d6ee083fd538a25bb53442908ec6ec (patch) | |
tree | 8d10c6303fdf8e17e83e18ae56f4077cee2f10eb | |
parent | f928371bf4acea5567dfecf9ca923549739c3bc7 (diff) | |
download | FreeBSD-src-cb9dbdea94d6ee083fd538a25bb53442908ec6ec.zip FreeBSD-src-cb9dbdea94d6ee083fd538a25bb53442908ec6ec.tar.gz |
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>
MFC after: 1 week
-rw-r--r-- | tools/tools/nanobsd/FlashDevice.sub | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/tools/nanobsd/FlashDevice.sub b/tools/tools/nanobsd/FlashDevice.sub index e8b0736..b6f21e0 100644 --- a/tools/tools/nanobsd/FlashDevice.sub +++ b/tools/tools/nanobsd/FlashDevice.sub @@ -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 |