I’ve tried several tutorials and I can’t get out of it, the router is with the blue lights on, but I can’t find it using any address, I use it as a router, because I have a modem from my Fiber Operator and I can only access internet because I activated wifi on this modem (is not very good the signal)..
The weird part is that I can access the router with ssh, connect my computer to the LAN port and when I enter the cable of the Modem, on the Xiaomi WAN, my PC connected to the Xiaomi, It connects to the internet... but I can’t access any router configuration pages (192.168.1.1 or 192.168.31.1) or show any Xiaomi WAN network.
I don’t know if I deleted the nvram or if I somehow did something stupid with the kernel, but is there a solution?
Yes, I recognised the commands from there. Just making sure you were using that source and not a copy that might be a bit different elsewhere.
So you've followed the instructions from the top but the mtd commands aren't working?
My question about whether you're rolling your own firmware was because if you are but didn't include the kmod that frolic mentioned it could explain it. Or it may have been lost from the current snapshot build.
The instructions a bit further down may help you, and suggest it is not an entirely unexpected situation:
It looks like the router is already running OpenWRT (so you have probably managed to correctly install it in the end) and since it looks like you have a snapshot build of OpenWRT, that also explains why you get internet but can't access the web interface (LuCi) since it's not included by default in snapshot builds. If you get internet through the router, you can try installing LuCi by running opkg update && opkg install luci after which you should be able to access the web interface normally on 192.168.1.1 . To not lose web interface and any packages that you have installed, you can try using attended sysupgrade when upgrading to the newer snapshots.
Ok, i restored the router from the stock rom (chinese), i will try again do the install for openwrt.. but, at least i not destroyed the router as i think