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

From ESS-WIKI
Jump to: navigation, search
(Created page with "== Linux BSP Version == Ubuntu 18.04 Kernel 4.9.201 == Build Environment on Host == Currently, we adopt [https://www.docker.com/ Docker] as build environment. You can get...")
 
Line 53: Line 53:
 
== Flash Image ==
 
== Flash Image ==
  
== EPC-R7200 Xavier NX ==
+
==== EPC-R7200 Xavier NX ====
 
<pre>$ cd $TOP/Linux_for_Tegra/186/
 
<pre>$ cd $TOP/Linux_for_Tegra/186/
 
$ sudo ./flash.sh xavier-nx-epcr7200 mmcblk0p1
 
$ sudo ./flash.sh xavier-nx-epcr7200 mmcblk0p1
 
</pre>
 
</pre>
  
== EPC-R7200 TX2 NX ==
+
==== EPC-R7200 TX2 NX ====
 
<pre>$ cd $TOP/Linux_for_Tegra/186/
 
<pre>$ cd $TOP/Linux_for_Tegra/186/
 
$ sudo ./flash.sh jetson-xavier-nx-devkit-tx2-nx mmcblk0p1
 
$ sudo ./flash.sh jetson-xavier-nx-devkit-tx2-nx mmcblk0p1
 
</pre>
 
</pre>
  
== EPC-R7200 Nano ==
+
==== EPC-R7200 Nano ====
 
<pre>$ cd $TOP/Linux_for_Tegra/186/
 
<pre>$ cd $TOP/Linux_for_Tegra/186/
 
$ sudo ./flash.sh jetson-nano-devkit-emmc mmcblk0p1
 
$ sudo ./flash.sh jetson-nano-devkit-emmc mmcblk0p1
 
</pre>
 
</pre>
 +
 +
== Flash DTB ==
 +
 +
==== EPC-R7200 Xavier NX ====
 +
<pre>
 +
$ cd $TOP/Linux_for_Tegra/186/
 +
$ sudo ./flash.sh -r -k kernel-dtb xavier-nx-epcr7200 mmcblk0p1
 +
</pre>
 +
 +
 +
 +
<div id="gtx-trans" style="position: absolute; left: 288px; top: 1264.76px;"><div class="gtx-trans-icon"></div></div>

Revision as of 03:34, 7 September 2021

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-rklbv1 Docker image for developing Rockchip RK3399 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

Debian 9.x / Ubuntu18.04

$ 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

Build Kernel

Build EPC-R7200 Xavier NX / TX2 NX ubuntu 18.04

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

Build EPC-R7200 Nano ubuntu 18.04

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

Flash Image

EPC-R7200 Xavier NX

$ cd $TOP/Linux_for_Tegra/186/
$ sudo ./flash.sh xavier-nx-epcr7200 mmcblk0p1

EPC-R7200 TX2 NX

$ cd $TOP/Linux_for_Tegra/186/
$ sudo ./flash.sh jetson-xavier-nx-devkit-tx2-nx mmcblk0p1

EPC-R7200 Nano

$ cd $TOP/Linux_for_Tegra/186/
$ sudo ./flash.sh jetson-nano-devkit-emmc mmcblk0p1

Flash DTB

EPC-R7200 Xavier NX

$ cd $TOP/Linux_for_Tegra/186/
$ sudo ./flash.sh -r -k kernel-dtb xavier-nx-epcr7200 mmcblk0p1