Using the attached Makefile (for a Montavista 2.4.18 xscale kernel) from the original yaffs Makefile. I don't have the new MTD working with this kernel (I don't have a choice to upgrade to a new kernel either). So, I patched the yaffs_fs.c file, and only used the yaffs_mtdif.c (not sure if this will break anything yet). It compiles now with warnings. I will look into the warnings first then give it a try on my target machine. I've included the small patch, and the Makefile (you will have to modify it to work in your build system). Jim Newell [jnewell@ya yaffs2]$ make xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 -DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED -DCONFIG_YAFFS_USE_GENER IC_RW -DCONFIG_SHORT_NAMES_IN_RAM -DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD -I../../kernel/include -O2 -Wall yaffs_fs.c -o yaffs_fs.o yaffs_fs.c: In function `yaffs_internal_read_super': yaffs_fs.c:1411: warning: unsigned int format, pointer arg (arg 2) yaffs_fs.c:1412: warning: unsigned int format, pointer arg (arg 2) yaffs_fs.c:1413: warning: unsigned int format, pointer arg (arg 2) yaffs_fs.c:1414: warning: unsigned int format, pointer arg (arg 2) yaffs_fs.c:1415: warning: unsigned int format, pointer arg (arg 2) yaffs_fs.c:1512: warning: assignment from incompatible pointer type yaffs_fs.c:1526: warning: assignment from incompatible pointer type yaffs_fs.c:1296: warning: `dev' might be used uninitialized in this function yaffs_fs.c: At top level: yaffs_fs.c:1586: warning: `yaffs_internal_read_super_ram' defined but not used yaffs_fs.c:1590: warning: `yaffs_internal_read_super_mtd' defined but not used yaffs_fs.c:1595: warning: `yaffs2_internal_read_super_ram' defined but not used yaffs_fs.c:1599: warning: `yaffs2_internal_read_super_mtd' defined but not used yaffs_fs.c:1727: warning: `my_proc_ram_write_entry' defined but not used yaffs_fs.c:1801: warning: `yaffs_proc_ram_write' defined but not used xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 -DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED -DCONFIG_YAFFS_USE_GENER IC_RW -DCONFIG_SHORT_NAMES_IN_RAM -DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD -I../../kernel/include -O2 -Wall yaffs_guts.c - o yaffs_guts.o yaffs_guts.c: In function `yaffs_FlushFilesChunkCache': yaffs_guts.c:3491: warning: `lowest' might be used uninitialized in this function yaffs_guts.c:3494: warning: `chunkWritten' might be used uninitialized in this function yaffs_guts.c: At top level: yaffs_guts.c:68: warning: `yaffs_CountBits' defined but not used yaffs_guts.c:2015: warning: `yaffs_CheckObjectHashSanity' defined but not used yaffs_guts.c:598: warning: `yaffs_HandleReadDataError' defined but not used yaffs_guts.c:584: warning: `yaffs_RewriteBufferedBlock' defined but not used yaffs_guts.c:613: warning: `yaffs_CheckWrittenBlock' defined but not used yaffs_guts.c:2313: warning: `yaffs_DumpBlockStats' defined but not used xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 -DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED -DCONFIG_YAFFS_USE_GENER IC_RW -DCONFIG_SHORT_NAMES_IN_RAM -DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD -I../../kernel/include -O2 -Wall yaffs_ramem.c -o yaffs_ramem.o xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 -DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED -DCONFIG_YAFFS_USE_GENER IC_RW -DCONFIG_SHORT_NAMES_IN_RAM -DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD -I../../kernel/include -O2 -Wall yaffs_mtdif.c -o yaffs_mtdif.o xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 -DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED -DCONFIG_YAFFS_USE_GENER IC_RW -DCONFIG_SHORT_NAMES_IN_RAM -DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD -I../../kernel/include -O2 -Wall yaffs_ecc.c -o yaffs_ecc.o xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 -DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED -DCONFIG_YAFFS_USE_GENER IC_RW -DCONFIG_SHORT_NAMES_IN_RAM -DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD -I../../kernel/include -O2 -Wall yaffs_packedta gs1.c -o yaffs_packedtags1.o xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 -DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED -DCONFIG_YAFFS_USE_GENER IC_RW -DCONFIG_SHORT_NAMES_IN_RAM -DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD -I../../kernel/include -O2 -Wall yaffs_packedta gs2.c -o yaffs_packedtags2.o yaffs_packedtags2.c: In function `yaffs_UnpackTags2': yaffs_packedtags2.c:45: warning: passing arg 3 of `yaffs_ECCCorrectOther' discards qualifiers from pointer target type xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 -DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED -DCONFIG_YAFFS_USE_GENER IC_RW -DCONFIG_SHORT_NAMES_IN_RAM -DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD -I../../kernel/include -O2 -Wall yaffs_ramem2k. c -o yaffs_ramem2k.o xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 -DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED -DCONFIG_YAFFS_USE_GENER IC_RW -DCONFIG_SHORT_NAMES_IN_RAM -DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD -I../../kernel/include -O2 -Wall yaffs_tagscomp at.c -o yaffs_tagscompat.o yaffs_tagscompat.c:484: warning: `yaffs_CheckWrittenBlock' defined but not used yaffs_tagscompat.c:488: warning: `yaffs_HandleWriteChunkOk' defined but not used yaffs_tagscompat.c:492: warning: `yaffs_HandleUpdateChunk' defined but not used yaffs_tagscompat.c:496: warning: `yaffs_HandleWriteChunkError' defined but not used yaffs_tagscompat.c:311: warning: `yaffs_CheckChunkErased' defined but not used yaffs_tagscompat.c:509: warning: `yaffs_VerifyCompare' defined but not used xscale_be-ld -r yaffs_fs.o yaffs_guts.o yaffs_ramem.o yaffs_mtdif.o yaffs_ecc.o yaffs_packedtags1.o yaffs_packedtags2.o yaffs_ramem2k.o yaff s_tagscompat.o -o yaffs2.o mkdir -p /usr/proj/ojopvp/dev_jnewell/utils/install-bin cp -p yaffs2.o /usr/proj/ojopvp/dev_jnewell/utils/install-bin -----Original Message----- From: Charles Manning [mailto:manningc2@actrix.gen.nz] Sent: Thursday, December 16, 2004 11:47 PM To: yaffs@lists.aleph1.co.uk Subject: [Yaffs] YAFFS2 on Linux checked in The YAFFS2 for Linux stuff to work with mtd is now checked in. I have tested this with a mtd "device" that is actually ram dressed up to look like nand. Let the sports begin! -- Charles _______________________________________________ yaffs mailing list yaffs@stoneboat.aleph1.co.uk http://stoneboat.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004