L&LD
Part of the Furniture
Did a factory reset, re-installed FW, did another factory reset, setup my router (wireless, static ip, ssh,traffic, etc) then went to install Diversion. This time the install did not even complete. I went into a loop with numerous messages similar to "Waiting for cronjob...." After a few of those it the messages changes to "retrieving/getting files..." then back to waiting for conjob." Had to do another reset to recover. Router is working fine now albeit without Diversion.
Your router is certainly not in a 'good/known' state. Are you using a backup config file after resetting to factory defaults?
Reset the router via the GUI, reset the NVRAM via the WPS button method, reset jffs by turning on the format at next reboot option. Reboot the router at least three times after jffs is formatted, waiting up to 10 minutes after each reboot to let the router do its internal stuff and let the CPU cores settle down.
Now, with no other modifications to the router, install amtm. Insert the USB drive. Using amtm, format the drive to Ext4 with journalling. Create a swap file (I use 2GB on my installs). Install Diversion, which will install pixelserv-tls and Entware.
This should give you the results you are expecting. If not, there is something else going on with your router, or your network environment.