|
我还没实验怕变砖,请大大指点。
http://forums.smallnetbuilder.com/showthread.php?t=8259
02-12-2012. A bug fixed, please download archive and repeat update again.
04-12-2012. Another bug fixed. For now, no PC is needed, you may update CFE right on the router.
Preamble
This archive is for a CFE bootloader upgrade on Asus RT-N66U router from factory version 1.0.1.2 to version 1.0.1.3. The goal is to return CFE possibility to read variables from NVRAM which is lost while NVRAM been upgraded 64Кб in recent stock firmware releases.
Disclaimer
If you don't need restoration of the this possibility or you just don't know what it is, then better do not to touch the bootloader. Damaged CFE will bricks the router! You should represent consequences of the actions and you should understand what you are doing in the update process because only you take responsibility for update success. Or fail.
Problem diagnostics
It's enough to set any the NVRAM variable used by CFE and make sure that CFE ignores it. For example, remember the current BogoMIPS value:
Quote:
# cat /proc/cpuinfo | grep BogoMIPS |
then try to change CPU frequency and reboot router:
Quote:
# nvram set clkfreq=300 && nvram commit && reboot |
If CFE ignores your settings, BogoMIPS value will remain the same because CFE didn't set new CPU frequency.
Updating CFE
Update works only on original ASUS firmware or Merlin's mod, please follow this steps:
1. Download and unpack update script
Get access to the RT-N66U console via Telnet/SSH/Serial and type:
Quote:
2a. Update current CFE
If you did not update before, then type:
Quote:
# ./cfe_update.sh /dev/mtd0ro |
and watch the progress of the update. The script will ask your final decision before update. Please, proceed ifonly two differencies will shown between old and new versions of CFE:
Quote:
--- nvram_orig.txt 2012-12-04 13:49:51.000000000 +0400
+++ nvram_updated.txt 2012-12-04 13:49:51.000000000 +0400
@@ -1 +1 @@
-bl_version=1.0.1.2
+bl_version=1.0.1.3
@@ -16,0 +17 @@
+odmpid=ASUS |
2b. Update CFE, using previously saved CFE backup image
If you already done update before, you may fix it with saved CFE image this way:
Quote:
# ./cfe_update.sh ./cfe.old |
3. Saving old CFE image
Please consider saving your old CFE. A ./cfe.old file will be placed in the same dir with update script, save it to some safe place.
Here is an example of whole script's output when all went well. Script checks current CFE version before update to prevent CFE re-update.
And here is original stock CFE 1.0.1.2 for those who never make a backups
__________________
The Entware. A modern Optware replacement.
Last edited by ryzhov_al; 01-15-2013 at 02:29 AM.
腾达n80 可以刷吗?
|
|