Hello,
I am trying to figure out how to disable the serial console on UART0 and use it for communication with an external device as /dev/ttyTHS0
I can successfully use UART2 (/dev/ttyTHS1) for a GPS device and would to do the same for UART0.
I am using Jetson TX1, JetPack 3.3 and Auvidea J140 daughter board.
I have checked other threads in the forum and tried several answers but with no luck so far.
This is what I have tried.
Removed the following line from .conf file
CMDLINE_ADD="console=ttyS0,115200n8 console=tty0 OS=l4t fbcon=map:1 net.ifnames=0";
Set the follwoing lines in .dtsi
serial@70006000 {
compatible = "nvidia,tegra114-hsuart";
status = "okay";
};
serial@70006040 {
compatible = "nvidia,tegra114-hsuart";
status = "okay";
};
serial@70006200 {
compatible = "nvidia,tegra114-hsuart";
status = "okay";
};
serial@70006300 {
compatible = "nvidia,tegra114-hsuart";
status = "okay";
};
Once I rebuild the DTS and flash the device this is what I get from dmesg.
nvidia@tegra-ubuntu:~$ dmesg | grep tty
[ 0.000000] Kernel command line: root=/dev/mmcblk0p1 rw rootwait androidboot.modem=none androidboot.serialno=0085030e0000001c87a5 androidboot.security=non-secure tegraid=21.1.2.0.0 ddr_die=2048M@2048M ddr_die=2048M@4096M section=256M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,0 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff2bf000 nvdumper_reserved=0xff23f000 core_edp_mv=1075 core_edp_ma=4000 tegra_fbmem=0x800000@0x92c9d000 is_hdmi_initialised=1 gpt root=/dev/mmcblk0p1 rw rootwait
[ 0.503383] 70006000.serial: ttyTHS0 at MMIO 0x70006000 (irq = 320, base_baud = 0) is a TEGRA_UART
[ 0.503851] 70006040.serial: ttyTHS1 at MMIO 0x70006040 (irq = 321, base_baud = 0) is a TEGRA_UART
[ 0.504307] 70006200.serial: ttyTHS2 at MMIO 0x70006200 (irq = 322, base_baud = 0) is a TEGRA_UART
[ 0.504752] 70006300.serial: ttyTHS3 at MMIO 0x70006300 (irq = 323, base_baud = 0) is a TEGRA_UART
[ 1.465365] systemd[1]: Created slice system-getty.slice.
[ 1.465972] systemd[1]: Created slice system-serial\x2dgetty.slice.
Any help is greatly appreciated.