Intel Strataflash
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 setCONFIG_MTD_GEN_PROBE=mCONFIG_MTD_CFI_ADV_OPTIONS=yCONFIG_MTD_CFI_NOSWAP=y
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not setCONFIG_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 bytesCONFIG_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 StrataflashCONFIG_MTD_CFI_INTELEXT=m
# CONFIG_MTD_CFI_AMDSTD is not set
# CONFIG_MTD_RAM is not setCONFIG_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=mCONFIG_MTD_PHYSMAP_START=10000000CONFIG_MTD_PHYSMAP_LEN=1FFFFFF
#Because my flash chip data bus is 2 bytes widthCONFIG_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
Signature · 2 lines
Stephane List http://slist.lilotux.net
Quoted 1 line · Stephane List
PS : I couldn't compile my kernel with the CVS code...
Details?
Quoted 1 line
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.
Quoted 2 lines
#Because the data bus of the CPU is 4 bytes
CONFIG_MTD_CFI_B4=y
Correct.
Quoted 2 lines
#Because There are 2 flashs connected on the same Data bus.
CONFIG_MTD_CFI_I2=y
Correct.
Quoted 2 lines
#Because it's an Intel Strataflash
CONFIG_MTD_CFI_INTELEXT=m
Correct.
Quoted 2 lines
#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
Signature · 1 line
dwmw2
Quoted 6 lines · David Woodhouse
Quoted 1 line · Stephane List
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 argumentspatchin.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 argumentspatchin.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
Quoted 7 lines
Quoted 2 lines
#Because my flash chip data bus is 2 bytes width
CONFIG_MTD_PHYSMAP_BUSWIDTH=2No, your CPU data bus is 4 bytes width (cf.
CFI_B4above) and has two chips on it so
CONFIG_MTD_PHYSMAP_BUSWIDTH=4
OK, thanks
Signature · 2 lines
Stephane List http://slist.lilotux.net
Everything is fine with removing the "grep -m" and replacing with the good values.
Thanks a lot
Stephane
Quoted 40 lines · David Woodhouse
Quoted 1 line · Stephane List
PS : I couldn't compile my kernel with the CVS code...
Details?
Quoted 1 line
CONFIG_MTD_CFI_ADV_OPTIONS=yAdvanced options? Why did you enable this? On this occasion it isn't the problem, because you got the options it hides correct anyway.
Quoted 2 lines
#Because the data bus of the CPU is 4 bytes
CONFIG_MTD_CFI_B4=yCorrect.
Quoted 2 lines
#Because There are 2 flashs connected on the same Data bus.
CONFIG_MTD_CFI_I2=yCorrect.
Quoted 2 lines
#Because it's an Intel Strataflash
CONFIG_MTD_CFI_INTELEXT=mCorrect.
Quoted 2 lines
#Because my flash chip data bus is 2 bytes width
CONFIG_MTD_PHYSMAP_BUSWIDTH=2No, your CPU data bus is 4 bytes width (cf.
CFI_B4above) and has two chips on it so
CONFIG_MTD_PHYSMAP_BUSWIDTH=4Signature · 1 line
dwmw2
Signature · 2 lines
Stephane List http://slist.lilotux.net
Am Don, 2003-01-30 um 10.46 schrieb Stephane List:
Quoted 11 lines
Quoted 6 lines · David Woodhouse
Quoted 1 line · Stephane List
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
patchin.sh +3 -3
@@ -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,
Signature · 1 line
Raphaël Hertzog - EIPM SA