Size an image against the firmware partition. The 128 MiB NAND also holds the bootloader, radio calibration and other data. The second 40 MiB region, firmware2, is marked read-only. Its capacity cannot be added to the first.
Match the case label to the running system
This map comes from the A1 device tree in OpenWrt 25.12.6. On a router already running OpenWrt, use SSH for these read-only checks. Compare model, board_name and release. Stop if the hardware revision differs.
ubus call system board
cat /proc/mtd
df -h /overlay
Find firmware by name. In the size column, 02800000 is a hexadecimal byte count equal to 40 MiB. erasesize describes an erase block. Child partitions can overlap their parent, so summing every line can double-count space.
Partition · Start offset · Size
Bootloader 0x0 0.5 MiBconfig 0x80000 0.5 MiBfactory 0x100000 0.25 MiBconfig2 0x140000 0.25 MiBfirmware 0x180000 40 MiBprivate 0x2980000 32 MiBfirmware2 0x4980000 40 MiBmydlink 0x7180000 6 MiBreserved 0x7780000 8.5 MiB

OpenWrt 25.12.6 · mt7621_dlink_dir-3060-a1.dts
How much room is left for packages?
Check Available in the last output and confirm the mount is /overlay. If space is tight, trim optional packages. If the mount is absent, use df -h to locate writable storage. If the map differs, keep the running system and check its exact release. Leave factory intact and never copy mtd numbers from another unit. Even a smaller image needs the right format. These checks need no rollback.
How to identify SquashFS, the writable layer and /rom on OpenWrt
Comments