Overlay FS support (how to enable overlay for new device)

Hi All,

The expected marker sequence 0x1985 (JFFS2) is not found in /dev/mtdblock3. So, Overlay is mounted in /tmp/root. Hence all configurations loaded in overlay are lost in next reboot.

As suggested by @jow, I tried to add following line in Makefile.

$(call prepare_generic_squashfs,$(KDIR)/root.$(1))

# pad to 4k, 8k, 16k, 64k, 128k, 256k and add jffs2 end-of-filesystem mark
define prepare_generic_squashfs
	$(STAGING_DIR_HOST)/bin/padjffs2 $(1) 4 8 16 64 128 256
endef

This invokes "padjffs2" utility with parameters "4k, 8k, 16k, 64k, 128k, 256k". Still, I am receiving this error:
[ 18.460000] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0xfba6 instead

Can anybody help me to debug this issue?? All I need is to make Overlay persistent, It should not be erased in next reboot.

Thanks,
Perumal