[PATCH] ramips: mt7621: add support for Keenetic Viva (KN-1910)
wornandrew
wornandrew at proton.me
Tue May 7 09:53:22 PDT 2024
> I count 15 partitions in your dts not 17.
There are 18 partitions in total (0 to 17).
15 in nand and 3 in virtual_flash.
> What is /dev/mtd17 and how does the original partition table look like?
This is from a running OpenWrt:
root at OpenWrt:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00080000 00020000 "U-Boot"
mtd1: 00080000 00020000 "U-Config"
mtd2: 00080000 00020000 "RF-EEPROM"
mtd3: 01bc0000 00020000 "Firmware_1"
mtd4: 00080000 00020000 "Config_1"
mtd5: 00200000 00020000 "Storage_Legacy"
mtd6: 00040000 00020000 "Dump"
mtd7: 01fc0000 00020000 "Storage_A"
mtd8: 00080000 00020000 "U-State"
mtd9: 00080000 00020000 "U-Config_res"
mtd10: 00080000 00020000 "RF-EEPROM_res"
mtd11: 01bc0000 00020000 "Firmware_2"
mtd12: 00080000 00020000 "Config_2"
mtd13: 02200000 00020000 "Storage_B"
mtd14: 00080000 00020000 "unused"
mtd15: 00400000 00020000 "kernel"
mtd16: 03380000 00020000 "ubi"
mtd17: 041c0000 00020000 "storage"
And the following is an excerpt from vendor's firmware log.
mtd: creating 17 MTD partitions on "MT7621-NAND":
0x000000000000-0x000000080000 : "U-Boot"
0x000000080000-0x000000100000 : "U-Config"
0x000000100000-0x000000180000 : "RF-EEPROM"
0x000000180000-0x000000360000 : "Kernel_1"
0x000000360000-0x000001d40000 : "RootFS_1"
mtd: device 4 (RootFS_1) set to be root filesystem
0x000000180000-0x000001d40000 : "Firmware_1"
0x000001d40000-0x000001dc0000 : "Config_1"
0x000001dc0000-0x000001fc0000 : "Storage_Legacy"
0x000001fc0000-0x000002000000 : "Dump"
0x000002000000-0x000003fc0000 : "Storage_A"
0x000003fc0000-0x000004040000 : "U-State"
0x000004040000-0x0000040c0000 : "U-Config_res"
0x0000040c0000-0x000004140000 : "RF-EEPROM_res"
0x000004140000-0x000005d00000 : "Firmware_2"
0x000005d00000-0x000005d80000 : "Config_2"
0x000005d80000-0x000007f80000 : "Storage_B"
0x000000000000-0x000007f80000 : "Full"
...
Searching for suitable storage partitions...
Found 1st storage partition of size 33292288 bytes
Found 2nd storage partition of size 35651584 bytes
Registering UBI data partitions parser
Concatenating MTD devices:
(0): "Storage_A"
(1): "Storage_B"
into device "NDM combined UBI partition"
1 ndmubipart partitions found on MTD device NDM combined UBI partition
mtd: creating 1 MTD partitions on "NDM combined UBI partition":
0x000000000000-0x0000041c0000 : "Storage"
Merging storage partitions OK
I have omitted overlapping partitions from dts.
Otherwise the layout is identical.
/dev/mtd17 "storage" in OpenWrt is the same as vendor's "Storage".
More information about the openwrt-devel
mailing list