I had successfully installed OpenWrt 23.05.0 on one of my GS1900-8HPv2, but I am now just getting an index instead of a login page when accessing the switch over HTTP, the switch is still accessible via SSH.
Running /www/cgi-bin-luci via SSH returns "-ash: /www/cgi-bin-luci: not found". As this switch has dual firmware I would like to boot into the secondary partition which is still configured with the OEM firmware, however all the topics I seem to find have guides on carrying out the procedure from the initramfs, which have commands that are not available to me.
Can anyone help ?
See here:
I've tried running that command then 'reboot' but it still starts OpenWrt
Did you get any output or error message?
no, no errors
Is it possible that you accidentally flashed OpenWrt to the second image slot during installation? Once booted, couls you try running
fw_printsys
and tell us what the bootpartition points to?
running fw_printenv after 'fw_setsys bootpartition 1' shows bootpartition=1
rebooting and running fw_printenv then shows bootpartition=0
OK...it's also possible that you never flashed an OEM image to the second partition hence you cannot go back to stock this way. I don't know what other methods are there to flash back to stock, someone else will have to chime in here.
the OEM firmware was originally flashed to both partitions & fw_printsys shows
dualfname1=runtime-GS1900-8HPv2-V2.70(AAHI.5).bix
dualfname0=openwrt.bin