How do i move the debug UART to another?

When I use UART in 40pin connector(pin8 and pin10),I received the message of debug console,they are mixing with the message that my python progame send.I use the terminal find that UART in 40pin connector is ttyTHS1,can I move the uart debug console to another UART device like ttyTHS0?

Hi 2218626225,

Are you using the devkit or custom board for Jetson Nano?
What’s your Jetpack version in use?

Debug console should be at PIN3/PIN4 of J50.
Please share the result of cat /proc/cmdline on your board.
and also the full dmesg for further check.

here is it

tegraid=21.1.2.0.0 ddr_die=4096M@2048M section=512M 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,4 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff780000 core_edp_mv=1125 core_edp_ma=4000 gpt earlycon=uart8250,mmio32,0x70006000 root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0 quiet root=/dev/mmcblk0p1 rw rootwait rootfstype=ext4 console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0

it seems that didn’t conflict with my serial port,but i can receive debug message from pin 8 and 9

Could you remove console=ttyS0,115200n8 console=tty0 in /boot/extlinux/extlinux.conf and also run the following command to verify?

$ sudo systemctl stop nvgetty.service
$ sudo systemctl disable nvgetty.service

Please let me know if you would still get debug messages from PIN8/PIN10 of 40-pins header.

Your method inspire me,I find a path in nvgetty.service,“/etc/systemd/nvgetty.sh”

#!/bin/bash

# SPDX-FileCopyrightText: Copyright (c) 2018-2019 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
 
 # SPDX-License-Identifier: LicenseRef-NvidiaProprietary
 
 #
 
 # NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
 
 # property and proprietary rights in and to this material, related

 # documentation and any modifications thereto. Any use, reproduction,
 
 # disclosure or distribution of this material and related documentation
 
 # without an express license agreement from NVIDIA CORPORATION or
 
 # its affiliates is strictly prohibited.
 
 if [ -e "/proc/device-tree/compatible" ]; then
 
 CHIP="$(tr -d '\0' < /proc/device-tree/compatible)"
 
 if [[ "${CHIP}" =~ "tegra194" ]]; then
 
 setsid /sbin/getty -L 115200 ttyTHS0
 
 elif [[ "${CHIP}" =~ "tegra210" ]]; then
 
 setsid /sbin/getty -L 115200 ttyTHS1
 
 fi
 
 fi

it seem that this file turn on the ttyTHS1 for debug console,I delect things about ttyTHS1,fine,PIN8 and PIN10 never get debug messages,and usb serial debug console still works perfectly

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.