zoukankan      html  css  js  c++  java
  • huawei hg225d ttl重刷op --涉及openwrt 恢复出厂设置 -factory reset

    现象:
    huawei hd225d之前刷过uboot,用过一段时间后,无法正常的使用无线client方式连接wifi热点(只要在luci中配置无线client连接wifi热点,op就会自动重启),后来在ssh中fastboot想初始化,结果发现无法启动op(pc无法dhcp获取地址)

    操作:
    1、直接ttl 波特率57600 8数据位1停止位无奇偶校验,板子的接线图如下:

    注意以上板子的tx接 usb转ttl模块上的tx端(注意不是接rx端) 同理,板子的rx接 usb转ttl模块上的rx端(注意不是接tx端)

    2、启动过程发现如下提示:

    以上应该是可以进入failmode

    启动后可以正常进入命令行,如下:

    针对以上的情况,可以factory reset(注意 works on any install with a squashfs / overlayfs setup (the norm for most installations), since it is based on erasing and reformatting the overlayfs.在ext4上不起作用),参考openwrt官网的wiki如下:

    https://openwrt.org/docs/guide-user/troubleshooting/failsafe_and_factory_reset
    参考以上总体来说,有三种方式,如下:
    ①、reset 按钮恢复出厂设置(实际上是hard reset的快捷方式),在电源开启系统启动后,按住按钮至少10s不放,可以在ttl的控制台中看到reset的过程,如下:

    ②、soft factory
    直接在console或ssh中 firstboot && reboot now (实际上firstboot通常同等与jffs2reset命令)如下:

    如果只是在bash shell脚本文件中恢复出厂设置,需要firstboot -y && reboot now
    ③、hard fctory
    umount /overlay && jffs2reset && reboot now
    以上命令的作用:This command will erase and reformat the whole jffs2 partition and create it again. They key for a real “hard reset” is to unmount the overlay partition first and only then issue the jffs2reset (or firstboot) command

    参考:
    https://www.right.com.cn/forum/thread-143721-1-1.html

  • 相关阅读:
    最优比率环 SPFA+二分
    严格次小生成树
    SPFA判断负环BFS+DFS
    poj 1149 PIGS 网络流-最大流 建图理解
    9.20开始的停课日常
    Speed
    [BZOJ4827][Hnoi2017]礼物(FFT)
    中山纪念中学集训日志
    [POJ1151][HDU1542]Atlantis(线段树,扫描线)
    [BZOJ2002][洛谷P3203][Hnoi2010]Bounce 弹飞绵羊(LCT维护链长)
  • 原文地址:https://www.cnblogs.com/weihua2020/p/14035097.html
Copyright © 2011-2022 走看看