Let me start with the warning, DO NOT FLASH THE ORIGINAL TPLINK FIRMWARE BACK BEFORE FINDING OUT IF YOU NEED TO STRIP THE FIRST NUMBER OF BYTES OUT, YOU WILL BRICK YOUR ROUTER, IF YOU SEE
Failed to erase block
IF YOU DO, YOU NEED TO MAKE SURE YOU GET IT right after that, or you will start to get.
segmentation fault
on every and any command you run, at this stage, when you see this error after the failed to erase block error, your router is bricked, reboot it and it will not boot back up. if this happens, you might (depending on the model you have) have to connect your router to a com port and debrick it.
Now that you know, let’s see how to deal with this
If your firmware download file name has the word boot in it’s file name, you will need to strip out the first 0x20200 bytes (131584 bytes), if you fail to do this, meaning you fail to either identify if you need to do this, or fail to trim them, you will brick your router in the next step, to make matters both, TP-LINK is no longer including the word boot in firmwares with boot.
so to trim
dd if=orig.bin of=tplink.bin skip=257 bs=512
this command means read the file into another, skipping the first 257×512 = 131584 bytes (Which is the number you find above)
Now, you can flash it with the following command
mtd -r write /tmp/tplink.bin firmware
And if it says all is ok, you can now reboot your router into the new firmware
Doesn’t work at all with 1043ND – V5
Bricked just my device 🙁
Question is now how to unbrick it
What do you use to trim the file? dd?
Can I Use dd if=orig.bin of=tplink.bin skip=257 bs=512 to make Stripped frimware for Archer C60 V2?!!! or should I change those numbers 257 and 512 ?!