2022年4月12日 星期二

Nvidia AGX Xavier

目前是使用R32.6.1, NVIDIA Jetson AGX Xavier Developer kit 開箱開機
Quick Guide
wget https://developer.nvidia.com/embedded/l4t/r32_release_v6.1/t186/jetson_linux_r32.6.1_aarch64.tbz2
wget https://developer.nvidia.com/embedded/l4t/r32_release_v6.1/t186/tegra_linux_sample-root-filesystem_r32.6.1_aarch64.tbz2
tar jxvf jetson_linux_r32.6.1_aarch64.tbz2
cd Linux_for_Tegra/rootfs/
cp your_path/tegra_linux_sample-root-filesystem_r32.6.1_aarch64.tbz2 ./
sudo tar xpf tegra_linux_sample-root-filesystem_r32.6.1_aarch64.tbz2
( sudo must be used. Otherwise, get an error message from apply_binaries.sh)

cd ..
sudo ./apply_binaries.sh


//Set recovery mode (recovery key first + power key, Press for about 2 seconds )
//type-c to plug into a nearby debug port
//$ lsusb: 0955:7019 NVIDIA Corp. APX

sudo ./flash.sh jetson-xavier mmcblk0p1
Please note:
  1. Uart/debug out from /dev/ttyUSB3

  2. Plugin HDMI interface directly ( DON'T VGA transfer HDMI )
    error message: ...
    ...
    timeout waiting for win assignments to promote
    tegra_nvdisp_head_enable, failed head enable
    ( seems to hang )

  3. hung on "Please complete system configuration setup on the serial port provided by Jetson's USB device mode connection. e.g. /dev/ttyACMx ..."
    => Setting configuration with GUI on the monitor


Build Kernel:
  • Download kernel source code from git:
  • cd Linux_for_Tegra/
    ./source_sync.sh When prompted enter a ‘tag’ name, as provided in the release notes. tag name: (Open another terminal after running source_sync.sh) $ cd Linux_for_Tegra/sources/kernel/kernel-4.9 $ git tag -l tegra-l4t* ... ... tegra-l4t-r32.4.2 tegra-l4t-r32.4.3 tegra-l4t-r32.4.4 tegra-l4t-r32.5 tegra-l4t-r32.5.1 tegra-l4t-r32.6.1 tegra-l4t-r32.7.1 $ cd sources/
  • Build the kernel image with the following build.sh:
  • #!/bin/bash
    
    pwd=$(dirname $(readlink -f $0))
    TEGRA_KERNEL_OUT=out
    export CROSS_COMPILE=/opt/gcc/linaro-7.5-aach64/bin/aarch64-linux-gnu-
    export LOCALVERSION=-tegra
    
    if [ -z "$TEGRA_KERNEL_OUT" ]; then
        mkdir -p $TEGRA_KERNEL_OUT
    fi
    
    make ARCH=arm64 O=$TEGRA_KERNEL_OUT tegra_defconfig
    
    make ARCH=arm64 O=$TEGRA_KERNEL_OUT -j8
    
  • Replace original Image
  • $ cp out/arch/arm64/boot/Image Linux_for_Tegra/kernel/
    $ sudo ./apply_binaries.sh
    

ref:
1. TX2i tegra_nvdisp_head_enable fails if HDMI is connected after boot
2. Jetson Nano平台更改DP1上DisplayPort的设备树3
3. 備份與還原 NVIDIA® Jetson AGX Xavier

沒有留言:

張貼留言