This is a great story. Hopefully it encourages others do the same. I have done a similar thing a few years back for another cheap router that had a new revision.
> coreboot's "flashrom" doesn't support SPI NAND flashes, neither exists a suitable applet for the Glasgow, and I didn't want to buy an expensive XGecu >>>T56<<< (my TL866II doesn't support them either).
How can I resurrect a router that doesn't boot? I flashed a nightly version of OpenWRT on my TP Link Archer, and I believe it fails on the bootloader stage.
I don't have any JTAG/serial comms but I could get some if that's the best way. Thanks
You don't need anything except a lan cable. You need to set a static IP to the tftp server machine and name the flashing file properly and it should just work.
Interesting. I did have a working OpenWRT setup initially. I don't recall touching the bootloaders at all and I'm not aware whether they've been set up for the tftp fallback. I'll look into it. Thanks!
Given serial access on an mt7981, you can usually use the UART recovery protocol to boot a bricked device entirely over serial, e.g. with https://github.com/981213/mtk_uartboot just run something like
mtk_uartboot -s /dev/ttyS0 -a -p bl2.ram -f fip.img
This works even if atf and u-boot are corrupt on the device: it's part of the SoC's boot rom.
This is one of the things that makes the filogic routers nice to hack at, the other being that they're arm64 rather than something weird and legacy.
10 comments
[ 3.9 ms ] story [ 34.7 ms ] threadWould the T48 not be sufficient?
Unfortunately it is not clear exactly what flash chip is used. Only thing the T48 doesn't support is OneNAND according to https://www.bulcomp-eng.com/datasheet/XGecu%20T56,%20T48,%20...
I don't have any JTAG/serial comms but I could get some if that's the best way. Thanks
https://openwrt.org/docs/guide-user/installation/generic.fla...
You don't need anything except a lan cable. You need to set a static IP to the tftp server machine and name the flashing file properly and it should just work.
This is one of the things that makes the filogic routers nice to hack at, the other being that they're arm64 rather than something weird and legacy.