* Can not choose the " Specific CFI Flash geometry selection" opition
@ 2001-05-14 9:21 Shoudong Xu
2001-05-14 9:43 ` David Woodhouse
0 siblings, 1 reply; 2+ messages in thread
From: Shoudong Xu @ 2001-05-14 9:21 UTC (permalink / raw)
To: MTD
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can not choose the " Specific CFI Flash geometry selection" opition
2001-05-14 9:21 Can not choose the " Specific CFI Flash geometry selection" opition Shoudong Xu
@ 2001-05-14 9:43 ` David Woodhouse
0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-05-14 9:43 UTC (permalink / raw)
To: Shoudong Xu; +Cc: MTD
ShoudongXu@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-14 9:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-14 9:21 Can not choose the " Specific CFI Flash geometry selection" opition Shoudong Xu
2001-05-14 9:43 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox