I purchased a used linksys EA6400 to install DDWRT and used an online instuructions for the process. Everything was going OK.
I flash the custom DDWRT using TFTP2 and boot to DDWRT.
Enable SSH and make a copy of cfe and nvram
Modified the custom cfe uwing CFEEdit.exe with the MAC Address, WPS info.
Copy the new file to router /tmp/root using WinSCP
An tried to flash the new cfe.
I used the command:
mtd unlock /dev/mtd0
and then
mtd –f write /tmp/root/new6400cfe.bin /dev/mtd0
and also tried.
mtd write –f /tmp/root/new6400cfe.bin /dev/mtd0
I was never able to write the new cfe and always got the following message:
Usage: mtd [ ...] [ ...]
The device is in the format of mtdX (eg: mtd4) or its label.
mtd recognizes these commands:
unlock unlock the device
erase erase all data on device
write |- write (use - for stdin) to device
Following options are available:
-q quiet mode (once: no [w] on writing,
twice: no status messages)
-r reboot after successful command
-f force write without trx checks
-e erase before executing the command
Example: To write linux.trx to mtd4 labeled as linux and reboot afterwards
mtd -r write linux.trx linux
For some reason I dont understand it never worked. Then after several tries I was not sure if I was getting access to mtd and did a
mtd erase mtd0 (I think this was a very bad choice)
Now the router does not boot up and aparently mtd was erased. Before rebooting the router I flash it with the latest DDWRT and it said flash successfull. But got no response after that. Now I realize that I might erase the IP and MacAddress and cannot talk to it via Ethernet port. Anything else that can be done to unbrick it?
Will a JTAG work to only flash mtd0 on this situation?
Not sure if somewhere in the linked forum thread if the actual pinouts were identified as to which hole is for which pin, but that's what I've found so far. _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Joined: 24 Oct 2008 Posts: 1079 Location: Latin America
Posted: Mon Jul 13, 2020 21:49 Post subject:
kernel-panic69 wrote:
Not sure if somewhere in the linked forum thread if the actual pinouts were identified as to which hole is for which pin, but that's what I've found so far.
I haven't JTAG EA series, but from the picture, maybe is like the old Linksys pinout. @orlando: in case you don't find the actual pinout, and if you have a tester available, check for continuity of each port. If one column is grounded, perhaps the other is nTRST, TDI, TDO, TMS, TCK. But before trying to connect anything, make sure the JTAG cable has resistors for each line, should what you find or the above is not the right pinout. _________________ If you want support, please read first the announcements and forum rules.
Si usted desea ayuda, por favor lea primero los anuncios y las reglas del foro.
I was loking for additional information on the TJTAG program online. Will the following commands works on EA Series using the TJTAG Program to flash CFE?
tjtagv2.exe -erase:cfe To erase your router's CFE?
tjtagv2.exe -flash:cfe To flash the CFE back to your router?
So basically find out the JTAG pinout for the EA series. Connect to the JTAG to router, run the JTAG program and make sure it talks to the router. Then use the commands above to erase and flash CFE?
I already heve the original CFE and the modified CFE that I need to flash.
Is flashing the CFE the same as flashing the mtd0?
Joined: 24 Oct 2008 Posts: 1079 Location: Latin America
Posted: Tue Jul 14, 2020 23:47 Post subject:
After you check the JTAG electrical connections, and before erasing anything, make a backup of whatever part the instructions you're following tell you to overwrite.
Also, note that sometimes a serial port connection is useful to understand what is the current status of the system. If you do, start by looking at the boot log. Even more, sometimes you're lucky and the serial port gives you some suggestion on what to do to recover. _________________ If you want support, please read first the announcements and forum rules.
Si usted desea ayuda, por favor lea primero los anuncios y las reglas del foro.
After you check the JTAG electrical connections, and before erasing anything, make a backup of whatever part the instructions you're following tell you to overwrite.
Also, note that sometimes a serial port connection is useful to understand what is the current status of the system. If you do, start by looking at the boot log. Even more, sometimes you're lucky and the serial port gives you some suggestion on what to do to recover.
The problem is that I erased the mtd0 which has the IP Address and MAC Address. Therefore it is my understanding that I cannot use serial connection if I do not have an IP Address. Is that correct? Or is there a way to connect though serial if the bootloader partition has been erased? If there is a way please let me know. My PC does not have a parallel port for the JTAG. I will have to fish an older PC with a parallel connection somewhere.