package/ubox: fix jffs2 handling on MTD devices emulated by gluebi
authorGabor Juhos <juhosg@openwrt.org>
Tue, 5 Nov 2013 16:31:12 +0000 (16:31 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 5 Nov 2013 16:31:12 +0000 (16:31 +0000)
commit2b988981abd55bde228ee5b8df75d11c08c9195c
tree746ebed49e0579977f8895abbdb689550744542c
parentd0e4d15e9fdab551f404630c9160fcbac53a3341
package/ubox: fix jffs2 handling on MTD devices emulated by gluebi

The jffs2_ready() function in mount_root.c checks
the presence of various JFFS2 markers at the start
of a given MTD device. The function works on NOR
flashes because JFFS2 puts 'cleanmarker' nodes at
the start of freshly erased blocks.

However if jffs2 is used on a MTD device emulated
by the gluebi layer, the 'cleanmarker' nodes are
not present and the jffs2_ready() function fails.

Update the code to handle jffs2 correctly even on
MTD devices emulated by the gluebi layer.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38654
package/system/ubox/Makefile
package/system/ubox/patches/0001-mount_root-fix-jffs2-handling-on-MTD-devices-emulate.patch [new file with mode: 0644]