* Intel Strataflash
@ 2003-01-29 16:14 Stephane List
2003-01-29 22:36 ` David Woodhouse
0 siblings, 1 reply; 5+ messages in thread
From: Stephane List @ 2003-01-29 16:14 UTC (permalink / raw)
To: linux-mtd
Hi,
I'm using a 2.4.17 linux kernel for an embedded product.
On my card I've got 4 Intel Strataflash 16 bits / 16 Mbytes.
Flash 1 :
-Chip Select : 0
-Data Bus connected on D0-D15 of my CPU
Flash 2 :
-Chip Select : 0
-Data Bus connected on D16-D31 of my CPU
Flash 3 and 4, same thing with Chip Select 1.
When I load the module I've got the following message :
"genprobe_new_chip called with unsupported buswidth 2"
Could you tell me if my .config is OK ?
Thanks
PS : I couldn't compile my kernel with the CVS code...
My .config has the following options :
#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=m
# CONFIG_MTD_JEDECPROBE is not set
CONFIG_MTD_GEN_PROBE=m
CONFIG_MTD_CFI_ADV_OPTIONS=y
CONFIG_MTD_CFI_NOSWAP=y
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not set
CONFIG_MTD_CFI_GEOMETRY=y
# CONFIG_MTD_CFI_B1 is not set
# CONFIG_MTD_CFI_B2 is not set
#Because the data bus of the CPU is 4 bytes
CONFIG_MTD_CFI_B4=y
# CONFIG_MTD_CFI_B8 is not set
# CONFIG_MTD_CFI_I1 is not set
#Because There are 2 flashs connected on the same Data bus.
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
#Because it's an Intel Strataflash
CONFIG_MTD_CFI_INTELEXT=m
# CONFIG_MTD_CFI_AMDSTD is not set
# CONFIG_MTD_RAM is not set
CONFIG_MTD_ROM=m
# CONFIG_MTD_ABSENT is not set
# CONFIG_MTD_OBSOLETE_CHIPS is not set
# CONFIG_MTD_AMDSTD is not set
# CONFIG_MTD_SHARP is not set
# CONFIG_MTD_JEDEC is not set
#
# Mapping drivers for chip access
#
CONFIG_MTD_PHYSMAP=m
CONFIG_MTD_PHYSMAP_START=10000000
CONFIG_MTD_PHYSMAP_LEN=1FFFFFF
#Because my flash chip data bus is 2 bytes width
CONFIG_MTD_PHYSMAP_BUSWIDTH=2
# CONFIG_MTD_CSTM_MIPS_IXX is not set
# CONFIG_MTD_PB1000 is not set
# CONFIG_MTD_PB1500 is not set
# CONFIG_MTD_OCELOT is not set
# CONFIG_MTD_PCI is not set
--
Stephane List
http://slist.lilotux.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Intel Strataflash
2003-01-29 16:14 Intel Strataflash Stephane List
@ 2003-01-29 22:36 ` David Woodhouse
2003-01-30 9:46 ` Stephane List
2003-01-30 10:18 ` Stephane List
0 siblings, 2 replies; 5+ messages in thread
From: David Woodhouse @ 2003-01-29 22:36 UTC (permalink / raw)
To: Stephane List; +Cc: linux-mtd
On Wed, 29 Jan 2003, Stephane List wrote:
> PS : I couldn't compile my kernel with the CVS code...
Details?
> CONFIG_MTD_CFI_ADV_OPTIONS=y
Advanced options? Why did you enable this? On this occasion it isn't the
problem, because you got the options it hides correct anyway.
> #Because the data bus of the CPU is 4 bytes
> CONFIG_MTD_CFI_B4=y
Correct.
> #Because There are 2 flashs connected on the same Data bus.
> CONFIG_MTD_CFI_I2=y
Correct.
> #Because it's an Intel Strataflash
> CONFIG_MTD_CFI_INTELEXT=m
Correct.
> #Because my flash chip data bus is 2 bytes width
> CONFIG_MTD_PHYSMAP_BUSWIDTH=2
No, your CPU data bus is 4 bytes width (cf. CFI_B4 above) and has two
chips on it so
CONFIG_MTD_PHYSMAP_BUSWIDTH=4
--
dwmw2
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Intel Strataflash
2003-01-29 22:36 ` David Woodhouse
@ 2003-01-30 9:46 ` Stephane List
2003-01-30 11:00 ` Raphael Hertzog
2003-01-30 10:18 ` Stephane List
1 sibling, 1 reply; 5+ messages in thread
From: Stephane List @ 2003-01-30 9:46 UTC (permalink / raw)
To: David Woodhouse; +Cc: linux-mtd
On mer, jan 29, 2003 at 10:36:13 +0000,
David Woodhouse <dwmw2@infradead.org> wrote:
> On Wed, 29 Jan 2003, Stephane List wrote:
>
> > PS : I couldn't compile my kernel with the CVS code...
>
> Details?
>
my grep doesn't know the "-m option" so I think that the patch isn't correctly applied.
I will look at "patchin.sh" to correct this.
sh patchin.sh /opt/hardhat/devkit/lsp/idt-79s334a-mips_fp_le-mips_fp_le/linux-2.4.17_sherman_cvs_mtd
grep: option invalide -- m
Usage: grep [OPTION]... PATRON [FICHIER]...
Pour en savoir davantage, faites: `grep --help'.
grep: option invalide -- m
Usage: grep [OPTION]... PATRON [FICHIER]...
Pour en savoir davantage, faites: `grep --help'.
grep: option invalide -- m
Usage: grep [OPTION]... PATRON [FICHIER]...
Pour en savoir davantage, faites: `grep --help'.
patchin.sh: test: too many arguments
patchin.sh: test: -gt: unary operator expected
grep: option invalide -- m
Usage: grep [OPTION]... PATRON [FICHIER]...
Pour en savoir davantage, faites: `grep --help'.
patchin.sh: test: too many arguments
patchin.sh: test: -eq: unary operator expected
Patching /opt/hardhat/devkit/lsp/idt-79s334a-mips_fp_le-mips_fp_le/linux-2.4.17_sherman_cvs_mtd
Include Filesytems: yes
Zlib-Patch needed: yes
Can we start now ? [y/N]y
> > #Because my flash chip data bus is 2 bytes width
> > CONFIG_MTD_PHYSMAP_BUSWIDTH=2
>
> No, your CPU data bus is 4 bytes width (cf. CFI_B4 above) and has two
> chips on it so
> CONFIG_MTD_PHYSMAP_BUSWIDTH=4
>
OK, thanks
--
Stephane List
http://slist.lilotux.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Intel Strataflash
2003-01-30 9:46 ` Stephane List
@ 2003-01-30 11:00 ` Raphael Hertzog
0 siblings, 0 replies; 5+ messages in thread
From: Raphael Hertzog @ 2003-01-30 11:00 UTC (permalink / raw)
To: Stephane List; +Cc: David Woodhouse, linux-mtd
Am Don, 2003-01-30 um 10.46 schrieb Stephane List:
> On mer, jan 29, 2003 at 10:36:13 +0000,
> David Woodhouse <dwmw2@infradead.org> wrote:
> > On Wed, 29 Jan 2003, Stephane List wrote:
> >
> > > PS : I couldn't compile my kernel with the CVS code...
> >
> > Details?
> >
>
> my grep doesn't know the "-m option" so I think that the patch isn't correctly applied.
> I will look at "patchin.sh" to correct this.
Here's the patch that I use (if someone wants to commit it ...) :
Index: patchin.sh
===================================================================
RCS file: /home/cvs/mtd/patches/patchin.sh,v
retrieving revision 1.9
diff -u -r1.9 patchin.sh
--- patchin.sh 30 Nov 2002 23:48:39 -0000 1.9
+++ patchin.sh 30 Jan 2003 10:57:18 -0000
@@ -60,9 +60,9 @@
fi
# Get kernel version
-VERSION=`grep -sm 1 VERSION <$LINUXDIR/Makefile | sed s/'VERSION = '//`
-PATCHLEVEL=`grep -sm 1 PATCHLEVEL <$LINUXDIR/Makefile | sed s/'PATCHLEVEL = '//`
-SUBLEVEL=`grep -sm 1 SUBLEVEL <$LINUXDIR/Makefile | sed s/'SUBLEVEL = '//`
+VERSION=`grep ^VERSION $LINUXDIR/Makefile | sed s/'VERSION = '//`
+PATCHLEVEL=`grep ^PATCHLEVEL $LINUXDIR/Makefile | sed s/'PATCHLEVEL = '//`
+SUBLEVEL=`grep ^SUBLEVEL $LINUXDIR/Makefile | sed s/'SUBLEVEL = '//`
# Can we handle this ?
if test $VERSION -ne 2 -o $PATCHLEVEL -lt 4
Cheers,
--
Raphaël Hertzog - EIPM SA
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Intel Strataflash
2003-01-29 22:36 ` David Woodhouse
2003-01-30 9:46 ` Stephane List
@ 2003-01-30 10:18 ` Stephane List
1 sibling, 0 replies; 5+ messages in thread
From: Stephane List @ 2003-01-30 10:18 UTC (permalink / raw)
To: David Woodhouse; +Cc: linux-mtd
Everything is fine with removing the "grep -m" and replacing with the
good values.
Thanks a lot
Stephane
On mer, jan 29, 2003 at 10:36:13 +0000,
David Woodhouse <dwmw2@infradead.org> wrote:
> On Wed, 29 Jan 2003, Stephane List wrote:
>
> > PS : I couldn't compile my kernel with the CVS code...
>
> Details?
>
>
> > CONFIG_MTD_CFI_ADV_OPTIONS=y
>
> Advanced options? Why did you enable this? On this occasion it isn't the
> problem, because you got the options it hides correct anyway.
>
> > #Because the data bus of the CPU is 4 bytes
> > CONFIG_MTD_CFI_B4=y
>
> Correct.
>
> > #Because There are 2 flashs connected on the same Data bus.
> > CONFIG_MTD_CFI_I2=y
>
> Correct.
>
> > #Because it's an Intel Strataflash
> > CONFIG_MTD_CFI_INTELEXT=m
>
> Correct.
>
> > #Because my flash chip data bus is 2 bytes width
> > CONFIG_MTD_PHYSMAP_BUSWIDTH=2
>
> No, your CPU data bus is 4 bytes width (cf. CFI_B4 above) and has two
> chips on it so
> CONFIG_MTD_PHYSMAP_BUSWIDTH=4
>
>
> --
> dwmw2
>
>
>
--
Stephane List
http://slist.lilotux.net
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-01-30 10:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-29 16:14 Intel Strataflash Stephane List
2003-01-29 22:36 ` David Woodhouse
2003-01-30 9:46 ` Stephane List
2003-01-30 11:00 ` Raphael Hertzog
2003-01-30 10:18 ` Stephane List
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox