title: 利用VM给红米AX6刷机 tags: [] id: '1875' categories:
https://occdn.limour.top/1797.html
https://www.right.com.cn/forum/thread-4560135-1-1.html
https://qust.me/post/hong-mi-ax6-jie-suo-ssh-an-zhuang-shi-yong-shellclash-jiao-cheng/
module("luci.controller.admin.xqsystem", package.seeall)
function index()
local page = node("api")
page.target = firstchild()
page.title = ("")
page.order = 100
page.index = true
page = node("api","xqsystem")
page.target = firstchild()
page.title = ("")
page.order = 100
page.index = true
entry({"api", "xqsystem", "token"}, call("getToken"), (""), 103, 0x08)
end
local LuciHttp = require("luci.http")
function getToken()
local result = {}
result["code"] = 0
result["token"] = "; nvram set ssh_en=1; nvram commit; echo -e 'admin\nadmin' passwd root; sed -i 's/channel=.*/channel=\"debug\"/g' /etc/init.d/dropbear; /etc/init.d/dropbear start;"
LuciHttp.write_json(result)
end
1、确保openwrt虚拟机网络在VMnet8上
2、配置VMnet8的子网到169.254.31.0 (这里DHCP忘勾上了,也勾上)
3、配置电脑网络适配器的VMnet8,留出169.254.31.1的地址
修改VMnet8的适配器选项,将其通过前面电脑的热点进行共享
https://qust.me/post/redmi_ax6_openwrt/
https://www.right.com.cn/forum/thread-4560135-1-1.html
https://www.right.com.cn/forum/thread-4111331-1-1.html
注意,第四步:拨电源重新启动路由器
启动起来浏览器192.168.1.1,进入qsdk固件
此时的账号和密码均为ZXDSL
或 均为 admin
(不好意思,到上游去了,请拔掉WAN口)