Hi, I thought I'd try OpenWRT on this device (a powerline extender), I updated through the web interface and the device went into a boot loop:
[ 2.729693] /dev/root: Can't open blockdev
[ 2.737948] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 2.752883] Please append a correct "root=" boot option; here are the available partitions:
[ 2.769535] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 2.786002] Rebooting in 1 seconds..
I'm sure this has something to do with an incompatible filesystem layout. But now I'm trying to debrick it, and this isn't going so well either.
I opened up the device, soldered a header for serial and I have a working serial connection for U-boot. So far, so good. But here I'm stuck as there don't seem to be any instructions what to do from here.
Every search I do points me to this page: https://openwrt.org/docs/guide-user/installation/recovery_methods/u-boot_tftp_recovery but unless I'm going blind there's no links on there that point to information about what to do.
I tried downloading the latest firmware from TP-link and load it with tftpboot, this transfers OK, but then it won't boot. The same happens when I do this with the OpenWRT firmware:
U-Boot 1.1.3 (Mar 30 2022 - 14:28:15)
MT7621 # printenv
bootcmd=tftp
bootdelay=1
baudrate=57600
ethaddr="00:AA:BB:CC:DD:10"
ipaddr=192.168.0.254
serverip=192.168.0.184
stdin=serial
stdout=serial
stderr=serial
Environment size: 153/4092 bytes
MT7621 # tftpboot
netboot_common, argc= 1
NetTxPacket = 0x83FE5400
KSEG1ADDR(NetTxPacket) = 0xA3FE5400
NetLoop,call eth_halt !
NetLoop,call eth_init !
Trying Eth0 (10/100-M)
Waitting for RX_DMA_BUSY status Start... done
ETH_STATE_ACTIVE!!
*** Warning: no boot file name; using 'test.bin'
TFTP from server 192.168.0.184; our IP address is 192.168.0.254
Filename 'test.bin'.
TIMEOUT_COUNT=10,Load address: 0x80100000
Loading: checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
Got ARP REPLY, set server/gtwy eth addr (54:ee:75:51:ab:50)
Got it
#################################################################
[...]
##############################################
done
Bytes transferred = 8554153 (8286a9 hex)
NetBootFileXferSize= 008286a9
MT7621 # bootm
## Booting image at 80100000 ...
text base: ffffffff
entry point: ffffffff
Uncompressing Kernel Image ... LZMA ERROR 1 - must RESET board to recover
Because I'm getting the same LZMA error for both the original firmware as well as the OpenWRT firmware I'm suspecting that maybe the file format is not what it is expecting? But if that's the case, what is it expecting?
I do have an USB flasher with a clip for SOIC8 packages, but it has been 20 years since I flashed anything, and it seems that for the direct flash route there seems to be even less information about how to do this. Plus I'm sure I can't just flash the binary file to the chip, right?
Please help me out here, thanks!