configure uart0 to uart2

i did these changes so that i can get prints on uart2

is there anythings else need to be done ??

  1. To get mb1/bootloader message:
    BCT changes:
    file name: tegra186-mb1-bct-misc-si-l4t.cfg

cpu.nafll_b_cluster_data = 0x11F04461;

debug variables

debug.enable_log = 1;
-debug.uart_instance = 0;
+debug.uart_instance = 2;

sw_carveout variables

  1. To get kernel logs:
    dts changes:
    serial@3100000 {
  • compatible = “nvidia,tegra20-uart”, “nvidia,tegra186-hsuart”;
  • compatible = “nvidia,tegra186-hsuart”;
    console-port;
    sqa-automation-port;
    status = “okay”;
    @@ -53,7 +53,7 @@
    };

serial@c280000 {

  • compatible = “nvidia,tegra186-hsuart”;
  • compatible = “nvidia,tegra20-uart”, “nvidia,tegra186-hsuart”;
    status = “okay”;};
  1. Add ttyS2 in kernel-command line:

-CMDLINE_ADD=“console=ttyS0,115200n8 console=tty1 OS=l4t fbcon=map:0 net.ifnames=0”;
+CMDLINE_ADD=“console=ttyS2,115200n8 console=tty1 OS=l4t fbcon=map:0 net.ifnames=0”;

  1. Connect Serial port to UART2 to get console logs.

hello shrinathchoudhary,

it seems a duplicate issue, let’s tracking at the same discussion thread, Topic 1063240.
thanks