Skip to content
Contents
GuidesOpenWrt

D-Link DIR-3060 A1 flash layout: why firmware gets 40 MiB out of 128 MiB

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.

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 MiB
  • config 0x80000 0.5 MiB
  • factory 0x100000 0.25 MiB
  • config2 0x140000 0.25 MiB
  • firmware 0x180000 40 MiB
  • private 0x2980000 32 MiB
  • firmware2 0x4980000 40 MiB
  • mydlink 0x7180000 6 MiB
  • reserved 0x7780000 8.5 MiB
DIR-3060 A1 · firmware · firmware2 · reg
In the device tree, reg gives the start and length. Of the two firmware entries, only firmware2 carries read-only.

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

Explore hardware

Devices mentioned

Comments