I have an ASUS RT-N56U B1 around that I'm not using anymore because the stock firmware has not been updated for years, and I there are some issues with other alternative firmwares.
I like the hardware quite a lot though, so, I'm trying to get LEDE/OpenWrt to work on this device. As it is a MediaTek MT7621, this should not be too hard.
I've found pieces of the puzzle already in various places, but right now I'm struggling a bit with the flash layout. First of all, should the OpenWrt flash layout be the same as the layout of the stock firmware (in terms of partition sizes and locations)?
I've found the following on the stock partitions:
cat /proc/mtd
mtd0: 00030000 00010000 "Bootloader"
mtd1: 00010000 00010000 "nvram"
mtd2: 00010000 00010000 "Factory"
mtd3: 00eb0000 00010000 "linux"
mtd4: 00d7a500 00010000 "rootfs"
mtd5: 00100000 00010000 "jffs2"
mtd6: 01000000 00010000 "ALL"
And another alternative firmware (Padavan) is giving me this in the dmesg:
0x000000000000-0x000000030000 : "Bootloader"
0x000000030000-0x000000040000 : "Config"
0x000000040000-0x000000050000 : "Factory"
0x000000050000-0x000000181de0 : "Kernel"
0x000000181de0-0x000000fc0000 : "RootFS"
0x000000fc0000-0x000001000000 : "Storage"
0x000000050000-0x000000fc0000 : "Firmware_Stub"
How do I put this into the .dts device tree file? I guess it's the start and the size of the partitions? But what do I do with the 'ALL' partition which seems to span multiple other partitions? And do the partition labels matter for OpenWrt? Which labels are required?
partition@?{
label = "nvram";
reg = <??>;
read-only;
};