openwrt刷固件恢復(fù)原廠固件

There is little point in merely uninstalling OpenWrt, what you actually want to do, is to replace OpenWrt with the original firmware. You are here, because the wiki-page for your device, does not help you with that. So, first have a look at the flash.layout

To replace OpenWrt with the original firmware, you most probably do not have to change the boot partition, or the partition containing specific information like NVRAM or ART. Even if you overwrote the bootloader when you installed OpenWrt on your device.

通過OpenWrt CLI恢復(fù)原廠

You can use the program mtd for this:

cd /tmp

wget http://www.example.org/original_firmware.bin

mtd -r write /tmp/original_firmware.bin firmware

OpenWrt has no built-in "pleasantries" to prevent you from going back to original firmware. But sometimes you need to be careful, see e.g. back.to.original.firmware.

If you get a error message on the above mtd command like "no valid command given" you are using an old version of mtd which doesn't support the -r or -e parameters.

Download a newer statically compiled version

cd /tmp

wget http://www.freewrt.org/downloads/tools/mtd-static

chmod a+x mtd.static

wget http://www.example.org/original.trx

./mtd.static -e linux -r write original.trx linux

TIP: PLEASE READ - Common mistakes thread section 2 also. It describes when you should use the

openwrt-brcm-2.4-squashfs.trx

image.

Only flash a trx, never flash a bin file?

If you only have a Linksys .bin firmware file, this is not a problem, simply cut off the header before using the commands below:

dd bs=32 skip=1 if=original.bin of=original.trx

TIP: If your replacement firmware has a web interface, remember to flush your browser cache, sessions etc. This will avoid misleading 404 errors.

通過OpenWrt的WebUI管理界面恢復(fù)原廠固件

通過 Booloader恢復(fù)原廠固件

To flash the original firmware back again via the bootloader, please follow the procedures already described in Installing OpenWrt. They are basically the same.

本文章由http://www.wifidog.pro/2015/07/16/openwrt%E5%8D%87%E7%BA%A7%E5%9B%BA%E4%BB%B6-1.html整理編輯铁坎,轉(zhuǎn)載請(qǐng)注明出處

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市苞七,隨后出現(xiàn)的幾起案子熔萧,更是在濱河造成了極大的恐慌艇搀,老刑警劉巖,帶你破解...
    沈念sama閱讀 216,544評(píng)論 6 501
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異宁舰,居然都是意外死亡棚亩,警方通過查閱死者的電腦和手機(jī)蓖议,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,430評(píng)論 3 392
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來讥蟆,“玉大人勒虾,你說我怎么就攤上這事∪惩” “怎么了修然?”我有些...
    開封第一講書人閱讀 162,764評(píng)論 0 353
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)。 經(jīng)常有香客問我愕宋,道長(zhǎng)玻靡,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,193評(píng)論 1 292
  • 正文 為了忘掉前任中贝,我火速辦了婚禮囤捻,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘邻寿。我一直安慰自己最蕾,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,216評(píng)論 6 388
  • 文/花漫 我一把揭開白布老厌。 她就那樣靜靜地躺著瘟则,像睡著了一般。 火紅的嫁衣襯著肌膚如雪枝秤。 梳的紋絲不亂的頭發(fā)上醋拧,一...
    開封第一講書人閱讀 51,182評(píng)論 1 299
  • 那天,我揣著相機(jī)與錄音淀弹,去河邊找鬼丹壕。 笑死,一個(gè)胖子當(dāng)著我的面吹牛薇溃,可吹牛的內(nèi)容都是我干的菌赖。 我是一名探鬼主播,決...
    沈念sama閱讀 40,063評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼沐序,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼琉用!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起策幼,我...
    開封第一講書人閱讀 38,917評(píng)論 0 274
  • 序言:老撾萬榮一對(duì)情侶失蹤邑时,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后特姐,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體晶丘,經(jīng)...
    沈念sama閱讀 45,329評(píng)論 1 310
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,543評(píng)論 2 332
  • 正文 我和宋清朗相戀三年唐含,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了浅浮。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 39,722評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡捷枯,死狀恐怖滚秩,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情铜靶,我是刑警寧澤叔遂,帶...
    沈念sama閱讀 35,425評(píng)論 5 343
  • 正文 年R本政府宣布他炊,位于F島的核電站,受9級(jí)特大地震影響已艰,放射性物質(zhì)發(fā)生泄漏痊末。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,019評(píng)論 3 326
  • 文/蒙蒙 一哩掺、第九天 我趴在偏房一處隱蔽的房頂上張望凿叠。 院中可真熱鬧,春花似錦嚼吞、人聲如沸盒件。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,671評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽炒刁。三九已至,卻和暖如春誊稚,著一層夾襖步出監(jiān)牢的瞬間翔始,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 32,825評(píng)論 1 269
  • 我被黑心中介騙來泰國打工里伯, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留城瞎,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 47,729評(píng)論 2 368
  • 正文 我出身青樓疾瓮,卻偏偏與公主長(zhǎng)得像脖镀,于是被迫代替她去往敵國和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子狼电,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,614評(píng)論 2 353

推薦閱讀更多精彩內(nèi)容