I bricked my router (xiaomi R3) when I tried the install Openwrt. but After that, I tried to recover using
USB-to-TTL. I connect with
ROUTER GND to USB-TTL GND
ROUTER Tx to USB-TTL Rx
ROUTER Rx to USB-TTL Tx
and used baud rate 115200 / 9600 / and another one and used putty but when router boots up I'm getting some garbage output and after that some text output and then router goes to restart loop.
I'm not getting any option to boot from TFTP server.
I tried to alter the cable to check if cable is faulty or not but no luck.
That looks like an unreliable connection (likely GND), also make sure that you adaptor is 3.3 volts based (pl2303 isn't necessarily and ttl usually refers to 5 volts), as this can cause similar symptoms..
That is usually because the bootloader and the kernel use different baud rates. The one that doesn't match your setting will be garbled and the one that does will be clear.
The text that appears before it reboots would likely tell why it reboots.
Judging by the URLs you're supposed to post to the router, you should be able to reenable the serial console by using URLs only, instead of going the all the way via ssh, but I guess it's easier
to just follow the instructions
Ah, my bad, guess I didnt' watch it till the end
In that case, no there's not much you can do, since the parameters I'm referring to weren't changed before you got stuck.
Since the present firmware won't boot you need to do a recovery which I think is based on putting stock firmware on a USB drive then plugging that drive into the router and holding down the reset button to make the bootloader flash it.
Can't thank you enough for the baud rate. I wasted a few hours with my hlk-7628 module. I was checking solder joints, ground connections, etc. Then your comment helped me. Thank you.