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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM