Hello community,
I’m trying to debrick a Linksys WRT3200ACM router from a laptop running Freebsd 12.0 release. Essentially this means re-flashing the firmware through a terminal session from the Freebsd host, and sending a firmware image via TFTP. All attempts to establish a terminal session with the router have failed.
The router’s serial port is a JST PH 6 pin connector. The cable is an Adafruit 954 USB to TTL. It includes separate ground, Tx, Rx, and 5v (not needed), connectors.
Although Freebsd is not listed under the cable’s supported OSs, dmesg recognizes the device driver:
Considering the possibility that it may work, configuration entries were added per the handbook instructions in Ch.25 USB Device Mode / USB OTG.
Added entries:
/boot/loader.conf
/etc/ttys
/etc/dev.conf
Terminal session attempt:
Output:
However, there’s no command line prompt, and the laptop freezes to the extent that a hard shutdown is the only way out. Unfortunately, at the moment, this is the only computer available.
The serial cables are indeed attached correctly to the serial port pins.
Any ideas?
I’m trying to debrick a Linksys WRT3200ACM router from a laptop running Freebsd 12.0 release. Essentially this means re-flashing the firmware through a terminal session from the Freebsd host, and sending a firmware image via TFTP. All attempts to establish a terminal session with the router have failed.
The router’s serial port is a JST PH 6 pin connector. The cable is an Adafruit 954 USB to TTL. It includes separate ground, Tx, Rx, and 5v (not needed), connectors.
Although Freebsd is not listed under the cable’s supported OSs, dmesg recognizes the device driver:
$ grep uslcom /var/run/dmesg.boot
Code:
uslcom0 on uhub1
uslcom0 <CP2102 USB to UART Bridge Controller> on usbus0
Considering the possibility that it may work, configuration entries were added per the handbook instructions in Ch.25 USB Device Mode / USB OTG.
Added entries:
/boot/loader.conf
Code:
hw.usb.template=3
usb_template_load=“YES”
umodem_load=“YES”
uslcom_load=“YES”
/etc/ttys
Code:
ttyU0 "/usr/libexec/getty 3wire" vt100 onifconsole secure
ttyU1 "/usr/libexec/getty 3wire" vt100 onifconsole secure
/etc/dev.conf
Code:
notify 100 {
match "system" "DEVFS";
match "subsystem" "CDEV";
match "type" "CREATE";
match "cdev" "ttyU[0-9]+";
action "/sbin/init q";
};
# reboot
Terminal session attempt:
# cu -s 115200 -l /dev/ttyU0
Output:
Code:
connected
However, there’s no command line prompt, and the laptop freezes to the extent that a hard shutdown is the only way out. Unfortunately, at the moment, this is the only computer available.
The serial cables are indeed attached correctly to the serial port pins.
Any ideas?