UBIFS on kernel 2.6.24?
David Jander
david.jander at protonic.nl
Mon Nov 23 09:10:40 EST 2009
Hi all,
I am forced to use this ancient kernel (2.6.24), but I also need UBIFS.
Our boards have 1GiB NAND flash chips with 2k pages.
Until now I have been testing with vanilla MTD/UBI/UBIFS from that kernel,
and (not entirely unexpected) now errors start to appear, which look like this:
$ cd /etc
$ ls -l
ls: reading directory .: Structure needs cleaning
And the kernel messages look like this:
[10871.725906] UBIFS error (pid 10801): ubifs_check_node: bad magic 0x38f2aa8b, expected 0x6101831
[10871.736785] UBIFS error (pid 10801): ubifs_check_node: bad node at LEB 6259:66568
[10871.745344] UBIFS error (pid 10801): ubifs_read_node: expected node type 2
[10871.753209] UBIFS error (pid 10801): ubifs_readdir: cannot find next direntry, error -117
I did not bother turning on more debug messages yet, since I think I am most probably missing some important bugfixes in my version of
MTD/UBI/UBIFS. Btw, is there some sort of version number in some file somewhere, so I can check wich version I am actually using?
I am aware of this git repository:
http://git.infradead.org/users/dedekind/ubifs-v2.6.24.git
But I'd like to know how I can get this version into my kernel. Will it work if I just copy the relevant files?
Is there a patch against 2.6.24 that I can download somewhere?
Do I need only UBIFS, or do I also need all of MTD?
I have a custom NAND-flash driver, do I likely need to change it, or should it just work with the new version of MTD?
Thanks for any advice.
Best regards,
--
David Jander
Protonic Holland.
More information about the linux-mtd
mailing list