[Yaffs] suitable kernel versions

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jesús J. Guerrero Botella
Date:  
To: yaffs
Subject: [Yaffs] suitable kernel versions
Hello.

This is my first message to this list. I hope I am in the right place.
It seems a bit hard to find up to date documentation about yaffs in
the internet.

I am trying to compile it against a 3.4 kernel. Is that too
up-to-date? The error I get is this:

$ LANG= make
make -C /lib/modules/3.4.0/build M=/home/i92guboj/android/yaffs2 modules
make[1]: Entering directory `/home/i92guboj/kernel/linux-3.4'
CC [M] /home/i92guboj/android/yaffs2/yaffs_mtdif.o
CC [M] /home/i92guboj/android/yaffs2/yaffs_mtdif2_multi.o
/home/i92guboj/android/yaffs2/yaffs_mtdif.c: In function 'nandmtd_erase_block':
/home/i92guboj/android/yaffs2/yaffs_mtdif.c:42:14: error: 'struct
mtd_info' has no member named 'erase'
make[2]: *** [/home/i92guboj/android/yaffs2/yaffs_mtdif.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/i92guboj/android/yaffs2/yaffs_mtdif2_multi.c: In function
'nandmtd2_write_chunk_tags':
/home/i92guboj/android/yaffs2/yaffs_mtdif2_multi.c:90:14: error:
'struct mtd_info' has no member named 'write_oob'
/home/i92guboj/android/yaffs2/yaffs_mtdif2_multi.c: In function
'nandmtd2_read_chunk_tags':
/home/i92guboj/android/yaffs2/yaffs_mtdif2_multi.c:145:15: error:
'struct mtd_info' has no member named 'read'
/home/i92guboj/android/yaffs2/yaffs_mtdif2_multi.c:154:15: error:
'struct mtd_info' has no member named 'read_oob'
/home/i92guboj/android/yaffs2/yaffs_mtdif2_multi.c: In function
'nandmtd2_mark_block_bad':
/home/i92guboj/android/yaffs2/yaffs_mtdif2_multi.c:218:9: error:
'struct mtd_info' has no member named 'block_markbad'
/home/i92guboj/android/yaffs2/yaffs_mtdif2_multi.c: In function
'nandmtd2_query_block':
/home/i92guboj/android/yaffs2/yaffs_mtdif2_multi.c:237:9: error:
'struct mtd_info' has no member named 'block_isbad'
make[2]: *** [/home/i92guboj/android/yaffs2/yaffs_mtdif2_multi.o] Error 1
make[1]: *** [_module_/home/i92guboj/android/yaffs2] Error 2
make[1]: Leaving directory `/home/i92guboj/kernel/linux-3.4'
make: *** [modules] Error 2

I guess it's missing something in the mtd foundations, in my kernel
sources. But I am not really familiar with that part of the kernel.
Should I just pick another kernel, wait or try to hack something
myself (guidance on where to look is appreciated ;) ).

Thank you :)

--
Jesús Guerrero Botella