I'm trying to upgrade my Pi400 router to 23.05.2 from 23.05 and using an RTL8153 based USB3 to Ethernet adapter with it. Under 23.05 the available kmod-usb-net-rtl8152 installed fine however under 23.05.2 I get:
The installed version of package kernel is not compatible, require 5.15.137-1-4d407d5f… while 5.15.134-1-4d407d5f… is installed.
and it fails. Is there a fix for this or should I roll back to 23.05 for now?
For now I reconfigured with an extra VLAN and running everything out of the in built NIC.
Pis are, sometimes, flakey when doing upgrades. Some settings persist and since you cannot brick a Pi it is just cleaner to do a fresh install than hunt down issues like drivers not working or old drivers persisting.
In the future, when you install a new version, update the bootloader/EEPROM then flash OpenWrt.
The link offers a few ways to do it but I think the easiest is to just flash the latest Raspberry OS and boot it once; this will do two things.
It will wipe the sd card of everything related to the OpenWrt flash.
It will update the bootloader with the latest most efficient version.
As for fresh installing vs upgrade, I will do that in future. It's just a bit of a faff as I operate VLANS. Presumably one could restore saved settings back to a newly flashed SDCard off line and just do a quick swap?
I do not know.
You can preserve the settings using the backup (LuCI/System/ backup restore) option but I'm not sure any packages you had to install will be a part of that.
You can use the firmware selector, select Customize installed packages and/or first boot script and add your packages to the script, then, restore using your settings backup; it might all fall into place..
Someone may come in and give a more definitive answer but it cannot hurt to save your config files as a document so you have a reference if you end up having to rebuild.