The upgrade of an OpenWRT seems very difficult but it isn’t when you know what to consider.
Go to all articles of this series and the description of the test setup:

OpenWRT – AVM FRITZ!Box 4040 – Upgrade
- OpenWRT – AVM FRITZ!Box 4040 – Upgrade
OpenWRT – Project Site
Download the lastest firmware version for AVM FRITZ!Box 4040 from OpenWRT website:
➡ https://openwrt.org/toh/avm/avm_fritz_box_4040#upgrading_openwrt
OpenWRT – Upgrade
1. Create backup
Create a backup of your current configuration.

2. Save list of installed software
Create a list of all installed packages on your OpenWRT device.
!!! The upgrade will remove all your installed packages. The configuration files of these packages will be kept
opkg list-installed
The upgrade will install the newest version of OpenWRT. After the successful upgrade process the software packages can be installed manually.
The customized scripts will be kept!
3. Start the upgrade process using LuCi or CLI
In LuCi click on the button Upload archive...
<img src="pics/upgrade/openwrt-backup01.png" width="350">
OR
connect to the OpenWRT via SSH to the CLI.
cd /tmp
wget https://downloads.openwrt.org/releases/XX.XX.XX/targets/ipq40xx/generic/openwrt-XX.XX.XX-ipq40xx-generic-avm_fritzbox-4040-squashfs-sysupgrade.bin
sysupgrade /tmp/openwrt-XX.XX.XX-ipq40xx-generic-avm_fritzbox-4040-squashfs-sysupgrade.bin
Replace openwrt-XX.XX.XX-ipq40xx
by the version number.
After the sysupgrade
command got executed the OpenWRT device will install the new firmware and will do a reboot. This will take some time. It’s time to get a coffee 🙂
After the Upgrade
After the reboot of the OpenWRT device login via the web interface LuCi.
1. Update the software to the latest version

2. Upload your lastest backup archive

3. Install your software (see software list)
Manually install your software on OpenWRT device. The easiest option is using LuCi web interface.

The software applications can also get installed using the opkg
manager on the CLI.
opkg install <packagename>
4. Reboot the OpenWRT device
After the installation of the software packages is completed, reboot the device.
Main Configuration Files
When you extract the backup archive you see all relevant configuration scripts in the folder config
- ddns
- ddns-opkg
- dhcp
-dhcp-opkg - dropbear
- firewall
- firewall-opkg
- luci
- luci-opkg
- network
- rpcd
- rpcd-opkg
- system
- ubootenv
- ucitrack
- ucitrack-opkg
- uhttpd
- uhttpd-opkg
- wireless
Files without file ending are your customized configuration for your OpenWRT.
Files ending on *-opkg
are standard configuration files by OpenWRT.
See all articles of this series …
… on strobelstefan.org
➡ Overview of all OpenWRT Articles/
Gib mir gerne einen Kaffee ☕ aus!
Wenn dir meine Beiträge gefallen und geholfen haben, dann kannst du mir gerne einen Kaffee ☕ ausgeben.
bc1qfuz93hw2fhdvfuxf6mlxlk8zdadvnktppkzqzj
Source:
– https://openwrt.org/
– https://openwrt.org/_media/docs/guide-graphic-designer/openwrt-logo-usage-guidelines.pdf

ist absolut technik-begeistert und großer Fan von Linux und Open Source. Raspberry Pi Bastler der ersten Stunde und nach wie vor begeistert von dem kleinen Stück Hardware, auf dem er tolle Projekte umsetzt. Teilt hier seine Erfahrungen mit Nextcloud, Pi-hole, YubiKey, Synology und openmediavault und anderen spannenden IT-Themen. Nutzt Markdown und LaTeX zum Dokumentieren seiner Projekte und Gitea zum Versionieren. Sitzt vor einem 49“ Monitor, nutzt Windows und MacOS zum Arbeiten, Linux auf seinen Servern und virtuellen Maschinen und hört dabei Spotify und MP3s und Radio-Streams über seinen RadioPi.