I accidentally installed the sysupgrade image directly while installing OpenWRT.
Now the U-boot method does not work.
I have the hardware for UART install.
But couldn't find the exact instructions for this model.
Remove the flash chip from the router and mount it on a SPI programmer. The last 64 kB of the chip is unit specific radio data, and not replaceable any other way, so be sure to read the whole chip and save the contents in a safe place. As a last resort, the radio data could be reinstalled at runtime with kmod-mtd-rw if the next step of writing to the chip corrupts it. I don't think that your flashing the wrong file would have affected the radio data, yet. The other partitions at the end of the chip likely contain the factory MAC address etc.
Then extract the bootloader image from stock firmware as described on the wiki page, and concat it to a sysupgrade firmware, and write this image to the flash chip, being careful that the last 256 kB does not get erased or overwritten. Put the flash chip back in the router.
Hi mk,
How do I make sure that last 256kb is untouched?
Can you help me with specific command that i can use from a linux system, connected via cp2102?
I wouldn't know; it's been a long time since I last used flashrom. The important thing is to make sure you have a good read of the whole chip stored on your PC before trying to write anything.