Can not choose the " Specific CFI Flash geometry selection" opition

David Woodhouse dwmw2 at infradead.org
Mon May 14 05:43:09 EDT 2001


ShoudongXu at cern.ch said:
>     I use kernel 2.4.2 and the lastest code ,but can not choose the "
> Specific CFI Flash geometry selection" opition ,please give me some
> advice?

You appear to have enabled a buswidth of 1, but not enabled an interleave 
of 1. This doesn't seem very useful - it's difficult to interleave more 
than one chip into a bus which is a single byte wide.

We should probably do Config.in magic to prevent this. Either that or 
something like...

--- cfi_probe.c	2001/05/10 14:32:09	1.57
+++ cfi_probe.c	2001/05/14 09:42:37
@@ -246,6 +246,9 @@
 int index;
 	switch (map->buswidth) {
 #ifdef CFIDEV_BUSWIDTH_1		
+#ifndef CFIDEV_INTERLEAVE_1
+#error You have asked to support a buswidth of 1, but have not enabled support for having only one chip interleave. How could this possibly work?
+#endif
 	case CFIDEV_BUSWIDTH_1:
 		cfi->interleave = CFIDEV_INTERLEAVE_1;
 		cfi->device_type = CFI_DEVICETYPE_X8;

(PS. Please fix your From address)

--
dwmw2






More information about the linux-mtd mailing list