OpenWrt Forum Archive

Topic: Please Help - I updated my firmware and something went wrong

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi Everyone,

   I updated my firmware to openwrt-wrt150n-2.6-squashfs.bin, I have a linksys v1.1 wrt150n.   When I finished with the update and had waited a while for it to finish updating, but it wouldn't function.   So I rebooted.   Now when it boots the power light comes on for a few seconds then turns off.   I succeeded in getting into safemode but I can only telnet into the router with the windows hyperterminal, I tried winscp and followed instructions to connect but maybe I have the wrong ones, that didn't work.   Anyway since I am able to get in thru telnet, is there a way I can use hyperterminal to upload a new firmware and flash it again to fix my boot problem?  Thank you very much in advance.

You most likely forgot to set a password.
Once you logged in with telnet issue this command:

passwd

After you set a new password you should be able to login using ssh.

~ JoW

I tried setting a password but it says that it can't write to the password file.   Is there a way I can get around that or does it have to have a password to flash the new firmware?   When you say ssh do you mean thru winscp or a browser?  Thanks again!

If you are connecting with telnet in failsafe mode, then issue

mount_root

first before trying to set the password.

With ssh I mean WinSCP.

~ JoW

Awesome Thanks I will give that a try and let you know how it went!!

Ok that worked and I got the password changed (I verified by trying hyperterm after closing it and I get an error so I know its now wanting ssh) but I can't get winscp to connect to the router.  After I changed the password is there a command I need to run to log out with hyperterm?  I just type exit and close hyper term.

I set winscp to 192.168.1.1  port 22 or 23 makes no difference
username root   password (that I entered in Hyperterm)
File Protocol SCP
I get "Network Error Connection refused"
If I reboot the router it loses its password so I have to input it again.
Is there any other settings in winscp that I need to check?

OK got it working after setting my new password then I was able to reboot the router(which I didn't do before) not going into safemode.  Now I just have to install the new firmware because I was able to upload the default.trx file to the tmp directory with winscp.

log into your router and issue this commands:

cd /tmp
mtd write -r default.trx linux

Wait until the device reboots itself.

~ JoW

I want to say a BIG thank you JoW !! My router is up and running again!!!  I used the terminal in winscp to run the command.

mtd write -r default.trx linux

And it worked Great!

Sincerely!!
xsoldier777

The discussion might have continued from here.