TX2: Redirect output to RS232

Hello,

I purchased TX2 developer kit. It’s running ubuntu.

Is it possible to configure the ubuntu so all output will be redirected to RS232 and not to the screen ?

Thank you,
Zvika

If you just want serial console that already exists on J21 (but it is 3.3V TTL logic level instead of a physical RS-232 connector). See:
http://www.jetsonhacks.com/2017/03/24/serial-console-nvidia-jetson-tx2/

If you are wanting to keep serial console, and yet remove output to the physically connected monitor during boot, then that shouldn’t be too difficult once Linux is running (and U-Boot doesn’t print to the monitor…U-Boot only prints to serial console). Is this what you want?

Hi linuxdev,

Thank you very much for your reply.

Best regards,
Zvika

For anyone interested, the kernel command line argument “console=ttyS0” causes the kernel to have a regular console during boot with boot messages. The kernel command line argument “console=ttyS0,115200n8” causes the J21 serial console to work while the Linux kernel is running. Both options are normally installed. These have no effect on U-Boot.

Changing these in recent kernels requires changing the device tree. You can see the effective kernel command line via “cat /proc/cmdline”.

Changing device tree has different instructions depending on release. You can see the current device tree via:

dtc -I fs -O dts -o extracted.dts /proc/device-tree