Skip to content

Instantly share code, notes, and snippets.

@francoism90
Last active December 6, 2024 08:16
Show Gist options
  • Save francoism90/3dede7973354d067c41bff5e54203fe9 to your computer and use it in GitHub Desktop.
Save francoism90/3dede7973354d067c41bff5e54203fe9 to your computer and use it in GitHub Desktop.
Change country to unlock channels, increase TX-power. (Use at your own risk)

Disclaimer

Following instructions are provided without any warranty, and may even get you in trouble legally. The instructions are provided for testing, learning, preventing e-waste, and should be use with care. We (including contributers + commentators) are not responsible for any damage to your device(s) or any legal issues.

Getting Started

Instructions have been moved to https://github.com/francoism90/asus-router. :)

@Caude123
Copy link

Caude123 commented Sep 6, 2024

@Limpi1978 Download this modified init-start script: https://mega.nz/file/is4FSDgD#9m4A7N-r6BomeU1n7SfrF9ZE9_036454nwAjmzA9_nM Copy this init-start script to your router into the folder jffs/scripts. (I use WinSCP to copy files onto my router) Make the init-start script executable (x in file properties). Make sure you "Enable JFFS custom scripts and configs" in System settings on your router. You don't need to format JFFS. SSH into your router and enter these commands:

nvram set jffs2_exec=/jffs/scripts/init-start nvram set jffs2_scripts=1 nvram commit reboot

You can modify the init-start script to your likings. See if it works.

Btw. I use channel 48 for 5GHz after extensive testing. With 48, I get the best results in range and speed. (80MHz channel bandwidth)

You seem very knowledgeable on this. Can you please explain how I can enable all the channels on it? Mine has many locked out.

@alfky12
Copy link

alfky12 commented Sep 13, 2024

Hi all, I think my question is off topic, but does anyone know which variable in nvram to enable 4x4 (4T4R) streams on the 5ghz band? Or maybe use the wl command?
I have an asus tuf-ax3000 (v1), the 5ghz chipset is capable of 4x4 streams, but it is locked to 2x2 by asus.

@francoism90
Copy link
Author

@alfky12 Interesting! :)

You could run nvram dump, and check if it's being exposed.

@alfky12
Copy link

alfky12 commented Sep 14, 2024

@alfky12 Interesting! :)

You could run nvram dump, and check if it's being exposed.

Thanks for responding. What does "check if it's being exposed" mean? I've dumped it and it's not encrypted.

@friendodevil
Copy link

friendodevil commented Sep 27, 2024

is there a nvram show / get / set guide for Mediatech based TUF-AX6000?

@francoism90
Copy link
Author

@ALL I have moved the instructions to a repo instead, this makes it easier to maintain (branches, wiki, etc.).

Thanks again to all your contributes. :)

@DeMuirs
Copy link

DeMuirs commented Oct 26, 2024

Hi all. Firstly, many thanks for doing this. It is greatly appreciated! Managed to get this going on an ASUS RC-AX58U V2 running a Merlin fork: RT-AX58U_V2_3004_388.8_2 and an ASUS RC-AX88U running Merlin firmware RT-AX88U_3004_388.8_2.
Downloaded the:
init-start
File available at:
https://mega.nz/file/is4FSDgD#9m4A7N-r6BomeU1n7SfrF9ZE9_036454nwAjmzA9_nM
Copied the file into my:
jffs/scripts
Folder using WinSCP. One thing not mentioned regarding this is that when setting up WinSCP, you need to choose the session file protocol:
SCP
I didn’t know that although do now and as these routers are Linux based, this will also work when accessing a Raspberry Pi.
Other things worth mentioning. Although I got this working, I can’t select any Wireless channels above 140 on 5G on my RC-AX88U. No idea why and the only way that I can select above channels 128 is to set this to 20/40/80 MHz Not running 160Mhz on WIFI6 as 80MHz is fast enough. Wonder if anyone can access channels above 140 on an RT-AX-88U? BTW, can access all 5G channels including 149 on my RC-AX58U V2 with this script running.

@skymansh
Copy link

Hi all.
Thank you for all informations you posted here.
These are my settings for my router RT-AX5400, firmware 3004.388.8_2-gnuton1.

#!/bin/sh
nvram set 0:ccode=#a
nvram set 0:regrev=0
nvram set 1:ccode=#a
nvram set 1:regrev=0
nvram set location_code=#a
nvram set territory_code=US/02
nvram set wl_country_code=#a
nvram set wl_country_rev=0
nvram set wl0_country_code=#a
nvram set wl0_country_rev=0
nvram set wl1_country_code=#a
nvram set wl1_country_rev=0
nvram set 0:maxp2ga0=120
nvram set 0:maxp2ga1=120
nvram set 1:maxp5gb0a0=120
nvram set 1:maxp5gb0a1=120
nvram set 1:maxp5gb0a2=120
nvram set 1:maxp5gb0a3=120
nvram set 1:maxp5gb1a0=120
nvram set 1:maxp5gb1a1=120
nvram set 1:maxp5gb1a2=120
nvram set 1:maxp5gb1a3=120
nvram set 1:maxp5gb2a0=120
nvram set 1:maxp5gb2a1=120
nvram set 1:maxp5gb2a2=120
nvram set 1:maxp5gb2a3=120
nvram set 1:maxp5gb3a0=120
nvram set 1:maxp5gb3a1=120
nvram set 1:maxp5gb3a2=120
nvram set 1:maxp5gb3a3=120
nvram set 1:maxp5gb4a0=120
nvram set 1:maxp5gb4a1=120
nvram set 1:maxp5gb4a2=120
nvram set 1:maxp5gb4a3=120
nvram set 1:maxp5gb5a0=120
nvram set 1:maxp5gb5a1=120
nvram set 1:maxp5gb5a2=120
nvram set 1:maxp5gb5a3=120
nvram set 1:maxp5gb6a0=120
nvram set 1:maxp5gb6a1=120
nvram set 1:maxp5gb6a2=120
nvram set 1:maxp5gb6a3=120
nvram set wl_txpower=708
nvram set wl0_txpower=708
nvram set wl1_txpower=708
nvram commit

These are my results.
putty
putty2

I hope it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment