UART1 acts as default debug port on TX2, R28.1

Hello Tonie,
It looks like you are trying to get console logs on UART2, please make below changes to get console logs on uart2:

  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.