Difference between revisions of "Linux BSP User Guide for jetson series"
From ESS-WIKI
Line 49: | Line 49: | ||
</pre> | </pre> | ||
− | + | == Build EPC-R7200 / AIR-020 (Xavier NX / TX2 NX ubuntu 18.04) == | |
− | |||
− | == Build EPC-R7200 Xavier NX / TX2 NX ubuntu 18.04 == | ||
<pre>$ cd $TOP | <pre>$ cd $TOP | ||
$ sudo ./scripts/build.sh -s 186 | $ sudo ./scripts/build.sh -s 186 | ||
</pre> | </pre> | ||
− | == Build EPC-R7200 Nano ubuntu 18.04 == | + | == Build EPC-R7200 / AIR-020 (Nano ubuntu 18.04) == |
<pre>$ cd $TOP | <pre>$ cd $TOP | ||
$ sudo ./scripts/build.sh -s 210 | $ sudo ./scripts/build.sh -s 210 | ||
</pre> | </pre> | ||
+ | |||
+ | == Build Kernel == | ||
+ | |||
+ | == EPC-R7200 / AIR-020 == | ||
+ | <pre>$ cd $TOP | ||
+ | $ sudo ./scripts/build_kernel.sh -s 186 | ||
+ | </pre> | ||
+ | |||
+ | == Build EPC-R7200 / AIR-020 (Nano ubuntu 18.04) == | ||
+ | <pre>$ cd $TOP | ||
+ | $ sudo ./scripts/build_kernel.sh -s 210</pre> | ||
== Flash Image == | == Flash Image == |
Revision as of 06:53, 12 October 2021
Contents
- 1 Linux BSP Version
- 2 Build Environment on Host
- 3 Run Docker example
- 4 Install Some tools
- 5 Getting Linux Source Code
- 6 Build EPC-R7200 / AIR-020 (Xavier NX / TX2 NX ubuntu 18.04)
- 7 Build EPC-R7200 / AIR-020 (Nano ubuntu 18.04)
- 8 Build Kernel
- 9 EPC-R7200 / AIR-020
- 10 Build EPC-R7200 / AIR-020 (Nano ubuntu 18.04)
- 11 Flash Image
- 12 Flash DTB
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 EPC-R7200 / AIR-020 (Xavier NX / TX2 NX ubuntu 18.04)
$ cd $TOP $ sudo ./scripts/build.sh -s 186
Build EPC-R7200 / AIR-020 (Nano ubuntu 18.04)
$ cd $TOP $ sudo ./scripts/build.sh -s 210
Build Kernel
EPC-R7200 / AIR-020
$ cd $TOP $ sudo ./scripts/build_kernel.sh -s 186
Build EPC-R7200 / AIR-020 (Nano ubuntu 18.04)
$ cd $TOP $ sudo ./scripts/build_kernel.sh -s 210
Flash Image
Before flashing EPC-R7200 image, power off the DUT, press recovery button and power on.
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 tx2-nx-epcr7200 mmcblk0p1
EPC-R7200 Nano
$ cd $TOP/Linux_for_Tegra/210/ $ sudo ./flash.sh nano-epcr7200 mmcblk0p1
Flash DTB
EPC-R7200 Xavier NX
$ cd $TOP/Linux_for_Tegra/186/ $ sudo ./flash.sh -r -k kernel-dtb xavier-nx-epcr7200 mmcblk0p1
EPC-R7200 TX2 NX
$ cd $TOP/Linux_for_Tegra/186/ $ sudo ./flash.sh -r -k kernel-dtb tx2-nx-epcr7200 mmcblk0p1
EPC-R7200 Nano
$ cd $TOP/Linux_for_Tegra/210/ $ sudo ./flash.sh -r -k DTB nano-epcr7200 mmcblk0p1