Compiling Jetson TX1/TX2 source code: Difference between revisions

Line 353: Line 353:
Inside of the bootloader directory you will find several binaries or components, to get a description of these please read the [http://http.download.nvidia.com/tegra-public-appnotes/t210-nvtboot-flow.html nvtboot wiki page].
Inside of the bootloader directory you will find several binaries or components, to get a description of these please read the [http://http.download.nvidia.com/tegra-public-appnotes/t210-nvtboot-flow.html nvtboot wiki page].


== Steps ==
== DTC ==
 
U-boot requires the Device Tree Compiler (dtc) which is used to compile device tree files contained in the U-Boot source tree. One version is included inside of the kernel. However, that binary is too old according to u-boot when trying to use that one
 
<pre>
*** Your dtc is too old, please upgrade to dtc 1.4 or newer
$DEVDIR/images/dtc -v
Version: DTC 1.2.0-g37c0b6a0
</pre>
 
=== Build DTC ===
 
 
 
== u-boot steps ==


1. Backup original uboot files. You see which platform you are using checking the file in $DEVDIR/TX1/Linux_for_Tegra_tx1/jetson-tx1.conf, it says:
1. Backup original uboot files. You see which platform you are using checking the file in $DEVDIR/TX1/Linux_for_Tegra_tx1/jetson-tx1.conf, it says:
Line 367: Line 381:
</pre>
</pre>


2. Go to uboot and set environment variables
2. Go to uboot and set environment variables. You need to export the images directory path in order to allow u-boot find the DTC


<pre>
<pre>
cd $DEVDIR/TX1/Linux_for_Tegra_tx1/sources/u-boot_source/
cd $DEVDIR/TX1/Linux_for_Tegra_tx1/sources/u-boot_source/
PATH=$DEVDIR/images:$PATH
export CROSS_COMPILE=/opt/linaro/gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
export CROSS_COMPILE=/opt/linaro/gcc-linaro-5.3-2016.02-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
export ARCH=arm64
export ARCH=arm64