• 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

  • 相关阅读:
    JMeter BeanShell示例
    xpath 函数大全
    XPath教程
    clickhouse集群部署21.6
    mysqldump常见用法(转载)
    从零到一k8s(四)云原生存储Longhorn
    从零到一k8s(三)dns 配置
    centos matplot中文字体显示方框问题解决
    python2 requests模块警告
    python将多张图片显示在一张画布上
  • 原文地址:https://www.cnblogs.com/weihua2020/p/14035097.html
Copyright © 2020-2023  润新知