What's new

Upgrade firmware via cli

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Otto Rodusek

New Around Here
Hi,

Is it possible to upgrade the firmware via cli instead of webui? I have several AC88U, AX88U and AX3000(AX58) and would like to ssh remotely and initiate a firmware upograde but im not sure how to do an upgrade via the cli. Remote access to router is no issue. If there are any tutorials or instructions to upgrade the firmware via cli, I would very much like to know. Thank you for any assistance.
 
Yes, it's possible. I wouldn't.

If you're able to access the router at all, the GUI is preferred (with all its checks and balances).

See a few recent threads whereby upgrading by other means effectively bricked the router.
 
As per @RMerlin comment below, SSH flash also performs the validation process:


I still wouldn't do it. If it fails for some reason, without physical access to the router I'll have limited options to fix it.
 
The command line method does the validation process on HND, but not on the older models where it flats out writes direct to flash (hence the hnd-write vs mtd-write command difference).

Simply don't. Saving time is not a good enough reason to risk trashing a perfectly working router.
 
If it fails for some reason, without physical access to the router I'll have limited options to fix it.
Especially true for non-HND models, where you are writing to a live filesystem. The web-based update takes care of creating a temporary root where it copies essential files that will be needed for the reboot process. If you directly write to flash, your router has a very high chance of crashing on the reboot due to the corrupted filesystem, requiring a manual power cycle to reboot it, with nothing but a flood of SQUASHFS errors in your console.
 
The command line method does the validation process on HND, but not on the older models where it flats out writes direct to flash (hence the hnd-write vs mtd-write command difference).

Good to know. Thank you for the detailed explanation.
 
Just putting 2 cents in here:
My router is currently about 7000 or so miles away being served over dsl speeds. But I can still administer it with a combination of ssh tunnelling and web admin.
The problem is that this presents enough bandwidth challenges (and who knows how much an american ISP will throttle the traffic because it looks maybe like a server responding) that there was no way this would work. I gave it 4 tries with lots of waiting.
I was able to scp the file to my merlin router (it took more than 10 minutes), and then use hnd-write <filename.w>. I rebooted right away and I had success.
This is the only way that worked for me.
 
Hi,

Is it possible to upgrade the firmware via cli instead of webui? I have several AC88U, AX88U and AX3000(AX58) and would like to ssh remotely and initiate a firmware upograde but im not sure how to do an upgrade via the cli. Remote access to router is no issue. If there are any tutorials or instructions to upgrade the firmware via cli, I would very much like to know. Thank you for any assistance.
Amtm —> MerlinAU

@ExtremeFiretop
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top