Skip to contentSkip to conversation

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

DISCUSSION Shoudong Xu 2 participants 2 messages May 14, 2001 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

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?

________________________________________________________________________________

cfi_probe.c: In function `cfi_probe_new_chip':
cfi_probe.c:250: `CFIDEV_INTERLEAVE_1' undeclared (first use in this function) cfi_probe.c:250: (Each undeclared identifier is reported only once cfi_probe.c:250: for each function it appears in.)
make[4]: *** [cfi_probe.o] Error 1
make[4]: Leaving directory `/usr/src/linuxppc_2_5/drivers/mtd/chips' make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linuxppc_2_5/drivers/mtd/chips' make[2]: *** [_subdir_chips] Error 2
make[2]: Leaving directory `/usr/src/linuxppc_2_5/drivers/mtd' make[1]: *** [_subdir_mtd] Error 2
make[1]: Leaving directory `/usr/src/linuxppc_2_5/drivers'
make: *** [_dir_drivers] Error 2
_____________________________________________________________________________________

Best Regards
Shoudong

#1 lore raw
Quoted 3 lines · [email protected] 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 +3 -0
@@ -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