summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2009-06-16 12:09:12 +0000
committeredwin <edwin@FreeBSD.org>2009-06-16 12:09:12 +0000
commita2de12ba1a5666927f877d527a0d5cf7ad5c3a8f (patch)
treeb64e7517542c094808d3baf5d9905766ddec7208
parentcb9dbdea94d6ee083fd538a25bb53442908ec6ec (diff)
downloadFreeBSD-src-a2de12ba1a5666927f877d527a0d5cf7ad5c3a8f.zip
FreeBSD-src-a2de12ba1a5666927f877d527a0d5cf7ad5c3a8f.tar.gz
Support for 64 Mb Kodak flash device.
PR: misc/115025 Submitted by: Michael W Lucas <mwlucas@freebsd.org> MFC after: 1 week
-rw-r--r--tools/tools/nanobsd/FlashDevice.sub14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/tools/nanobsd/FlashDevice.sub b/tools/tools/nanobsd/FlashDevice.sub
index b6f21e0..5c0e91d 100644
--- a/tools/tools/nanobsd/FlashDevice.sub
+++ b/tools/tools/nanobsd/FlashDevice.sub
@@ -68,6 +68,20 @@ sub_FlashDevice () {
;;
esac
;;
+ kodak)
+ # Source: mwlucas@FreeBSD.org
+ case $a2 iin
+ 64|64mb)
+ NANO_MEDIASIZE=`expr expr 64487424 / 512`
+ NANO_HEADS=4
+ NANO_SECTS=32
+ ;;
+ *)
+ echo "Unknown Kodak Flash capacity"
+ exit 2
+ ;;
+ esac
+ ;;
memorycorp)
# Source: simon@FreeBSD.org
case $a2 in
OpenPOWER on IntegriCloud