++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+   Board Support Package for Connect Tech NVIDIA Jetson NX/Nano Orin Carriers
+   BSP Version:        ORIN-NX-NANO-36.3.0 V002
+   Date:               2024/09/16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++    

================================================================================
================================================================================
  1. Introduction
================================================================================
================================================================================

This Board Support Package adds support for the Connect Tech Jetson Orin-NX and 
Orin-NANO family of carrier boards to Linux4Tegra. It includes any extra files 
required to use all the features of Connect Tech carriers. 

Please check Section 3 for supported features for your board and Section 8
for the changes made between versions. You can check which version of 
the BSP you have installed by running: 

cat /etc/cti/CTI-L4T.version

Check for the Latest Version of the CTI-L4T BSP at:
https://connecttech.com/resource-center/l4t-board-support-packages/


================================================================================
================================================================================
  2. Requirements    
================================================================================
================================================================================
    - x86/x64 based host machine running Ubuntu 20.04 or 22.04
    - JetPack 6.0 / L4T 36.3.0 installed (see Section 4)
    - NX Orin or Nano Orin module
    - Connect Tech NX/Nano Orin Carrier 
    - USB Cable for flashing 

*L4T version can be found in /etc/nv_tegra_release and will look like this:
# R36 (release), REVISION: 3.0


================================================================================
================================================================================
  3. BSP Features
================================================================================
================================================================================

================================================================================
  3.1 Product Specific Details
================================================================================

--------------------------------------------------------------------------------
NGX003 (Photon)
--------------------------------------------------------------------------------
    - USB 3.0 Support
    - USB OTG Supported in device mode.
    - HDMI Support
    - Micro SD Card Not Supported on ORIN-NX/ORIN-NANO
    - NVMe Card Support
    - PoE Support
    - Wifi/Bluetooth Card Not Supported on ORIN-NX/ORIN-NANO
        - NVMe/Wifi-bluetooth mux switch must always be on NVMe
          Since device flashes onto NVMe!
    - Cellular Card Support
    - RGB LED Support
    - UART Support
    - I2C Support
    - GPIO Support


--------------------------------------------------------------------------------
NGX007 (Boson)
--------------------------------------------------------------------------------
    - USB 3.0 Support
    - USB OTG Support
    - Display(HDMI)
    - Micro SD Card Not Supported on ORIN-NX/ORIN-NANO
    - GbE Phy Support
    - CAN Support
    - UART Support
    - SPI Support
    - I2C Support
    - PWM Support
    - Wifi/Bluetooth Support
    - NVMe Card Support

--------------------------------------------------------------------------------
NGX010 (Rudi-NX)
--------------------------------------------------------------------------------
    - USB 3.0 Support
    - USB OTG Support
    - HDMI Support
    - NVMe Card Support
    - CAN Support
    - GbE Phy Support
    - Cellular Card Support
    - Wifi/Bluetooth card Support
    - UART Support
    - RS485 Support
    - I2C Support
    - GPIO Support
    - SPI Support
    - PWM Support
    - RTC Battery Support

Supported GMSL Cameras:
	- Intel Realsense

--------------------------------------------------------------------------------
NGX012 (Hadron)
--------------------------------------------------------------------------------
    - USB 3.0 Support
    - USB OTG Support
    - GbE Phy Support
    - NVMe Card Support
    - Wifi/Bluetooth support
    - CAN Support
    - UART Support
    - I2C Support
    - GPIO Support
    - SPI Support
    - PWM Support

--------------------------------------------------------------------------------
NGX015 (Polaris)
--------------------------------------------------------------------------------
    - USB 3.0 Support
    - USB OTG Support
    - GbE Phy Support
    - NVMe Card Support
    - Wifi/Bluetooth support
    - CAN Support
    - M12 GBE sensor support
    - M.2 B-Key modem support
    - Wake on LAN Currently Not Supported
    - Wake on gpio expander Currently Not Supported
    - 2x fan and tach support
    - Pressure/Temp sensor support
    - BMS Support (for reading battery voltage)
    - M12 Isolated I/O support

--------------------------------------------------------------------------------
NGX018 (Hadron GMSL)
--------------------------------------------------------------------------------
    - USB 3.0 Support
    - USB OTG Support
    - GbE Phy Support
    - NVMe Card Support
    - Wifi/Bluetooth support
    - CAN Support
    - UART Support
    - I2C Support
    - GPIO Support
    - PWM Support
    - GMSL Camera Support

Supported GMSL Cameras:
    - Intel Realsense

--------------------------------------------------------------------------------
NGX020 (Boson for Orin)
--------------------------------------------------------------------------------
    - USB 3.0 Support
    - USB OTG Support
    - Display(HDMI)
    - GbE Phy Support
    - CAN Support
    - UART Support
    - SPI Support
    - I2C Support
    - PWM Support
    - Wifi/Bluetooth Support
    - NVMe Card Support

--------------------------------------------------------------------------------
NGX021 (Boson22 for Orin)
--------------------------------------------------------------------------------
    - USB 3.0 Support
    - USB OTG Support
    - Display(HDMI)
    - GbE Phy Support
    - CAN Support
    - UART Support
    - SPI Support
    - I2C Support
    - PWM Support
    - Wifi/Bluetooth Support
    - NVMe Card Support
    - 22-pin CSI camera connector Support

--------------------------------------------------------------------------------
NGX022 (Lepton FPDLink III)
--------------------------------------------------------------------------------
    - USB 3.0 Support
    - USB OTG Support
    - Display(HDMI)
    - GbE Phy Support
    - CAN Support
    - UART Support
    - SPI Support
    - I2C Support
    - PWM Support
    - Wifi/Bluetooth Support
    - NVMe Card Support
    - External Trigger Support

--------------------------------------------------------------------------------
NGX024 (Hadron Dual Mipi) 
--------------------------------------------------------------------------------
    - USB 3.0 Support
    - USB OTG Support
    - GbE Phy Support
    - NVMe Card Support
    - Wifi/Bluetooth support
    - CAN Support
    - UART Support
    - I2C Support
    - GPIO Support
    - SPI Support
    - PWM Support


================================================================================
  3.2 Limitations and Known Issues
================================================================================

1. Micro SD card on CTI Xavier-NX carriers will not work with ORIN-NX or ORIN-NANO,
   As pin mapping for those pins has changed.

2. Camera Port 4 on the Boson Carrier designed for Xavier-NX (NGX007) 
   will not work with ORIN-NX or ORIN-NANO as they do not support CSI_4. Therefore
   only 2 camera 4-lane and 3 camera 2-lane configurations are provided.

   A new carrier design "Boson for Orin (NGX020)" reroutes the 
   csi lanes to stream on 4 ports. 4 camera 2-lane and 2 camera 4-lane 
   configurations for the NGX020.
      
3. Camera capture shows random amounts of tearing, typically at the start of
   a stream. Increased hardware isolation can reduce this error.
   
4. Suspend/Wake functionality causes system error on boot, and should not be 
   enabled.
   
5. We have observed text input lag when using a terminal on Ubuntu's graphical interface.
   Note that this issue is not present through SSH or the console port.

6. Text input lag has been observed when using a terminal on Ubuntu's graphical interface.
   Note that this issue is not present through SSH or the console port. Delay can potentially be
   mitigated by installing the following packages.
   sudo apt install mutter-common libmutter-10-0 gir1.2-mutter-10


================================================================================
================================================================================
  4. Installation
================================================================================
================================================================================

================================================================================
  4.1 Obtaining Nvidia Jetpack
================================================================================

Before Installing the BSP you will need to install JetPack 6.0 on the host
system using NVIDIA SDK Manager (section 4.1.1) or from 
the Nvidia Embedded Download Center (section 4.1.2)

===============================================================================
  4.1.1 Installing JetPack from SDK Manager 
================================================================================

For installing using sdkmanager, please follow installation steps from kdb373 for Jetpack 4.2+
https://connecttech.com/resource-center/kdb373/

================================================================================
  4.1.2 Installing JetPack from Nvidia Embedded Download Center
================================================================================

1. Create a new directory for installing the Jetpack. Referred to as <BSP_ROOT>
   in these instructions. 

2. Go to Jetpack Release Page https://developer.nvidia.com/embedded/jetson-linux-r363

3. Download the "Driver Package (BSP)" and "Sample Root Filesystem" files for
   Orin modules (t234 platform). 

4. Put the "L4T Driver Package (BSP)" and "Sample Root Filesystem" in <BSP_ROOT>.
   Afterwards, you should have the following files in <BSP_ROOT>
   - Jetson_Linux_R36.3.0_aarch64.tbz2
   - Tegra_Linux_Sample-Root-Filesystem_R36.3.0_aarch64.tbz2

5. Extract the "L4T Driver Package" tarball: 

    cd <BSP_ROOT>
    sudo tar -jxf Jetson_Linux_R36.3.0_aarch64.tbz2

6. You should now have a new directory called Linux_for_Tegra in your <BSP_ROOT> folder.
   Extract the "Sample Root Filesystem" into Linux_for_Tegra/rootfs. 

    sudo tar -C Linux_for_Tegra/rootfs/ -xjf Tegra_Linux_Sample-Root-Filesystem_R36.3.0_aarch64.tbz2


================================================================================
 4.2 CTI BSP Installation
================================================================================

1. Copy the CTI-L4T-ORIN-NX-NANO-36.3.0-INTELRS-V###.tgz package into <BSP_ROOT>/Linux_for_Tegra.

    If you are using Nvidia's SDK manager then "<BSP_ROOT>" will be:
   ~/nvidia/nvidia_sdk/<JetPack_Version>_Linux_JETSON_NX_ORIN_TARGETS/
    or
    ~/nvidia/nvidia_sdk/<JetPack_Version>_Linux_JETSON_NANO_ORIN_TARGETS/
    depending on your target module.

    Otherwise if manually installing from the Nvidia Embedded Download Center
    <BSP_ROOT> will be the folder created previously

    cp CTI-L4T-ORIN-NX-NANO-36.3.0-INTELRS-V###.tgz <BSP_ROOT>/Linux_for_Tegra

2. Extract the BSP: tar -xzf CTI-L4T-ORIN-NX-NANO-36.3.0-INTELRS-V###.tgz
    cd <BSP_ROOT>/Linux_for_Tegra
    sudo tar -xzf CTI-L4T-ORIN-NX-NANO-36.3.0-INTELRS-V###.tgz

3. Change into the CTI-L4T directory:
   cd <BSP_ROOT>/Linux_for_Tegra/CTI-L4T

4. Run the install script (as root or sudo) to automatically install the BSP files
   to the correct locations:
    
    sudo ./install.sh
    #return to Linux_for_Tegra
    cd ..

5. The CTI-L4T BSP is now installed on the host system and it should now be able
   to flash the Orin-NX/Orin-NANO module.


================================================================================
================================================================================
  5. Flashing Orin-NX/Orin-NANO Modules
================================================================================
================================================================================
1. Connect an NVMe m.2 card to one of the m.2 slots on your Orin-nx/Orin-nano carrier.

2. Connect the NX/NANO Orin and Carrier to the computer via USB, following the 
   instructions in the appropriate manual.

3. Put the system to be flashed into recovery mode, following the 
   instructions in the appropriate manual


4. There are two options for flashing Jetson modules:

    Using CTI's automated script:
        ./cti-flash.sh
    
        Follow the menu and select your desired configuration. Once selected,
    
        the device will start to flash.


    Using the Manual Method with cti-nvme-flash:

        Note do not add the ".conf" file extension to the <config> parameter:
    
        Manual Flash:  ./cti-nvme-flash.sh cti/<module>/<boardname>/<config> 
    
        <module> is either orin-nx or orin-nano depending on your module.
    
        Examples:  
                ./cti-nvme-flash.sh cti/orin-nx/boson/base
             ./cti-nvme-flash.sh cti/orin-nano/boson/base

5. Once the flashing has completed, the Orin-nx/Orin-nano will reboot 

================================================================================
================================================================================
 6. Upgrading to a New Package Release
================================================================================
================================================================================

Upgrading L4T or CTI-BSP versions without reflashing is not currently supported.


================================================================================
================================================================================
 7. Switching Profiles on Orin-NX/Orin-NANO
================================================================================
================================================================================
1. Open a terminal on the Orin-NX/Orin-NANO

2. Run "sudo cti-orin-nx-nano-fdt.sh"

3. Select the profile you wish to switch to from the menu.

4. Select the target module (Orin-NX or Orin-NANO) from the menu.

5. Restart the system

Note: This script updates the dtb by appending/replacing the FDT variable in extlinux.conf

    
================================================================================
================================================================================
 8. Change Log
================================================================================
================================================================================

Version ORIN-NX-NANO-36.3.0 V002, September 16, 2024
	- Added support for Intel Realsense on Rudi-NX. 

Version ORIN-NX-NANO-36.3.0 V001, June 26, 2024
    - Initial release of Jetpack 6.0 (l4t 36.3.0) for Orin-NX/Orin-NANO with Intel Realsense


================================================================================
================================================================================
 9. Contacting Connect Tech
================================================================================
================================================================================
If you have any problems, questions or suggestions regarding the Board Support
Package and hardware, please feel free to contact Connect Tech Inc. 

Please go to the Connect Tech Resource Center
(https://connecttech.com/support/resource-center/) for product manuals, installation
guides, device drivers, BSPs and technical tips. 

Submit your technical support questions to our support engineers at
https://connecttech.com/support/
Technical Support representatives are available Monday through Friday, from 8:30 a.m.
to 5:00 p.m. Eastern Standard Time.

Contact Information:
    support@connecttech.com
    sales@connecttech.com
    www.connecttech.com

Toll Free:    800-426-8979 (North America only)
Telephone:    +1-519-836-1291
Facsimile:    519-836-4878 (on-line 24 hours)

================================================================================
