I'm currently running OpenWrt 21.02.1 on a TP-Link TL-WDR3600 v1 and would like to upgrade to the latest stable version. Not sure how to do this, but wondered if there was an automated way of doing this eg by running something like
Does attendedsysupgrade really handle gracefully the major version upgrade from 21.02 with the iptables firewall3 to 22.03 with the nftables firewall4 ???
Earlier, I tried installing midnight commander which failed because of lock of space after it had installed numerous dependent files. Is there any way to remove those dependencies?
The router has two USB slots, so maybe I can move some packages onto a USB stick...
It looks like I have 122 pkgs installed. Presumably most of those come with the base OpenWrt system. Is there any way to get back to the base system so that I can start again from scratch? ie is there a way to run 'opkg remove 'pkgs-not-included-in-base-build''?
After the jffs has crashed and become read-only (due to overfilling it), the only practical way to recover is to start over. Export the configuration, then re-flash or firstboot and install only necessary packages. You can use this opportunity to upgrade as well.
Unfortunately I can't seem to come up with a configuration which works properly.
I've done a reset a dozen times trying get my router to talk to my LAN so that I can apply an upgrade.
I think I will have to manually edit /etc/config/network to get a working system. Clicking on various option in the WebGUI has been counter productive so far.
there is nice documentation available https://openwrt.org/docs/start which probably answers most your questions. suggest to start there first. if not you can search the forum for same/similar topic, and of course you can ask new question too.
to your OP: opkg is not able to upgrade an openwrt image. there is sysupgrade for that, which tries to keep your settings (not always possible) but surely not keeping the installed packages you manually installed on top of the official image. it is the official upgrade tool - it is always re-flashing a full image, which is the recommended approach anyway.
the attenteded-sysupgrade custom package is designed to track your custom packages, do sysupgrade and then re-install tracked packages.
also there is Firmware Selector which helps you to find the right firmware and also able to customize an image with packages pre-installed so sysupgrade will re-flash device already containing those packages.
if you are out of space there are guides to extend storage.
After a reset, am I correct in thinking the Web GUI does not come up until after a reboot?
I have found that I can ping the router on 192.168.1.1 and I can ssh in, but I don't see any /etc/config/network and httpd isn't running.
After a reboot I am able to access the Web GUI and if I can LAN2 to my network I can access the Internet. What I can't figure out is how to access the Internet if I use the WAN port as my Internet gateway.
I assume that the configuration is so messed up at this point that you should not try to save it.
Connect your PC to the Internet somehow and download the latest stable version sysupgrade firmware. Then connect PC to the router and use scp from your PC to push the firmware to the router's /tmp directory.
on the PC CLI cd Downloads scp filename root@192.168.1.1:/tmp
Note this works on Linux or Windows 10 in a Command Prompt window, and probably MacOS as well.
Then make a ssh connection to log into the router and run the upgrade: on the router CLI sysupgrade -n /tmp/filename
The router should close the SSH connection and commence to flash and reboot itself. Do not cut the power off! Wait about 5 minutes for the process to complete.