[prev in list] [next in list] [prev in thread] [next in thread] 

List:       yaffs
Subject:    RE: [Yaffs] YAFFS2 on Linux checked in
From:       James Newell <jnewell () wgate ! com>
Date:       2004-12-17 16:01:57
Message-ID: 42C66B69F1F5D411B99300508BAC45460DB095CA () mail ! tvol ! net
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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
 
    


[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [Yaffs] YAFFS2 on Linux checked in</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Using the attached Makefile (for a Montavista 2.4.18 xscale kernel) \
from the original yaffs Makefile.</FONT> <BR><FONT SIZE=2>I don't have the new MTD \
working with this kernel (I don't have a choice to upgrade to a new kernel \
either).&nbsp; So, I patched the yaffs_fs.c file, and only used the yaffs_mtdif.c \
(not sure if this will break anything yet).&nbsp; </FONT></P>

<P><FONT SIZE=2>It compiles now with warnings.&nbsp; I will look into the warnings \
first then give it a try on my target machine.</FONT> </P>

<P><FONT SIZE=2>I've included the small patch, and the Makefile (you will have to \
modify it to work in your build system).</FONT> </P>

<P><FONT SIZE=2>Jim Newell</FONT>
</P>

<P><FONT SIZE=2>[jnewell@ya yaffs2]$ make</FONT>
<BR><FONT SIZE=2>xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 \
-DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED \
-DCONFIG_YAFFS_USE_GENER</FONT></P>

<P><FONT SIZE=2>IC_RW&nbsp;&nbsp;&nbsp; -DCONFIG_SHORT_NAMES_IN_RAM \
-DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD&nbsp;&nbsp; \
-I../../kernel/include -O2 -Wall yaffs_fs.c -o</FONT></P>

<P><FONT SIZE=2>yaffs_fs.o</FONT>
<BR><FONT SIZE=2>yaffs_fs.c: In function `yaffs_internal_read_super':</FONT>
<BR><FONT SIZE=2>yaffs_fs.c:1411: warning: unsigned int format, pointer arg (arg \
2)</FONT> <BR><FONT SIZE=2>yaffs_fs.c:1412: warning: unsigned int format, pointer arg \
(arg 2)</FONT> <BR><FONT SIZE=2>yaffs_fs.c:1413: warning: unsigned int format, \
pointer arg (arg 2)</FONT> <BR><FONT SIZE=2>yaffs_fs.c:1414: warning: unsigned int \
format, pointer arg (arg 2)</FONT> <BR><FONT SIZE=2>yaffs_fs.c:1415: warning: \
unsigned int format, pointer arg (arg 2)</FONT> <BR><FONT SIZE=2>yaffs_fs.c:1512: \
warning: assignment from incompatible pointer type</FONT> <BR><FONT \
SIZE=2>yaffs_fs.c:1526: warning: assignment from incompatible pointer type</FONT> \
<BR><FONT SIZE=2>yaffs_fs.c:1296: warning: `dev' might be used uninitialized in this \
function</FONT> <BR><FONT SIZE=2>yaffs_fs.c: At top level:</FONT>
<BR><FONT SIZE=2>yaffs_fs.c:1586: warning: `yaffs_internal_read_super_ram' defined \
but not used</FONT> <BR><FONT SIZE=2>yaffs_fs.c:1590: warning: \
`yaffs_internal_read_super_mtd' defined but not used</FONT> <BR><FONT \
SIZE=2>yaffs_fs.c:1595: warning: `yaffs2_internal_read_super_ram' defined but not \
used</FONT> <BR><FONT SIZE=2>yaffs_fs.c:1599: warning: \
`yaffs2_internal_read_super_mtd' defined but not used</FONT> <BR><FONT \
SIZE=2>yaffs_fs.c:1727: warning: `my_proc_ram_write_entry' defined but not \
used</FONT> <BR><FONT SIZE=2>yaffs_fs.c:1801: warning: `yaffs_proc_ram_write' defined \
but not used</FONT> <BR><FONT SIZE=2>xscale_be-gcc -c -D__KERNEL__ -DMODULE \
-DCONFIG_YAFFS_YAFFS2 -DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED \
-DCONFIG_YAFFS_USE_GENER</FONT></P>

<P><FONT SIZE=2>IC_RW&nbsp;&nbsp;&nbsp; -DCONFIG_SHORT_NAMES_IN_RAM \
-DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD&nbsp;&nbsp; \
-I../../kernel/include -O2 -Wall yaffs_guts.c -</FONT></P>

<P><FONT SIZE=2>o yaffs_guts.o</FONT>
<BR><FONT SIZE=2>yaffs_guts.c: In function `yaffs_FlushFilesChunkCache':</FONT>
<BR><FONT SIZE=2>yaffs_guts.c:3491: warning: `lowest' might be used uninitialized in \
this function</FONT> <BR><FONT SIZE=2>yaffs_guts.c:3494: warning: `chunkWritten' \
might be used uninitialized in this function</FONT> <BR><FONT SIZE=2>yaffs_guts.c: At \
top level:</FONT> <BR><FONT SIZE=2>yaffs_guts.c:68: warning: `yaffs_CountBits' \
defined but not used</FONT> <BR><FONT SIZE=2>yaffs_guts.c:2015: warning: \
`yaffs_CheckObjectHashSanity' defined but not used</FONT> <BR><FONT \
SIZE=2>yaffs_guts.c:598: warning: `yaffs_HandleReadDataError' defined but not \
used</FONT> <BR><FONT SIZE=2>yaffs_guts.c:584: warning: `yaffs_RewriteBufferedBlock' \
defined but not used</FONT> <BR><FONT SIZE=2>yaffs_guts.c:613: warning: \
`yaffs_CheckWrittenBlock' defined but not used</FONT> <BR><FONT \
SIZE=2>yaffs_guts.c:2313: warning: `yaffs_DumpBlockStats' defined but not used</FONT> \
<BR><FONT SIZE=2>xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 \
-DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED \
-DCONFIG_YAFFS_USE_GENER</FONT></P>

<P><FONT SIZE=2>IC_RW&nbsp;&nbsp;&nbsp; -DCONFIG_SHORT_NAMES_IN_RAM \
-DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD&nbsp;&nbsp; \
-I../../kernel/include -O2 -Wall yaffs_ramem.c</FONT></P>

<P><FONT SIZE=2>-o yaffs_ramem.o</FONT>
<BR><FONT SIZE=2>xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 \
-DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED \
-DCONFIG_YAFFS_USE_GENER</FONT></P>

<P><FONT SIZE=2>IC_RW&nbsp;&nbsp;&nbsp; -DCONFIG_SHORT_NAMES_IN_RAM \
-DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD&nbsp;&nbsp; \
-I../../kernel/include -O2 -Wall yaffs_mtdif.c</FONT></P>

<P><FONT SIZE=2>-o yaffs_mtdif.o</FONT>
<BR><FONT SIZE=2>xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 \
-DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED \
-DCONFIG_YAFFS_USE_GENER</FONT></P>

<P><FONT SIZE=2>IC_RW&nbsp;&nbsp;&nbsp; -DCONFIG_SHORT_NAMES_IN_RAM \
-DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD&nbsp;&nbsp; \
-I../../kernel/include -O2 -Wall yaffs_ecc.c -o</FONT></P>

<P><FONT SIZE=2>&nbsp;yaffs_ecc.o</FONT>
<BR><FONT SIZE=2>xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 \
-DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED \
-DCONFIG_YAFFS_USE_GENER</FONT></P>

<P><FONT SIZE=2>IC_RW&nbsp;&nbsp;&nbsp; -DCONFIG_SHORT_NAMES_IN_RAM \
-DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD&nbsp;&nbsp; \
-I../../kernel/include -O2 -Wall yaffs_packedta</FONT></P>

<P><FONT SIZE=2>gs1.c -o yaffs_packedtags1.o</FONT>
<BR><FONT SIZE=2>xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 \
-DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED \
-DCONFIG_YAFFS_USE_GENER</FONT></P>

<P><FONT SIZE=2>IC_RW&nbsp;&nbsp;&nbsp; -DCONFIG_SHORT_NAMES_IN_RAM \
-DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD&nbsp;&nbsp; \
-I../../kernel/include -O2 -Wall yaffs_packedta</FONT></P>

<P><FONT SIZE=2>gs2.c -o yaffs_packedtags2.o</FONT>
<BR><FONT SIZE=2>yaffs_packedtags2.c: In function `yaffs_UnpackTags2':</FONT>
<BR><FONT SIZE=2>yaffs_packedtags2.c:45: warning: passing arg 3 of \
`yaffs_ECCCorrectOther' discards qualifiers from pointer target type</FONT> <BR><FONT \
SIZE=2>xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 \
-DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED \
-DCONFIG_YAFFS_USE_GENER</FONT></P>

<P><FONT SIZE=2>IC_RW&nbsp;&nbsp;&nbsp; -DCONFIG_SHORT_NAMES_IN_RAM \
-DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD&nbsp;&nbsp; \
-I../../kernel/include -O2 -Wall yaffs_ramem2k.</FONT></P>

<P><FONT SIZE=2>c -o yaffs_ramem2k.o</FONT>
<BR><FONT SIZE=2>xscale_be-gcc -c -D__KERNEL__ -DMODULE -DCONFIG_YAFFS_YAFFS2 \
-DCONFIG_YAFFS2_RAM_ENABLED -DCONFIG_YAFFS_MTD_ENABLED \
-DCONFIG_YAFFS_USE_GENER</FONT></P>

<P><FONT SIZE=2>IC_RW&nbsp;&nbsp;&nbsp; -DCONFIG_SHORT_NAMES_IN_RAM \
-DCONFIG_YAFFS_USE_NANDECC -DCONFIG_YAFFS_USE_OLD_MTD&nbsp;&nbsp; \
-I../../kernel/include -O2 -Wall yaffs_tagscomp</FONT></P>

<P><FONT SIZE=2>at.c -o yaffs_tagscompat.o</FONT>
<BR><FONT SIZE=2>yaffs_tagscompat.c:484: warning: `yaffs_CheckWrittenBlock' defined \
but not used</FONT> <BR><FONT SIZE=2>yaffs_tagscompat.c:488: warning: \
`yaffs_HandleWriteChunkOk' defined but not used</FONT> <BR><FONT \
SIZE=2>yaffs_tagscompat.c:492: warning: `yaffs_HandleUpdateChunk' defined but not \
used</FONT> <BR><FONT SIZE=2>yaffs_tagscompat.c:496: warning: \
`yaffs_HandleWriteChunkError' defined but not used</FONT> <BR><FONT \
SIZE=2>yaffs_tagscompat.c:311: warning: `yaffs_CheckChunkErased' defined but not \
used</FONT> <BR><FONT SIZE=2>yaffs_tagscompat.c:509: warning: `yaffs_VerifyCompare' \
defined but not used</FONT> <BR><FONT SIZE=2>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</FONT></P>

<P><FONT SIZE=2>s_tagscompat.o -o yaffs2.o</FONT>
<BR><FONT SIZE=2>mkdir -p /usr/proj/ojopvp/dev_jnewell/utils/install-bin</FONT>
<BR><FONT SIZE=2>cp -p yaffs2.o \
/usr/proj/ojopvp/dev_jnewell/utils/install-bin&nbsp;&nbsp; </FONT> </P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Charles Manning [<A \
HREF="mailto:manningc2@actrix.gen.nz">mailto:manningc2@actrix.gen.nz</A>] </FONT> \
<BR><FONT SIZE=2>Sent: Thursday, December 16, 2004 11:47 PM</FONT> <BR><FONT \
SIZE=2>To: yaffs@lists.aleph1.co.uk</FONT> <BR><FONT SIZE=2>Subject: [Yaffs] YAFFS2 \
on Linux checked in</FONT> </P>

<P><FONT SIZE=2>The YAFFS2 for Linux stuff to work with mtd is now checked in.</FONT>
</P>

<P><FONT SIZE=2>I have tested this with a mtd &quot;device&quot; that is actually ram \
dressed up to look like nand.</FONT> </P>

<P><FONT SIZE=2>Let the sports begin!</FONT>
</P>

<P><FONT SIZE=2>-- Charles</FONT>
</P>

<P><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>yaffs mailing list</FONT>
<BR><FONT SIZE=2>yaffs@stoneboat.aleph1.co.uk</FONT>
<BR><FONT SIZE=2><A HREF="http://stoneboat.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs" \
TARGET="_blank">http://stoneboat.aleph1.co.uk/cgi-bin/mailman/listinfo/yaffs</A></FONT>
 </P>

<P><FONT SIZE=2>---</FONT>
<BR><FONT SIZE=2>Incoming mail is certified Virus Free.</FONT>
<BR><FONT SIZE=2>Checked by AVG anti-virus system (<A HREF="http://www.grisoft.com" \
TARGET="_blank">http://www.grisoft.com</A>).</FONT> <BR><FONT SIZE=2>Version: 6.0.804 \
/ Virus Database: 546 - Release Date: 11/30/2004</FONT> <BR><FONT \
SIZE=2>&nbsp;</FONT> <BR>
<BR><FONT SIZE=2>---<BR>
Outgoing mail is certified Virus Free.<BR>
Checked by AVG anti-virus system (<A HREF="http://www.grisoft.com" \
                TARGET="_blank">http://www.grisoft.com</A>).<BR>
Version: 6.0.804 / Virus Database: 546 - Release Date: 11/30/2004<BR>
</FONT>&nbsp;
<BR><FONT SIZE=2>&nbsp; &nbsp;</FONT> 
</P>

<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"></FONT><FONT FACE="Arial" SIZE=2 \
COLOR="#000000"></FONT>&nbsp;

</BODY>
</HTML>


["Makefile" (application/octet-stream)]
["yaffs_fs.diff" (application/octet-stream)]

Index: yaffs_fs.c
===================================================================
RCS file: /home/aleph1/cvs/yaffs2/yaffs_fs.c,v
retrieving revision 1.1
diff -c -r1.1 yaffs_fs.c
*** yaffs_fs.c	17 Dec 2004 04:39:04 -0000	1.1
--- yaffs_fs.c	17 Dec 2004 15:58:28 -0000
***************
*** 1413,1420 ****
  		T(YAFFS_TRACE_OS,(" write %x\n",mtd->write));
  		T(YAFFS_TRACE_OS,(" readoob %x\n",mtd->read_oob));
  		T(YAFFS_TRACE_OS,(" writeoob %x\n",mtd->write_oob));
! 		T(YAFFS_TRACE_OS,(" block_isbad %x\n",mtd->block_isbad));
  		T(YAFFS_TRACE_OS,(" block_markbad %x\n",mtd->block_markbad));
  		T(YAFFS_TRACE_OS,(" oobblock %d\n",mtd->oobblock));
  		T(YAFFS_TRACE_OS,(" oobsize %d\n",mtd->oobsize));
  		T(YAFFS_TRACE_OS,(" erasesize %d\n",mtd->erasesize));
--- 1413,1422 ----
  		T(YAFFS_TRACE_OS,(" write %x\n",mtd->write));
  		T(YAFFS_TRACE_OS,(" readoob %x\n",mtd->read_oob));
  		T(YAFFS_TRACE_OS,(" writeoob %x\n",mtd->write_oob));
! #ifndef CONFIG_YAFFS_USE_OLD_MTD		
!         T(YAFFS_TRACE_OS,(" block_isbad %x\n",mtd->block_isbad));
  		T(YAFFS_TRACE_OS,(" block_markbad %x\n",mtd->block_markbad));
+ #endif
  		T(YAFFS_TRACE_OS,(" oobblock %d\n",mtd->oobblock));
  		T(YAFFS_TRACE_OS,(" oobsize %d\n",mtd->oobsize));
  		T(YAFFS_TRACE_OS,(" erasesize %d\n",mtd->erasesize));
***************
*** 1424,1431 ****
--- 1426,1435 ----
  		{
  			// Check for version 2 style functions
  			if(!mtd->erase ||
+ #ifndef CONFIG_YAFFS_USE_OLD_MTD
  			   !mtd->block_isbad ||
  			   !mtd->block_markbad ||
+ #endif
  			   !mtd->read  ||
  			   !mtd->write ||
  #ifndef CONFIG_YAFFS_USE_OLD_MTD


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic