小米路由器mini刷机

    xiaoxiao2021-03-25  190

    小米路由器mini刷机并且部署奇奇怪怪的东西

    本文章主要写了这些东西:

    救砖(官方UBOOT)开SSH刷pandorabox配置软件源Uboot

    救砖

    1.下载官方映像http://www.miwifi.com/miwifi_download.html 2.改名miwifi_r1cm_firmware.bin 3.复制到U盘,插上 4.断电摁着reset并插上电,知道黄灯闪烁 5.等待


    开SSH

    1.上https://d.miwifi.com/rom/ssh 2.下载工具包 接下来步骤照上3-5


    刷pandorabox

    1.SSH连上,把从http://downloads.openwrt.org.cn/PandoraBox/Xiaomi-Mini-R1CM下载的固件复制到/tmp 2.执行

    mtd -r write /tmp/Name_of_image OS1

    3.Wait


    配置软件源

    1.系统->软件包->配置

    dest root / dest ram /tmp lists_dir ext /etc/opkg-lists option overlay_root /overlay # notice # dest usb /mnt/sdb1/opkg # Depend on your device arch all 100 arch ramips_24kec 200 arch ramips 300 arch mips 400 arch unkown 500 src/gz barrier_breaker_base http://mirrors.ustc.edu.cn/openwrt/barrier_breaker/14.07/ramips/mt7620a/packages/base src/gz barrier_breaker_luci http://mirrors.ustc.edu.cn/openwrt/barrier_breaker/14.07/ramips/mt7620a/packages/luci src/gz barrier_breaker_management http://mirrors.ustc.edu.cn/openwrt/barrier_breaker/14.07/ramips/mt7620a/packages/management src/gz barrier_breaker_oldpackages http://mirrors.ustc.edu.cn/openwrt/barrier_breaker/14.07/ramips/mt7620a/packages/oldpackages src/gz barrier_breaker_packages http://mirrors.ustc.edu.cn/openwrt/barrier_breaker/14.07/ramips/mt7620a/packages/packages src/gz barrier_breaker_routing http://mirrors.ustc.edu.cn/openwrt/barrier_breaker/14.07/ramips/mt7620a/packages/routing src/gz barrier_breaker_telephony http://mirrors.ustc.edu.cn/openwrt/barrier_breaker/14.07/ramips/mt7620a/packages/telephony

    2.

    cd /tmp wget http://mirrors.ustc.edu.cn/openwrt/barrier_breaker/14.07/ramips/mt7620a/packages/base/libc_0.9.33.2-1_ramips_24kec.ipk opkg install /tmp/libc_0.9.33.2-1_ramips_24kec.ipk

    3.尝试update

    opkg update

    Uboot

    1.Flash deadless uboot

    cd /tmp wget http://downloads.openwrt.org.cn/PandoraBox/Xiaomi-Mini-R1CM/u-boot/uboot-xiaomi-mini-115200.bin -O uboot.bin mtd -r write /tmp/uboot.bin Bootloader

    2.How to use uboot reset开机,黄灯闪烁后松开 电脑使用网线连接lan口,将有线网卡的IP设为静态(192.168.1.X ,255.255.255.0 ,192.168.1.1) 在浏览器中打开192.168.1.1 随意刷机


    Backup

    dd if=/dev/mtd0 of=/extdisks/sda1/rom/ALL.bin dd if=/dev/mtd1 of=/extdisks/sda1/rom/Bootloader.bin dd if=/dev/mtd2 of=/extdisks/sda1/rom/Config.bin dd if=/dev/mtd3 of=/extdisks/sda1/rom/Factory.bin dd if=/dev/mtd4 of=/extdisks/sda1/rom/OS1.bin dd if=/dev/mtd5 of=/extdisks/sda1/rom/rootfs.bin dd if=/dev/mtd6 of=/extdisks/sda1/rom/OS2.bin dd if=/dev/mtd7 of=/extdisks/sda1/rom/overlay.bin dd if=/dev/mtd8 of=/extdisks/sda1/rom/crash.bin dd if=/dev/mtd9 of=/extdisks/sda1/rom/reserved.bin dd if=/dev/mtd10 of=/extdisks/sda1/rom/Bdata.bin

    restore

    mtd -r write /extdisks/sda1/rom/Bootloader.bin Bootloader mtd -r write /extdisks/sda1/rom/Config.bin Config mtd -r write /extdisks/sda1/rom/Factory.bin Factory mtd -r write /extdisks/sda1/rom/OS1.bin OS1 mtd -r write /extdisks/sda1/rom/rootfs.bin rootfs mtd -r write /extdisks/sda1/rom/OS2.bin OS2 mtd -r write /extdisks/sda1/rom/overlay.bin overlay mtd -r write /extdisks/sda1/rom/crash.bin crash mtd -r write /extdisks/sda1/rom/reserved.bin reserved mtd -r write /extdisks/sda1/rom/Bdata.bin Bdata

    解决疑难杂症

    1.Could not lock /var/lock/opkg.lock

    rm -f /var/lock/opkg.lock opkg update
    转载请注明原文地址: https://ju.6miu.com/read-37897.html

    最新回复(0)