First, ask where this board boots from and where wireless calibration and factory identity data are stored, then determine the protection scope. Bootloaders and factory calibration data typically require protection; regions that carry normal firmware upgrades must follow the image and upgrade design specific to the device model. Do not copy the offset and attributes of a partition with the same name simply because it exists on another board.
Align the actual revision and inherited device tree.
Read board type and partition from a wired console or SSH:
ubus call system board
cat /proc/mtd
for f in /sys/class/mtd/mtd*/name; do printf '%s ' "$f"; cat "$f"; done
Follow the flash controller in the board DTS and its included DTSI files to the partition node. Compare its label, reg and read-only; entries with the sizes and erase block sizes in /proc/mtd. A partition name and size alone cannot establish write protection. The read-only property restricts writes through the operating system's partition interface. The bootloader and an external programmer can have different access.
In which situations should we pause?
For boards with the same name but different flash capacities, misaligned partition boundaries, or mismatched upgrade scripts and device tree (DTB) target regions, retain the original firmware and backup. When reviewing modifications, verify the final DTB against the build output and the intended upgrade target; do not use trial writes of the bootloader or ART to validate protection. Acceptance records must clearly indicate specific revisions, the purpose of protected regions, the scope of allowed upgrades, and the corresponding source files.
Reference
Related guide · Identify which art or factory partition to back up before flashing OpenWrt
Comments