Help to understand error messages (MTD on Samsung NAND chips)

llandre r&d at wawnet.biz
Wed Jul 16 04:51:58 EDT 2003


> >- bash-2.05# eraseall /dev/mtd0
> > Erasing 16 Kibyte @ 0 --  0 % complete.
> > eraseall: /dev/mtd0: MTD Erase failure: Input/output error
> > Erasing 16 Kibyte @ 4000 --  0 % complete.
> > eraseall: /dev/mtd0: MTD Erase failure: Input/output error
> > Erasing 16 Kibyte @ 8000 --  0 % complete.
>
>This message comes either, if you try to erase a bad block, which is not
>likely, as all your blocks would be bad or the erasefunction is not
>successful
>
>Do you use the latest CVS code ?
>If yes, there were a lot of changes in NAND the last few days.

Hi Thomas,

thanks for your quick response. I downloaded and applied the latest 
snapshot (2003-07-15) but, after that, I can't build my own low-level 
driver, derived it from Marius Gröger's edb7312.c, anymore :-(
I have a very strange error about the __init end __exit keywords?!?!
Besides, I had a look at the new MTD's sources and I saw that some 
functions changed the formal parameteres (for example nand_scan).
Here is the errors:

make[4]: Entering directory 
`/Progetti/chameleon/sw/linuxppc_2_4_devel/drivers/mtd/nand'
ppc-linux-gcc -D__KERNEL__ 
-I/Progetti/chameleon/sw/linuxppc_2_4_devel/include 
-I/usr/local/eldk/ppc_4xx/usr/lib/gcc-lib/ppc-linux/2.95.4/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -g -fno-schedule-insns -fno-schedule-insns2 
-I/Progetti/chameleon/sw/linuxppc_2_4_devel/arch/ppc -fsigned-char 
-msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring 
-Wa,-m405   -nostdinc -iwithprefix include 
-DKBUILD_BASENAME=nand  -DEXPORT_SYMTAB -c nand.c
ppc-linux-gcc -D__KERNEL__ 
-I/Progetti/chameleon/sw/linuxppc_2_4_devel/include 
-I/usr/local/eldk/ppc_4xx/usr/lib/gcc-lib/ppc-linux/2.95.4/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -g -fno-schedule-insns -fno-schedule-insns2 
-I/Progetti/chameleon/sw/linuxppc_2_4_devel/arch/ppc -fsigned-char 
-msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring 
-Wa,-m405   -nostdinc -iwithprefix include 
-DKBUILD_BASENAME=nand_ecc  -DEXPORT_SYMTAB -c nand_ecc.c
ppc-linux-gcc -D__KERNEL__ 
-I/Progetti/chameleon/sw/linuxppc_2_4_devel/include 
-I/usr/local/eldk/ppc_4xx/usr/lib/gcc-lib/ppc-linux/2.95.4/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -g -fno-schedule-insns -fno-schedule-insns2 
-I/Progetti/chameleon/sw/linuxppc_2_4_devel/arch/ppc -fsigned-char 
-msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring 
-Wa,-m405   -nostdinc -iwithprefix include 
-DKBUILD_BASENAME=nand_ids  -DEXPORT_SYMTAB -c nand_ids.c
ppc-linux-gcc -D__KERNEL__ 
-I/Progetti/chameleon/sw/linuxppc_2_4_devel/include 
-I/usr/local/eldk/ppc_4xx/usr/lib/gcc-lib/ppc-linux/2.95.4/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -g -fno-schedule-insns -fno-schedule-insns2 
-I/Progetti/chameleon/sw/linuxppc_2_4_devel/arch/ppc -fsigned-char 
-msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring 
-Wa,-m405   -nostdinc -iwithprefix include 
-DKBUILD_BASENAME=ppchameleon  -c -o ppchameleon.o ppchameleon.c
ppchameleon.c:146: parse error before `ppchameleon_init'
ppchameleon.c:147: warning: return-type defaults to `int'
ppchameleon.c: In function `ppchameleon_init':
ppchameleon.c:192: warning: assignment from incompatible pointer type
ppchameleon.c:199: too few arguments to function `nand_scan'
ppchameleon.c:215: structure has no member named `data_cache'
ppchameleon.c:216: structure has no member named `data_cache'
ppchameleon.c:223: structure has no member named `cache_page'
ppchameleon.c: At top level:
ppchameleon.c:249: warning: type defaults to `int' in declaration of 
`module_init'
ppchameleon.c:249: warning: parameter names (without types) in function 
declaration
ppchameleon.c:249: warning: data definition has no type or storage class
ppchameleon.c:254: parse error before `ppchameleon_cleanup'
ppchameleon.c:255: warning: return-type defaults to `int'
ppchameleon.c: In function `ppchameleon_cleanup':
ppchameleon.c:267: structure has no member named `data_cache'
ppchameleon.c:271: warning: control reaches end of non-void function
ppchameleon.c: At top level:
ppchameleon.c:272: warning: type defaults to `int' in declaration of 
`module_exit'
ppchameleon.c:272: warning: parameter names (without types) in function 
declaration
ppchameleon.c:272: warning: data definition has no type or storage class
ppchameleon.c:139: warning: `ppchameleon_device_ready' defined but not used
make[4]: *** [ppchameleon.o] Error 1
make[4]: Leaving directory 
`/Progetti/chameleon/sw/linuxppc_2_4_devel/drivers/mtd/nand'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory 
`/Progetti/chameleon/sw/linuxppc_2_4_devel/drivers/mtd/nand'
make[2]: *** [_subdir_nand] Error 2
make[2]: Leaving directory 
`/Progetti/chameleon/sw/linuxppc_2_4_devel/drivers/mtd'
make[1]: *** [_subdir_mtd] Error 2
make[1]: Leaving directory `/Progetti/chameleon/sw/linuxppc_2_4_devel/drivers'
make: *** [_dir_drivers] Error 2


Any suggestions?


Best regards,

llandre




More information about the linux-mtd mailing list