OpenWRT on DLINK DWR-921 C3

Hello!

I have the uBoot variant of the DWR-921, I compiled and flashed the firmware, but seems like mount_root just ignores the MTD layout and no overlayfs is being created.

To mention - my rootfs mtd block does not contain the 0xdeadc0de jffs2 mark and I couldn't find the reason for which nothing occurs on pre-init on first boot.

It seems like I have no overlayfs at all (not even a temp one).

dmesg (trimmed irrelevant parts) -

[ 5.176947] 5 fixed-partitions partitions found on MTD device spi0.0
[ 5.189617] Creating 5 MTD partitions on "spi0.0":
[ 5.199180] 0x000000000000-0x000000030000 : "uboot"
[ 5.209830] 0x000000030000-0x000000040000 : "uboot-env"
[ 5.221141] 0x000000040000-0x000000050000 : "config"
[ 5.231959] 0x000000050000-0x000000ff0000 : "firmware"
[ 5.245817] 2 uimage-fw partitions found on MTD device firmware
[ 5.257674] Creating 2 MTD partitions on "firmware":
[ 5.267586] 0x000000000000-0x0000003df4b9 : "kernel"
[ 5.278403] 0x0000003df4b9-0x000000fa0000 : "rootfs"
[ 5.289186] mtd: device 5 (rootfs) set to be root filesystem
[ 5.301970] 1 squashfs-split partitions found on MTD device rootfs
[ 5.314359] 0x000000653000-0x000000fa0000 : "rootfs_data"
[ 5.326006] 0x000000ff0000-0x000001000000 : "config2"

df -

Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 29932 64 29868 0% /tmp
tmpfs 512 0 512 0% /dev

/proc/mtd -

dev: size erasesize name
mtd0: 00030000 00001000 "uboot"
mtd1: 00010000 00001000 "uboot-env"
mtd2: 00010000 00001000 "config"
mtd3: 00fa0000 00001000 "firmware"
mtd4: 003df4b9 00001000 "kernel"
mtd5: 00bc0b47 00001000 "rootfs"
mtd6: 0094d000 00001000 "rootfs_data"
mtd7: 00010000 00001000 "config2"

I can format /dev/mtdblock6 and mount it, but it doesn't help since I couldn't trigger the overlayfs thing.

Any help will be appreciated :smiley: