Best OpenWRT router | Redmi ax6s Unboxing, unlock, ssh, openwrt installation
note : This only works for chinese version, not the global one
link i bought it from :
https://item.taobao.com/item.htm?spm=...
Download the firmware
https://github.com/YangWang92/AX6S-un...
Decrypt your telnet password using your router password from
https://www.oxygen7.cn/miwifi/
for setup instruction and OpenWRT images
https://github.com/mikeeq/xiaomi_ax32...
steps needed:
1.Setup your router
2.Downgrade the router to miwifi_rb03_firmware_stable_1.2.7
3.access telnet using the generated password
telnet 192.168.31.1
username: root
password: your password
4.enable ssh
Enable SSH
nvram set ssh_en=1
Add flags which allow you to recover from bad flashes without going back to the OEM firmware.
nvram set uart_en=1
nvram set boot_wait=on
nvram commit
sed -i '/flg_ssh.*release/ { :a; N; /fi/! ba };/return 0/d' /etc/init.d/dropbear
5. set ssh password for root
passwd root
6.Start SSHd
/etc/init.d/dropbear enable
/etc/init.d/dropbear start
7.test ssh connection
ssh [email protected]
8.Download openwrt images to mac/pc
mkdir -p xiaomi_openwrt_images
curl -L https://github.com/mikeeq/xiaomi_ax32... -o xiaomi_openwrt_images/factory.bin
9.Copy the downloaded folder to the router using scp
scp -r xiaomi_openwrt_images [email protected]:/tmp/
10.Ssh into the router and update
ssh [email protected]
cd /tmp/xiaomi_openwrt_images
#Set NVRAM flags
nvram set flag_boot_rootfs=0
nvram set "boot_fw1=run boot_rd_img;bootm"
nvram set flag_boot_success=1
nvram set flag_try_sys1_failed=0
nvram set flag_try_sys2_failed=0
nvram commit
11.Flash the firmware
mtd -r write factory.bin firmware
12.Connect your router to PC/Mac via ethernet cable, and log into admin panel using browser at
http://192.168.1.1
13.Setup the openWRT and connect the router to the internet, and enable wifi radios.
thanks so much for watching, do like and subscribe
00:13 Where i bought the Chinese version(cheapest) Not affiliated
00:27 Quick unbox
01:02 Download 1.2.7 firmware
01:25 Decrypt the telnet password
01:50 Initial setup
02:35 Access admin page to downgrade the router
03:04 Access the router through telnet and initial setup
03:54 Change root password and enable ssh
05:00 Download openWRT firmware to pc
05:12 Transfer openWRT firmware to the router using SCP
05:30 Go to the transferred directory and flash openWRT
05:55 Connect to router using Lan, and setup openWRT