On Thursday, June 02, 2005 7:09 PM [GMT+1=CET], wang dengyi wrote: > I have arm board with a Toshiba 128MB NAND flash which > is 528bytes/page. > I downloaded the newest yaffs code and patch it to > linux kernel 2.6.11.10. I select yafss and mtd support > from muneconfig. After make, I got the error messages > at the end: > > CHK include/linux/version.h > make[1]: `arch/arm/kernel/asm-offsets.s' is up to > date. > make[1]: `include/asm-arm/mach-types.h' is up to date. > CHK include/linux/compile.h > CHK usr/initramfs_list > CC fs/yaffs/yaffs_fs.o > fs/yaffs/yaffs_fs.c:167: warning: initialization from > incompatible pointer type > fs/yaffs/yaffs_fs.c: In function > `yaffs_internal_read_super': > fs/yaffs/yaffs_fs.c:1279: warning: `dev' might be used > uninitialized in this function > fs/yaffs/yaffs_fs.c: At top level: > fs/yaffs/yaffs_fs.c:689: warning: `yaffs_file_read' > defined but not used > fs/yaffs/yaffs_fs.c:1491: warning: > `yaffs_internal_read_super_ram' defined but not used > fs/yaffs/yaffs_fs.c:1561: warning: > `my_proc_ram_write_entry' defined but not used > fs/yaffs/yaffs_fs.c:1635: warning: > `yaffs_proc_ram_write' defined but not used > CC fs/yaffs/yaffs_mtdif.o > LD fs/yaffs/yaffs.o > LD fs/yaffs/built-in.o > LD fs/built-in.o > GEN .version > CHK include/linux/compile.h > UPD include/linux/compile.h > CC init/version.o > LD init/built-in.o > LD .tmp_vmlinux1 > fs/built-in.o(.text+0x7dac0): In function > `yaffs_internal_read_super': >> undefined reference to `nandmtd_WriteChunkToNAND' > fs/built-in.o(.text+0x7dac4): In function > `yaffs_internal_read_super': >> undefined reference to `nandmtd_ReadChunkFromNAND' > fs/built-in.o(.text+0x7dac8): In function > `yaffs_internal_read_super': >> undefined reference to `nandmtd_EraseBlockInNAND' > fs/built-in.o(.text+0x7dacc): In function > `yaffs_internal_read_super': >> undefined reference to `nandmtd_InitialiseNAND' > make: *** [.tmp_vmlinux1] Error 1 > > > yaffs_mtdif does compile which include the 4 undefined > functions. But why does it complain about the 4 > functions. See http://www.aleph1.co.uk/pipermail/yaffs/2005q2/001131.html Better to start with the Frank Rowand patches, and then manually apply later patches from CVS if necessary. See archives around 2004-12-16. Kind regards, Karl Olsen