This is a follow up to my previous post that was prematurely closed without being resolved.
I am trying to redirect all debug and console output from Orin AGX’s UART3 to UART1 on Jetpack 6.1 (r36.4), including MB1, MB2, kernel and userspace, etc, but currently struggling just to get a normal userspace console on UART1
I have already tried everything in these posts but still do not see anything on the UART lines at all (with scope connected directly to the pins on the module CVM, K54 and K54):
My changes so far include:
aliases {
- serial0 = &tcu;
- serial1 = &uarta;
+ serial0 = &uarta;
+ serial1 = &tcu;
};
chosen {
- bootargs = "console=ttyTCU0,115200n8";
+ bootargs = "console=ttyS0,115200n8";
+ stdout-path = "serial0:115200n8";
};
bus@0 {
serial@3100000 {
- compatible = "nvidia,tegra194-hsuart";
+ compatible = "nvidia,tegra20-uart";
+ current-speed = <115200>;
reset-names = "serial";
status = "okay";
};
in source/hardware/nvidia/t23x/nv-public/tegra234-p3737-0000+p3701-0000.dts
CMDLINE_ADD="mminit_loglevel=4 firmware_class.path=/etc/firmware fbcon=map:0 nospectre_bhb video=efifb:off console=ttyS0,115200"
in p3701.conf.common
init {
nafll_bpmp = <0xc5 0x00 0xc350000 0x00>;
nafll_seu1 = <0x14f 0x00 0x1c3a9000 0x00>;
bpmp_cpu_nic = <0x133 0xc5 0x00 0x00>;
fr_seu1 = <0x14b 0x14f 0x00 0x00>;
i2c_slow = <0x8a 0x121 0xffffffff 0x00>;
aon_i2c_slow = <0x75 0x121 0xffffffff 0x00>;
tach0 = <0x98 0x0e 0x30d400 0x00>;
tach1 = <0x16d 0x0e 0x30d400 0x00>;
i2c1 = <0x30 0x00 0x00 0x02>;
qspi0_2x_pm = <0xc0 0x00 0x00 0x02>;
sdmmc4 = <0x7b 0x00 0x00 0x02>;
seu1 = <0x150 0x00 0x00 0x08>;
- uartc = <0x9b 0x0 0x0 0x08>;
+ uarta = <0x9b 0x66 0x1c1b40 0x08>;
pllref_vcoout = <0x120 0x00 0x00 0x0a>;
eqos_tx_divider = <0x19f 0x00 0xffffffff 0x00>;
eqos_axi = <0x20 0x00 0x7735940 0x02>;
eqos_tx = <0x23 0x00 0x00 0x02>;
eqos_macsec_tx = <0x19e 0x00 0x00 0x02>;
eqos_ptp_ref = <0x21 0x00 0xffffffff 0x02>;
};
lateinit {
...
- uarta = <0x9b 0x66 0x00 0x00>;
uartb = <0x9c 0x66 0x00 0x00>;
+ uartc = <0x9d 0x00 0x00 0x08>;
uartd = <0x9e 0x66 0x00 0x00>;
uarte = <0x9f 0x66 0x00 0x00>;
in bootloader/generic/tegra234-bpmp-3701-0005-3737-0000.dtb
The pinmux is also configured correctly where UART1 RX/TX pins are set correctly in from the spreadsheet:
Orin-main-pinmux.txt (65.7 KB)
Orin-main-gpio-default.txt (5.0 KB)
Here’s the dmesg and live device tree pulled from the Orin.
dmesg.txt (60.7 KB)
tree.txt (398.5 KB)