does the erase command just remove the variable strings...where mtd removes the string and the variable clearing the partition completely?
Yes the nvram erase command will keep the nvram structure (header, checksum, length) in the nvram area but will erase the variables.
The mtd command will erase a flash partition (containing one or more flash sectors depending on which partition it is) leaving the partition data set to FF's (flash erase state).
I am of the opinion that nvram erase is the standard command to use and that the mtd command should only be used if the nvram variables are so trashed that the nvram erase command can't find the variables and therefore fails to erase them.
The mtd command can also be used when changing the size of the nvram area (converting a 320 or 610v2 into an E2000/E3000) to get rid of the previous nvram structure.
It is not a command to be used for normal nvram variable erasing, it is not the first command to use.
You don't format your hard disk when you want to get rid of a few files.. _________________ Kernel panic: Aiee, killing interrupt handler!
And, if you get the syntax wrong with mtd, I understand you will be jtagging.... _________________ I fix "shortcuts". If you don't have time to read thoroughly, I don't have time to re-type what you missed.
Joined: 04 Jan 2007 Posts: 11301 Location: Wherever the wind blows- North America
Posted: Sat Aug 07, 2010 13:29 Post subject:
And, if you get the syntax wrong with mtd, I understand you will be jtagging....
Yes...this is correct....I've trashed the flash chip by using the mtd command in the wrong order.
IF you must use the mtd command to clear the nvram partition the syntax is
mtd erase nvram
IF you reverse the "erase" and "mtd" it will blow away the chip data and you MUST use jtag to recover.
redhawk _________________ I currently test dd-wrt on Asus, Buffalo, Linksys, and Netgear. Too many to list.
Looking for more test units (newer models) for the project...got a brick?...PM me to make a hardware donation. (USA) A donation is not a debricking service....it is a way to "Give back" to the dd-wrt project.
I do NOT provide personal assistance through chat or phone....so please don't ask.