14

第016期 小米CR660X路由器如何刷回原厂固件?ROOT后如何固化SSH?

 2 years ago
source link: https://www.126126.xyz/post/016/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

本期视频配套资料

https://wws.lanzoui.com/b020fy6ra 密码:1b5k
注意:下载资料中提供的CR6608的分区备份可能并不适用于CR6606和CR6609,使用风险自负

小米CR660X路由器刷机教程

非常感谢梦程的教程,大家可以参考一下。
小米CR660X路由器刷机教程
小米CR660X路由器不死pbboot刷机教程

刷机有风险,可能会变砖
请认真评估自己的风险承受能力再继续
对于可能造成的任何直接和间接的损失本人不承担任何责任

小米CR660X路由器刷回原厂固件

以下为小米CR660X(CR6606 CR6608 CR6609)路由器在刷了op-boot和OpenWrt系统后,刷回原厂固件的步骤

  1. 在op-boot下刷过渡固件,选择文件openwrt-ramips-mt7621-xiaomi_mi-router-cr660x-squashfs-factory.bin,点恢复固件按钮。
  1. 刷好过渡固件后,用ssh客户端登陆OpwnWrt系统,用户名root,密码password

    用WinSCP将firmware和Bootloader分区的备份复制到/tmp/bin目录后执行下面的命令

    insmod mtd-rw.ko i_want_a_brick=1 #载入kmod-mtd-rw 模块,使分区可写
    mtd write firmware.bin firmware
    mtd write firmware.bin firmware1 #此条语句可能是不需要的
    mtd write Bootloader.bin Bootloader
    reboot
    
  2. 重启路由器进入官方系统,先使用通用方法获取官方固件的ROOT权限,可以参考梦程的教程

  3. 获取ROOT权限后,用WinSCP把解锁工具mitool_mips(可从视频配套资料 中下载)复制到/tmp目录,执行下面代码解锁分区

    cd /tmp
    chmod +x mitool_mip
    ./mitool_mip unlock
    
  4. 执行完步骤4系统会自动重启,重启后重新获取ROOT权限,用WinSCP把以下分区备份复制到/tmp/bin目录(如果没有自己的备份,可以使用我的视频配套资料 中的文件)

    firmware.bin
    kernel.bin
    rootfs.bin
    rootfs_data.bin
    obr.bin

    执行如下命令恢复分区

    mtd write firmware.bin firmware
    mtd write firmware.bin firmware1
    mtd write kernel.bin kernel
    mtd write rootfs.bin rootfs
    mtd write rootfs_data.bin rootfs_data
    mtd write obr.bin obr
    

    到此如果不需要固化ROOT权限,可以执行mtd erase crash锁定分区,结束任务

  5. 如果需要固化ROOT权限,继续用WinSCP把解锁工具(可从视频配套资料中下载)mitool_mips复制到/tmp目录,执行下面代码固化ROOT权限

    cd /tmp
    chmod +x mitool_mip
    ./mitool_mip hack
    

    此代码执行完毕后会自动固化ROOT权限,并锁定分区后重启。

  6. 目前只能固化telnet权限,ssh权限需要在每次重启后登陆telnet,执行下面代码获取

    sed -i 's/channel=.*/channel="debug"/g' /etc/init.d/dropbear
    /etc/init.d/dropbear start
    

网飞合租:https://d.126126.xyz/5
自用机场:https://d.126126.xyz/3
youtube:https://www.youtube.com/c/ericwang618
哔哩哔哩:https://space.bilibili.com/221010336
Telegram:https://t.me/first_sunlight
个人网站:https://www.126126.xyz
合作邮箱:[email protected]


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK