Difference between revisions of "Linux BSP User Guide for jetson series"

From ESS-WIKI
Jump to: navigation, search
Line 1: Line 1:
 +
<parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black">
 +
=== This page contains the following errors: ===
 +
<div style="font-family:monospace;font-size:12px">error on line 24 at column 3315: Opening and ending tag mismatch: table line 24 and colgroup </div>
 +
=== Below is a rendering of the page up to the first error. ===
 +
</parsererror>
 +
&lt;parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"&gt;
 +
 +
=== This page contains the following errors: ===
 +
<div style="font-family:monospace;font-size:12px">error on line 24 at column 3164: Opening and ending tag mismatch: table line 24 and colgroup</div>
 +
=== Below is a rendering of the page up to the first error. ===
 +
 +
&lt;/parsererror&gt;
 +
 
== Linux BSP Version ==
 
== Linux BSP Version ==
  
Line 83: Line 96:
 
|-
 
|-
 
! scope="row" | Xavier NX<br/>
 
! scope="row" | Xavier NX<br/>
| style="width: 389px;" | $ cd $TOP/Linux_for_Tegra/186/<br/>$ sudo ./flash.sh -d <span style="color:#800080;">./bootloader/</span><span style="color:#0000FF;">tegra194-epcr7200.dtb</span><span style="color:#0000FF;"></span> &nbsp;<span style="color:#0000FF;">jetson-xavier-nx-devkit-emmc</span> mmcblk0p1<br/>
+
| style="width: 389px;" | $ cd $TOP/Linux_for_Tegra/186/<br/>$ sudo ./flash.sh -d <span style="color:#800080;">./bootloader/</span><span style="color:#0000FF;">tegra194-epcr7200.dtb</span> &nbsp;<span style="color:#0000FF;">jetson-xavier-nx-devkit-emmc</span> mmcblk0p1<br/>
 
| style="width: 438px;" | $ cd $TOP/Linux_for_Tegra/186/<br/>$ sudo ./flash.sh <span style="color:#0000FF;">jetson-xavier-nx-devkit-emmc</span> mmcblk0p1
 
| style="width: 438px;" | $ cd $TOP/Linux_for_Tegra/186/<br/>$ sudo ./flash.sh <span style="color:#0000FF;">jetson-xavier-nx-devkit-emmc</span> mmcblk0p1
 
|-
 
|-
Line 97: Line 110:
 
== Flash DTB ==
 
== Flash DTB ==
  
==== Xavier NX ====
+
{| border="1" cellspacing="1" cellpadding="1" style="width: 891px;"
 +
|-
 +
! scope="row" | <br/>
 +
! scope="col" style="width: 389px;" | EPC-R7200<br/>
 +
! scope="col" style="width: 438px;" | AIR-020<br/>
 +
|-
 +
! scope="row" | Xavier NX<br/>
 +
| style="width: 389px;" | $ cd $TOP/Linux_for_Tegra/186/<br/>$ sudo ./flash.sh -r -k kernel-dtb xavier-nx-epcr7200 mmcblk0p1<br/>
 +
| style="width: 438px;" | $ cd $TOP/Linux_for_Tegra/186/<br/>$ sudo ./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit-emmc mmcblk0p1
 +
|-
 +
! scope="row" | TX2 NX<br/>
 +
| style="width: 389px;" | $ cd $TOP/Linux_for_Tegra/186/<br/>$ sudo ./flash.sh -r -k kernel-dtb tx2-nx-epcr7200 mmcblk0p1<br/>
 +
| style="width: 438px;" | $ cd $TOP/Linux_for_Tegra/186/<br/>$ sudo ./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit-tx2-nx mmcblk0p1<br/>
 +
|-
 +
! scope="row" | Nano
 +
| style="width: 389px;" | $ cd $TOP/Linux_for_Tegra/210/<br/>$ sudo ./flash.sh -r -k DTB nano-epcr7200 mmcblk0p1<br/>
 +
| style="width: 438px;" | $ cd $TOP/Linux_for_Tegra/210/<br/>$ sudo ./flash.sh -r -k kernel-dtb jetson-nano-devkit-emmc mmcblk0p1<br/>
 +
|}
  
EPC-R7200
 
<pre>$ cd $TOP/Linux_for_Tegra/186/
 
$ sudo ./flash.sh -r -k kernel-dtb xavier-nx-epcr7200 mmcblk0p1
 
</pre>
 
  
AIR-020
 
<pre>$ cd $TOP/Linux_for_Tegra/186/
 
$ sudo ./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit-emmc mmcblk0p1
 
</pre>
 
  
==== TX2 NX ====
+
Reference
  
EPC-R7200
+
{| width="760px" cellspacing="0" data-pm-slice="1 1 []" data-en-clipboard="true"
<pre>$ cd $TOP/Linux_for_Tegra/186/
+
|-
$ sudo ./flash.sh -r -k kernel-dtb tx2-nx-epcr7200 mmcblk0p1
+
|
</pre>
+
|}
  
AIR-020
+
{| width="760px" cellspacing="0" data-pm-slice="1 1 []" data-en-clipboard="true"
<pre>$ cd $TOP/Linux_for_Tegra/186/
+
|}
$ sudo ./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit-tx2-nx mmcblk0p1
 
</pre>
 
 
 
==== Nano ====
 
 
 
EPC-R7200
 
<pre>$ cd $TOP/Linux_for_Tegra/210/
 
$ sudo ./flash.sh -r -k DTB nano-epcr7200 mmcblk0p1
 
</pre>
 
 
 
AIR-020
 
<pre>$ cd $TOP/Linux_for_Tegra/210/
 
$ sudo ./flash.sh -r -k kernel-dtb jetson-nano-devkit-emmc mmcblk0p1
 
</pre>
 

Revision as of 02:56, 10 November 2021

<parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black">

This page contains the following errors:

error on line 24 at column 3315: Opening and ending tag mismatch: table line 24 and colgroup

Below is a rendering of the page up to the first error.

</parsererror> <parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black">

This page contains the following errors:

error on line 24 at column 3164: Opening and ending tag mismatch: table line 24 and colgroup

Below is a rendering of the page up to the first error.

</parsererror>

Linux BSP Version

Ubuntu 18.04

Kernel 4.9.201

Build Environment on Host

Currently, we adopt Docker as build environment.

You can get the latest version of advrisc/u18.04-imx8lbv1 Docker image for developing nVidia jetson projects.

Docker command:

$ docker pull advrisc/u18.04-imx8lbv1

Run Docker example

Step1 Run docker container (example)

sudo docker run -it --name jetson_linux_risc -v /home/bsp/myLinux:/home/adv/BSP:rw --privileged advrisc/u18.04-imx8lbv1:latest /bin/bash

Step2 In container, change the user. (example)

 adv@7cc0fa834366:~$ sudo chown adv:adv -R BSP

Install Some tools

$sudo apt-get install expect 

Getting Linux Source Code

EPC-R7200

$ cd ~/BSP
$ mkdir jetson_linux_risc
$ cd jetson_linux_risc
$ git config --global user.name "Your Name"
$ git config --global user.email you@example.com
$ ../repo/repo init -u https://gitlab.wise-paas.com/epc-r7200/manifests.git
$ ../repo/repo sync

AIR-020

$ cd ~/BSP
$ mkdir jetson_linux_risc
$ cd jetson_linux_risc
$ git config --global user.name "Your Name"
$ git config --global user.email you@example.com
$ ../repo/repo init -u https://gitlab.wise-paas.com/air-020/manifests.git
$ ../repo/repo sync

Build Image ( EPC-R7200 / AIR-020 )

Xavier NX / TX2 NX

$ cd $TOP
$ sudo ./scripts/build.sh -s 186

Nano

$ cd $TOP
$ sudo ./scripts/build.sh -s 210

Build Kernel

Xavier NX / TX2 NX

$ cd $TOP
$ sudo ./scripts/build_kernel.sh -s 186

Nano

$ cd $TOP
$ sudo ./scripts/build_kernel.sh -s 210

Flash Image

Before flashing the image, power off the DUT, press recovery button and power on.


EPC-R7200
AIR-020
Xavier NX
$ cd $TOP/Linux_for_Tegra/186/
$ sudo ./flash.sh -d ./bootloader/tegra194-epcr7200.dtb  jetson-xavier-nx-devkit-emmc mmcblk0p1
$ cd $TOP/Linux_for_Tegra/186/
$ sudo ./flash.sh jetson-xavier-nx-devkit-emmc mmcblk0p1
TX2 NX
$ cd $TOP/Linux_for_Tegra/186/
$ sudo ./flash.sh -d ./bootloader/tegra186-epcr7200.dtb  jetson-xavier-nx-devkit-tx2-nx mmcblk0p1
$ cd $TOP/Linux_for_Tegra/186/
$ sudo ./flash.sh jetson-xavier-nx-devkit-tx2-nx mmcblk0p1
Nano $ cd $TOP/Linux_for_Tegra/210/
$ sudo ./flash.sh -d ./bootloader/tegra210-epcr7200.dtb  jetson-nano-devkit-emmc mmcblk0p1
$ cd $TOP/Linux_for_Tegra/210/
$ sudo ./flash.sh jetson-nano-devkit-emmc mmcblk0p1

Flash DTB


EPC-R7200
AIR-020
Xavier NX
$ cd $TOP/Linux_for_Tegra/186/
$ sudo ./flash.sh -r -k kernel-dtb xavier-nx-epcr7200 mmcblk0p1
$ cd $TOP/Linux_for_Tegra/186/
$ sudo ./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit-emmc mmcblk0p1
TX2 NX
$ cd $TOP/Linux_for_Tegra/186/
$ sudo ./flash.sh -r -k kernel-dtb tx2-nx-epcr7200 mmcblk0p1
$ cd $TOP/Linux_for_Tegra/186/
$ sudo ./flash.sh -r -k kernel-dtb jetson-xavier-nx-devkit-tx2-nx mmcblk0p1
Nano $ cd $TOP/Linux_for_Tegra/210/
$ sudo ./flash.sh -r -k DTB nano-epcr7200 mmcblk0p1
$ cd $TOP/Linux_for_Tegra/210/
$ sudo ./flash.sh -r -k kernel-dtb jetson-nano-devkit-emmc mmcblk0p1


Reference