misc/115025: new flash device for nanobsd's FlashDevice.sub
Michael W Lucas
mwlucas at FreeBSD.org
Mon Jul 30 02:20:10 UTC 2007
>Number: 115025
>Category: misc
>Synopsis: new flash device for nanobsd's 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: Mon Jul 30 02:20:10 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Michael W Lucas
>Release: FreeBSD 7.0-CURRENT i386
>Organization:
none
>Environment:
FreeBSD stretchlimo.blackhelicopters.org 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Fri Jul 20 16:18:19 EDT 2007 mwlucas at stretchlimo.blackhelicopters.org:/usr/obj/usr/src/sys/GENERIC i386
>Description:
I have a flash device that isn't listed in
/usr/src/tools/tools/nanobsd/FlashDevice.sub. Since I had to figure
it out, here's the patch.
>How-To-Repeat:
Go buy one, I suppose. ;-)
>Fix:
--- FlashDevice.sub-dist 2007-07-23 11:04:00.000000000 -0400
+++ FlashDevice.sub 2007-07-23 11:10:45.000000000 -0400
@@ -55,6 +55,20 @@
;;
esac
;;
+ kodak)
+ # Source: mwlucas at FreeBSD.org
+ case $a2 in
+ 64|64mb)
+ NANO_MEDIASIZE=`expr 64487424 / 512`
+ NANO_HEADS=4
+ NANO_SECTS=32
+ ;;
+ *)
+ echo "Unknown Kodak Flash capacity"
+ exit 2
+ ;;
+ esac
+ ;;
memorycorp)
# Source: simon at FreeBSD.org
case $a2 in
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list