Use SSH over Ethernet when OpenWrt is running. Use a USB-to-TTL adapter for boot logs only after checking the board revision, pinout and signal voltage.
Log in and transfer files over SSH
Connect to the management port. Open Terminal or PowerShell on the computer and replace ROUTER_IP with the current management address. Verify the host fingerprint and use your router credentials. At the router prompt, run the read-only board query below. Use exit to return to the computer.
ssh root@ROUTER_IP
ubus call system board
exit
Run scp on the computer to send a file or retrieve a backup. Replace LOCAL_FILE with its path. For a router that only serves legacy SCP, an OpenSSH client that supports it can take -O after scp. Check file size and SHA-256 at both ends before using the copy.
scp LOCAL_FILE root@ROUTER_IP:/tmp/
scp root@ROUTER_IP:/tmp/Factory.bin .
Read a boot log over serial
Power down the router. Check GND, TX, RX, voltage and baud rate for your board revision. Use a matching USB-TTL adapter and a common ground. To read logs, connect router TX to adapter RX, leave VCC disconnected and power the router separately. On Windows find the COM port in Device Manager, select Serial in PuTTY, enter the port and documented line settings, click Open, then power up. On a Mac use the command below with the actual device and baud rate. Legible boot messages confirm reception; check line settings and voltage if the text is garbled.
ls /dev/cu.*
screen /dev/cu.DEVICE BAUD
Comments