What's new

how to install firmware via ssh ?

  • 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!

CrashXRu

Regular Contributor
There is a need to install the firmware via the router's cx console
how to do it?

I know that you can unpack the firmware using binwalk
binwalk -e GT-AC2900_3.0.0.4_386_41793-gdb31cdc_cferom_ubi.w

I checked the sections and realized that the unpacked parts do not correspond to one of the sections

?
bcm_flasher or hnd-write

For older routers
mtd-write2 RT-AC3200_384.11_2.trx linux
or
mtd-write -i /path/to/file.trx -d linux && reboot
 
Last edited:
I found this in @RMerlin's repo:
Code:
~/asuswrt-merlin.ng/release/src/router/rom/webs_scripts/urlfw_webs_upgrade.sh:
    8  dl_path_SQ_beta="https://dlcdnets.asus.com/pub/ASUS/LiveUpdate/Release/Wireless_SQ/app"
    9  dl_path_file="https://dlcdnets.asus.com/pub/ASUS/wireless/ASUSWRT"
   10: #wget -q -y -O- ${path}/${file} | hnd-write -
   11 
   12  echo "---- URLFW To download fw/rsa, Start ----" > /tmp/webs_upgrade.log
   ..
   77  if [ "$update_url" != "" ]; then
   78      echo "---- wget fw nvram webs_state_url ${update_url}/$firmware_file ----" >> /tmp/webs_upgrade.log
   79:     hnd-write ${update_url}/$firmware_file
   80  elif [ "$forsq" -ge 2 ] && [ "$forsq" -le 9 ]; then
   81      echo "---- wget fw sq beta_user ${dl_path_SQ_beta}${forsq}/$firmware_file ----" >> /tmp/webs_upgrade.log
   82:     hnd-write ${dl_path_SQ_beta}${forsq}/$firmware_file
   83  elif [ "$forsq" == "1" ]; then
   84      echo "---- wget fw sq ${dl_path_SQ}/$firmware_file ----" >> /tmp/webs_upgrade.log
   85:     hnd-write ${dl_path_SQ}/$firmware_file
   86  elif [ "$urlpath" == "" ]; then
   87      echo "---- wget fw Real ${dl_path_file}/$firmware_file ----" >> /tmp/webs_upgrade.log
   88:     hnd-write ${dl_path_file}/$firmware_file
   89  else
   90      echo "---- wget fw URL ----" >> /tmp/webs_upgrade.log
   91:     hnd-write ${urlpath}/$firmware_file
   92  fi
   93  wget_result=$?
   94: echo "---- [LiveUpdate] hnd-write fw, exit code: ${wget_result} ----" >> /tmp/webs_upgrade.log
   95 
   96
As far as bcm_flasher is concerned it comes prebuilt. Either @RMerlin can tell what it does or somebody should risk and check it.
 
tnx

hnd-write GT-AC2900_3.0.0.4_386_42494-g7142c8d_cferom_ubi.w
 

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