https://wiki.openwrt.org/doc/howto/generic.debrick
變磚后需根據類型進行修復,主要有以下四種:
(1)if only something on the JFFS2 partition is broken, you are still able to → boot into OpenWrt failsafe mode
如果僅僅是JFFS2上部分有問題,可以重啟進入failsafe模式。
(2)if the SquashFS partition or the Kernel is broken, you cannot boot into failsafe mode any longer. But you still have a functioning bootloader and so you should follow the same procedures as when you first → installed OpenWrt via bootloader.
如果是SquashFS部分或者內核壞掉,並且進入不了failsafe模式,但是bootloader還能正常工作,你可以通過啟動完boot后,進行時串口燒寫。
(3)if the bootloader is broken, there are only two options left:
如果bootloader也壞掉了,那就只有兩種方法了:
a)access your hardware through the → JTAG Port, this should allow you to write to the flash. Restore the bootloader.
通過JTAG口,來進行恢復bootloader。
b)or desolder the flash chip, connect it to some device, that does give you write access to it and restore the bootloader.
通過短接芯片上的某些管腳,來恢復bootloader。
======================================================
掛載點:
(1)"/" 是完整的 root文件系統。它包含"/rom" 和 "/overlay"。
(2)"/rom" 包含了所有的基本文件,如busybox,dropbear,iptable;也包含了進入failsafe模式時所需要的默認配置文件;不包含內核(kernel)文件。在此目錄"/rom"下的文件都位於SqashFS partition上,因此不可以被更改或刪除。因為我們使用了overalyFS文件系統,因此可以在JFFS2 partition上創建overlay-whiteout-symlinks。
(3)"/overlay"