[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;


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?

-------------- 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

More information about the openwrt-devel mailing list