I think my failsafe and normal partitions have somehow been kajigerred.
I've been Googling and reading docs for a few hours, I need to go to sleep so I'm going to drop my question here and hope someone can help. I apologize if I'm making a silly mistake.
Background - I am brand new to OpenWRT. I have some limited networking experience, a little Linux knowledge (I can get around and do basic things easily), I like to tinker. I am a Windows guy though so a lot of this is beyond my depth.
I installed OpenWRT on my EA4500 following the Wiki here: https://wiki.openwrt.org/toh/linksys/ea … ecommended.
This was straightforward, it didn't take the firmware the first time but on the second time, it flashed and rebooted.
This is where the problems began.
I had already read that I would need to set a root password before being able to do much else. I was not able to access the router via ssh nor telnet. I used putty, pointed it at 192.168.1.1, nothing. Tried setting the username to root, nothing. Every time, I get "No route to host". With telnet, there is a similar error, but I don't remember what it was. Windows will not let anything use the ethernet adapter because it thinks it's not connected. I don't have a console cable or a serial cable to try and dig deeper with this, but that should be unnecessary anyways, unless I'm missing something very basic in the docs.
So I read more and found the failsafe mode, which works perfectly. I may have made a mistake here. I got logged in via ssh, set the root password, and ran mount_root. Then I installed LuCI from the shell following this guide: https://wiki.openwrt.org/doc/howto/luci.essentials; I ran everything up to and including the 'uhttpd enable' command. Then I installed some other packages, and configured wifi and some other various settings. Then I thought to myself, you idiot, you're still in failsafe mode. So I rebooted just to see what would happen, of course, it was the same as last time, no way to get into the router.
So once again I booted to failsafe mode, except now all my configuration from before has remained. I took a backup of this config. I then ssh'd in again, installed sftp server, and used WinSCP to grab the contents of /etc/config/ and /overlay/upper/etc/config/. I compared a hash of these files and they are all identical from /etc/ to /overlay/upper/etc/ - but this is all in failsafe mode - and I don't know if that's a problem.
I have an idea of what I've done - I've done all my configuration on the failsafe partition instead of the "overlay" partition, or user partition, or whatever it's called. Still learning here!
Anyways, I don't know what I need to do to swap this around so that I can reboot my router and not have a gimped version of OpenWRT. I'm also concerned there may be security issues with running in failsafe mode 24/7. I am more than happy to give the contents of any files if it helps figure out what's going on here.
I'm on Windows 10, have Putty, telnet, WinSCP, etc.
I also have a Raspberry Pi I could possibly use to configure the router from, if it's going to be vastly easier to do from Linux.
Thanks and again, sorry if this is a common problem or I've made a stupid mistake - I've searched and come up with nothing. Also interested to know how one would ssh into a router via IP (for the initial setup) if the router isn't routing... does one need a second router to do this, or console cable, or ... ?