hnyman
April 28, 2024, 4:31am
322
It doesn't.
DL-WRX36 has dual partitions, but different than the Linksys model that your LuCI app supports.
Only one partition is used by OpenWrt, so it is single boot in practice.
Year ago there was discussion in the device thread about implementing dual-boot functionality, and there is a proof-of-concept code for that. But the idea never took hold.
@luaraneda did this:
I have been working on implementing dual-partition support for this device and I have some proof of concept.
@robimarko , @clayface , any feedback is appreciated.
A snippet with sysupgrade's platform.sh and bootcount is at:
It implements an "OpenWrt u-boot env" with 2 boot slots + recovery by loading initramfs image from USB.
Steps are:
Attempt to boot from current slot
If it fails, attempt to boot from other slot
If it fails, attempt to boot an initramfs image from USB
If the required env…
Here is actually even code for luci-app-advanced-reboot by @jaharon
You might find this useful.
I’ve used your proof of concept for the dual boot (pretty much as is).
Edit: Removed the direct link to the commit, and added a link to the branch instead. I might force push commits, or add new commits, as it is WIP.
From the original I’ve added an attempt to usb boot initramfs at every boot first.
and changed the owrt_active from 0 (usb boot recovery) to 1 (first partition).
Edit: From the original I've removed the bootcount recovery logic, this is a WIP.
The…
3 Likes