惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
量子位
腾讯CDC
A
About on SuperTechFans
小众软件
小众软件
Microsoft Azure Blog
Microsoft Azure Blog
T
Tailwind CSS Blog
V
V2EX
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
GbyAI
GbyAI
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
罗磊的独立博客
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
V
Visual Studio Blog
D
DataBreaches.Net
博客园 - 三生石上(FineUI控件)
月光博客
月光博客
有赞技术团队
有赞技术团队

博客园 - airoot

用得顺手的软件记录 关闭win11开始菜单中的“全部” Aircrack-ng抓握手包 Chrome浏览器升级到138后不支持MV2插件 BGP 在线工具全景:从路由监控到策略验证 Chrome历史版本下载 Hyper Server 2019安装I226-V网卡驱动 FortiGate连接中国联通SDWAN Pve安装Win10 解决zabbix7.0图形中文乱码 openwrt squashfs镜像扩容 vRealize Operations Manager 报告和大屏配置 使用 Cloudflare Tunnel 作为反向代理访问内网服务 PVE8.3.1创建LXC部署Docker PVE的local和local-lvm PVE8.3.1安装注意事项 Openwrt作为旁路由的必要设置 PVE8.3.1 直通硬盘 PVE8.3.1开启核显虚拟化SR-IOV PVE8.3.1 LXC下安装 OpenWRT 记录 PVE 8.3.1安装后的优化 ESXi 直通 7840HS 核显 Esxi intel iGPU SR-IOV
Redmi AX3000免拆开启SSH刷入OpenWrt
airoot · 2025-05-19 · via 博客园 - airoot

以下操作在Windows下进行

第一步:XMiR-Patcher脚本解锁SSH

https://github.com/openwrt-xiaomi/xmir-patcher

直接打包下载

 下载完成后运行run.bat,确认目前路由器地址是否为192.168.1.1,如不同则进行按“1”进行修改

按“2”继续进行PJ,期间需要输入路由器的登录密码

等3分钟左右,出现这个提示代表SSH开启成功了,输入0退出即可。

第二步:刷入分区文件+UBoot

SSH登录路由器,下载Uboot以及分区文件:

curl -o /tmp/MIBIB.bin https://mao.fan/shezhang/RedmiAX3000/MIBIB.bin
curl -o /tmp/APPSBL.bin https://mao.fan/shezhang/RedmiAX3000/APPSBL.bin
curl -o /tmp/APPSBL1.bin https://mao.fan/shezhang/RedmiAX3000/APPSBL1.bin

写入对应分区

mtd write /tmp/MIBIB.bin /dev/mtd1
mtd write /tmp/APPSBL.bin /dev/mtd11
mtd write /tmp/APPSBL1.bin /dev/mtd12

注意,完成后不要重启路由器,因为分区已经被清空,接下来需要刷入OpenWrt系统。

第三步:刷入Openwrt

红米AX3000固件项目地址:

https://github.com/hzyitc/openwrt-redmi-ax3000

复制以下内容,在路由器内另存为123.sh脚本文件,记得chmod+x赋予执行权限。然后执行即可

cd /tmp
wget https://github.com/hzyitc/openwrt-redmi-ax3000/releases/latest/download/openwrt-ipq50xx-arm-redmi_ax3000-squashfs-nand-factory.ubi

# Check your partition table
cat /proc/mtd
[[ "$(grep '"rootfs"' /proc/mtd | cut -d':' -f1)" == "mtd18" ]] || exit
[[ "$(grep '"rootfs_1"' /proc/mtd | cut -d':' -f1)" == "mtd19" ]] || exit

# Detect the current system slot and flash into the other one
cat /proc/cmdline
mtd="$(grep -oE 'ubi.mtd=[a-zA-Z0-9\-\_]*' /proc/cmdline | cut -d'=' -f2)"
if [[ "$mtd" == "rootfs" ]]; then
    # Flash it as system 2
    ubiformat /dev/mtd19 -f openwrt-ipq50xx-arm-redmi_ax3000-squashfs-nand-factory.ubi
    nvram set flag_try_sys2_failed=0
    nvram set flag_boot_rootfs=1
    nvram set flag_last_success=1
    nvram commit
elif [[ "$mtd" == "rootfs_1" ]]; then
    # Flash it as system 1
    ubiformat /dev/mtd18 -f openwrt-ipq50xx-arm-redmi_ax3000-squashfs-nand-factory.ubi
    nvram set flag_try_sys1_failed=0
    nvram set flag_boot_rootfs=0
    nvram set flag_last_success=0
    nvram commit
fi

# Reboot
reboot

脚本执行完成后路由器会自动重启,路由器重启完成后进入192.168.1.1用户名root密码为空 

这个是原生的系统,默认是英文,需要在软件管理中手动安装中文语言包

第四步:Uboot的使用

顶住Rest按键,通电10秒,输入192.168.10.1即可进入Uboot界面,后续升级系统可以在这里操作。

第五步:建议

虽然已经2025年了,但还是不建议刷最新版的,比如23版本依旧存在网速会慢的问题,作者在源码主页也强调了是因为不支持qsdk加速的原因。要网速好就用旧版21版5.4内核。

其他

备份的opkg源,避免后期误操作:

src/gz openwrt_core https://hzyitc.github.io/openwrt-redmi-ax3000/ipq50xx-qsdk-kernel-5.4-openwrt-21.02-qsdk-11.5.05.841.1029/ci-20240727-173350-ab1f9ffa
src/gz openwrt_base https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/21.02.7/packages/arm_cortex-a7_neon-vfpv4/base
src/gz openwrt_luci https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/21.02.7/packages/arm_cortex-a7_neon-vfpv4/luci
src/gz openwrt_packages https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/21.02.7/packages/arm_cortex-a7_neon-vfpv4/packages
src/gz openwrt_routing https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/21.02.7/packages/arm_cortex-a7_neon-vfpv4/routing
src/gz openwrt_telephony https://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/21.02.7/packages/arm_cortex-a7_neon-vfpv4/telephony

 至于为什么IPQ50xx是Cortex-A53,但本固件显示架构A7,因为256M不够运行64位系统。openwrt没有32位a53的软件源。所以32位版本用了a7的软件源。

参考:

https://github.com/blueberry-pie-11/redmi-ax3000-flash

https://mao.fan/article/195