Upgrading OpenWrt writes firmware. “Keep configuration” does not mean that every package and local change will remain valid. Before using LuCI or the CLI, confirm the model/target, image, release, and recovery path.
Prepare and back up
| |
Copy the backup off the router. A configuration archive is not a full flash dump and cannot restore a damaged bootloader or ART partition. For an important device, prepare the model-specific UART or recovery method.
Upgrade through LuCI
- Download the correct
-sysupgrade.binfor the current board from OpenWrt . - Verify the checksum/signature using the release instructions.
- Open System > Backup / Flash Firmware.
- Upload the image, then recheck the filename and board detected by LuCI.
- Keep the configuration only when the target/release is compatible and an off-device backup exists.
- Click Continue, review the final confirmation, and start the flash.
- Do not remove power or interrupt management while the device reboots.
- Reconnect at the old address, or follow the model's default/recovery address when required.
Upgrade from the CLI
Copy the image to /tmp, verify its path, and use sysupgrade:
| |
-c keeps the current configuration; do not use it when the old configuration is incompatible with the new release. To start clean, omit -c and restore selected settings after testing. Do not use -F/--force unless the target documentation explicitly requires it.
After the reboot
| |
Test WAN, LAN, DHCP, DNS, Wi-Fi, firewall, and important packages. If the retained configuration causes trouble, use the model recovery path or reset and restore sections from the backup one at a time; do not copy an entire old /etc/config tree into an incompatible image.
Source
- Official documentation: https://openwrt.org/docs/guide-user/installation/generic.sysupgrade


Góp Ý / Bình Luận / Đánh giá