I’m trying to redirect the console output to a USB port (specifically the OTG micro usb port) because I don’t have access to the UART pins on the J21 header.
I tried to add “console=ttyUSB0” in the /boot/extlinux/extlinux.conf file. After a reboot, I confirmed that this new entry appeared in /proc/cmdline however, I’m not receiving any console output from the FTDI usb-to-serial adapter that I have plugged into my TX2.
When I grep dmesg for “console” I get the following-
[ 0.000000] earlycon: Early serial console at MMIO32 0x3100000 (options ‘’)
[ 0.000000] bootconsole [uart0] enabled
[ 0.000000] Kernel command line: … console=ttyUSB0,115200n8 …
[ 0.013886] console [tty0] enabled
[ 0.017437] bootconsole [uart0] diabled
[ 0.150557] console [pstore-1] enabled
I have also verified that CONFIG_USB_SERIAL_CONSOLE is enabled in the kernel and my USB-to-serial device is available at /dev/ttyUSB0. Any suggestions on how to redirect the console over USB would be greatly appreciated. Thanks!