I accidentally flashed incorrect image to TL-WR1043ND v4. Tried fixing it using tftp process but no luck also tried unsuccessfully connecting USB TTL serial cable and GND TX RX pins on router PCB.
I am thinking of desoldering the flash chip and writing the correct image using flashrom and external spi programmer. My problem is I don't have another router to extract working image from. So my question is
Does lede-*factory.bin contain bootloader?
If it doesn't then how to flash lede-*factory.bin using flashrom without overwriting existing bootloader.
Is it possible to split the bootloader from existing image and append it to lede-*factory.bin thus creating an image containing working bootloader plus correct firmware.
Is it possible to built using source code an image containing bootloader.
I modified the dump by "dd if=lede-17.01.4-ar71xx-generic-tl-wr1043nd-v4-squashfs-sysupgrade.bin of=flash_dump.bin seek=257 bs=512 conv=notrunc" and wrote it to flash chip. Is it done correctly? Thank you
Successfully repaired corrupt image of TP-LINK WR1043ND V4 by following steps
Setup Beaglebone Black as spi programmer using instruction provided in https://libreboot.org/docs/install/bbb_setup.html. Instead of desoldering the flash chip from PCB. I took out entire PCB from casing and soldered thin wires directly to flash chip.
Extracted corrupt image from flash chip using flashrom 0.9.9 utility
sudo flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -r dump.bin
Downloaded lede firmware lede-17.01.4-ar71xx-generic-tl-wr1043nd-v4-squashfs-sysupgrade.bin
Repaired corrupt image by merging lede firmware into dump.bin