找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 109529|回复: 2063

[红米ax6000] 红米Redmi AX6000开启SSH、Telnet及OpenWrt/LEDE刷机教程,附件增加救砖工具跟OP固件

 火... [复制链接]
本帖最后由 hxh1233 于 2023-2-22 18:51 编辑

先下载附件包,所需的文件跟命令都在附件包里面,
操作前先看看路由器是那个固件,我原来的固件是1.0.48操作1时出错,后来升级到1.0.60都通过了。请按下面的操作步骤操作,刷机有风险请三思!有什么问题概不负责!
1、开启并固化SSH、Telnet的方法
2、新版本X-WRT固件 刷机教程

附本人的300M单线多拨的测速







开启并固化SSH、Telnet的方法
打开路由器设置
示例192.168.31.1/cgi-bin/luci/;stok=60522452fadf088a65c6bf93645282a1/web/home#router
复制 192.168.31.1/cgi-bin/luci/;stok=60522452fadf088a65c6bf93645282a1

1.开启开发/调试模式  {示例复制的内容添加到下面命令行的前面}

/api/misystem/set_sys_time?timezone=%20%27%20%3B%20zz%3D%24%28dd%20if%3D%2Fdev%2Fzero%20bs%3D1%20count%3D2%202%3E%2Fdev%2Fnull%29%20%3B%20printf%20%27%A5%5A%25c%25c%27%20%24zz%20%24zz%20%7C%20mtd%20write%20-%20crash%20%3B%20

2.重启  {示例复制的内容添加到下面命令行的前面}

/api/misystem/set_sys_time?timezone=%20%27%20%3b%20reboot%20%3b%20

3.设置Bdata永久开启telnet
在浏览器上重新登陆路由器,示例中的复制部分添加到下面命令的前面

/api/misystem/set_sys_time?timezone=%20%27%20%3B%20bdata%20set%20telnet_en%3D1%20%3B%20bdata%20set%20ssh_en%3D1%20%3B%20bdata%20set%20uart_en%3D1%20%3B%20bdata%20commit%20%3B%20

4.重启  {示例复制的内容添加到下面命令行的前面}
/api/misystem/set_sys_time?timezone=%20%27%20%3b%20reboot%20%3b%20


此时重启后可以通过telnet连接192.168.31.1,无需密码即可登录

开启SSH
1.修改root密码为admin
echo -e 'admin\nadmin' | passwd root

2.固化SSH
nvram set ssh_en=1
nvram set telnet_en=1
nvram set uart_en=1
nvram set boot_wait=on
nvram commit

4.永久开启SSH(重启不会关闭)
mkdir /data/auto_ssh && cd /data/auto_ssh
curl -O https://cdn.jsdelivr.net/gh/lemoeo/AX6S@main/auto_ssh.sh
chmod +x auto_ssh.sh

uci set firewall.auto_ssh=include
uci set firewall.auto_ssh.type='script'
uci set firewall.auto_ssh.path='/data/auto_ssh/auto_ssh.sh'
uci set firewall.auto_ssh.enabled='1'
uci commit firewall

5.修改时区设置
uci set system.@system[0].timezone='CST-8'
uci set system.@system[0].webtimezone='CST-8'
uci set system.@system[0].timezoneindex='2.84'
uci commit

6.关闭开发/调试模式
mtd erase crash

7.重启
reboot

新版本X-WRT固件 刷机教程

一、首先telnet访问路由器
二、查看当前系统是ubi 还是 ubi1
      执行命令 cat /proc/cmdline

输出内容:
      console=ttyS0,115200n1 loglevel=8 firmware=1 uart_en=1

firmware=1 表示当前系统是ubi1
firmware=0 表示当前系统是ubi

三、设置nvram并且刷 intramfs-factory.ubi

根据系统的不同,设置不同的nvram
1、如果当前系统是 ubi,设置nvram变量从ubi1启动
nvram set boot_wait=on
nvram set uart_en=1
nvram set flag_boot_rootfs=1
nvram set flag_last_success=1
nvram set flag_boot_success=1
nvram set flag_try_sys1_failed=0
nvram set flag_try_sys2_failed=0
nvram commit

然后通过WinSCP链接路由器,把initramfs-factory.ubi文件传到tmp目录下面,刷入 intramfs-factory.ubi

ubiformat /dev/mtd9 -y -f /tmp/initramfs-factory.ubi


2、如果当前系统是 ubi1,设置nvram变量从ubi启动
nvram set boot_wait=on
nvram set uart_en=1
nvram set flag_boot_rootfs=0
nvram set flag_last_success=0
nvram set flag_boot_success=1
nvram set flag_try_sys1_failed=0
nvram set flag_try_sys2_failed=0
nvram commit

然后通过WinSCP链接路由器,把initramfs-factory.ubi文件传到tmp目录下面,刷入 intramfs-factory.ubi

ubiformat /dev/mtd8 -y -f /tmp/initramfs-factory.ubi

reboot 重启,进入x-wrt/openwrt 的initramfs临时系统

四、刷sysupgrade文件完成刷机

首先SSH访问路由器设置一下uboot env变量,修改启动

fw_setenv boot_wait on
fw_setenv uart_en 1
fw_setenv flag_boot_rootfs 0
fw_setenv flag_last_success 1
fw_setenv flag_boot_success 1
fw_setenv flag_try_sys1_failed 8
fw_setenv flag_try_sys2_failed 8

然后在临时系统直接升级sysupgrade.bin
全部搞定!!!!!!!!

附件加入了op 系统,没有测试,别人测试过正常。如果有兴趣可以直接升级一下看看,不行就升级回来
本教程用的程序跟文件在附件里面请下载:
游客,如果您要查看本帖隐藏内容请回复









本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

评分

参与人数 3恩山币 +3 收起 理由
qq649*** + 1 感谢分享ax6000刷机教程
4468*** + 1 大神 什么时间更新下op 系统 这个op 系统.
xqmyu*** + 1 感谢你的分享,无论怎样,你都是最无私的人.

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
不错不错
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

加油 加油
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
不错,买个看看效果
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看看有需要的没有
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

66666666
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
看下固件有没有更新
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

可以可以,新入坑的看这个教程就够

点评

我的ax6000固件降级提示为了安全无法降级,有办法解决吗  详情 回复 发表于 2023-4-11 18:43
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

看下有没有用的上的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

不错不错thx
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

固件稳定了吗现在
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

又新又好。好样的!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢大神分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢分享。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-28 00:46

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表