[OpenWrt-Devel] fstools: MTD driver - deadc0de marker
Karl Vogel
karl.vogel at gmail.com
Wed Mar 2 09:46:59 EST 2016
I ran into an issue on a platform using a JFFS2 partition where the
overlayfs mount was done with tmpfs. After some investigation the issue
seemed to happen in the mount_root binary, more specifically during the
mtd_volume_identify() function.
The code does the check:
if (v->type == UBIVOLUME && deadc0de == 0xffffffff) {
return FS_JFFS2;
}
see
http://git.openwrt.org/project/fstools.git?p=project/fstools.git;a=blob;f=libfstools/mtd.c;h=156d166b5a2cc92f124852180782e5c2826be881;hb=HEAD#l215
However, in my case the volume type is NANDFLASH. Adding a v->type ==
NANDFLASH in this place, makes my system work, but I'm not entirely sure
why this deadc0de check was restricted to UBIVOLUME only?! Would a check
for NANDFLASH be acceptable here?
Regards,
Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160302/69c7a944/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list