EFForg / OpenWireless

The official home of the EFF OpenWireless Project
Other
732 stars 80 forks source link

Failsafe mode not working #193

Closed terminalmage closed 10 years ago

terminalmage commented 10 years ago

I installed openwireless-openwrt-squashfs-factory-19.img tonight. I didn't care for it, so I decided to install another firmware. No web GUI option exists for doing this, so I enabled the failsafe mode per the instructions in the README. Once booted into this mode with a fast-pulsing power LED, I can confirm with nmap that port 23 is open on the router, however telnet hangs when I connect.

terminalmage commented 10 years ago

This actually appears to just be a documentation issue. The documentation suggests that you can enter failsafe mode using either of the two buttons on the front of the router, but it never works when I use the right-side button, and always works when I use the left-side button.

jsha commented 10 years ago

Thanks! I've updated the README. I take it you've successfully installed a different firmware?

In case you have future need: It shouldn't be necessary to enter failsafe mode in order to install alternate firmware. You should be able to enable SSH access via the settings page, and copy over new firmware to install via SSH.

terminalmage commented 10 years ago

I tried DD-WRT (I was able to successfully copy the firmware over in failsafe mode) but had to use --force to bypass the the check in sysupgrade. This subsequently semi-bricked the router, as I was able to ping it but DHCP didn't work and no web interface was available. I was able to do a TFTP flash from there though, as a last resort, and I'm up and running again.

Did I do something wrong when I tried to flash DD-WRT via a root shell using sysupgrade? I didn't do the 30/30/30-style reset to clear the NVRAM, so perhaps that had something to do with it.

I'm interested in coming back to OpenWireless in a couple months to check it out again.

jsha commented 10 years ago

I'm glad you got it working again. @Rangak knows more about the sysupgrade operation and can probably comment, but I suspect using --force may have been the issue. There are a couple of different types of images you can apply, a factory image or a sysupgrade image, and the methods for applying them are different.

We'll look forward to talking to you again in a couple months!

terminalmage commented 10 years ago

Ahh yes, that might have been the case then, as this would be considered a factory image since it was a completely different firmware.

Rangak commented 10 years ago

That is likely the case. The other firmware you flashed was probably a ...factory.img in openwrt terms. The failsafe instructions in the README.md we have do specify that you need a ....sysupgrade.bin image. From your experience it seems the TFTP flash seems to work correctly with the ...factory.img format. Thanks for confirming that. I'll update the failsafe instructions with the TFTP instructions to be used as last resort.