208
edits
Line 322: | Line 322: | ||
</source> | </source> | ||
3. | 3. Get the L4T Nano sources from: <br> | ||
<source lang="bash"> | |||
cd $HOME/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/ | |||
./source_sync.sh -t tegra-l4t-r32.6.1 | |||
</source> | |||
4 | 4. Apply the contents provided in '''4.6_evm_mira130_v0.1.tar''' in the '''sources''' directory:<br> | ||
- First untar the provided tarball: | - First untar the provided tarball: | ||
<pre> | <pre> | ||
Line 334: | Line 334: | ||
</pre> | </pre> | ||
You can then apply the patch: | |||
<pre> | <pre> | ||
quilt push -a | quilt push -a | ||
</pre> | </pre> | ||
6. Make sure to enable MIRA130 driver support: | 6. To compile the code follow the steps: <br> | ||
<source lang="bash"> | |||
export DEVDIR=$HOME/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra | |||
export PATCHESPATH=$HOME/nvidia/nvidia_sdk/JetPack_4.6_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/sources/patches/ | |||
cd $DEVDIR | |||
</source> | |||
<syntaxhighlight lang=bash> | |||
# Create the directory to store the compiled image and dtb | |||
mkdir -p $DEVDIR/images/dtb | |||
</syntaxhighlight> | |||
<syntaxhighlight lang=bash> | |||
export TEGRA_KERNEL_OUT=$DEVDIR/images | |||
export ARCH=arm64 | |||
export KERNEL_DIR=$DEVDIR/sources/kernel/kernel-4.9 | |||
export CROSS_COMPILE=$HOME/l4t-gcc/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- | |||
export LOCALVERSION=-tegra | |||
</syntaxhighlight> | |||
<syntaxhighlight lang=bash> | |||
cd $KERNEL_DIR | |||
</syntaxhighlight> | |||
<syntaxhighlight lang=bash> | |||
make mrproper | |||
</syntaxhighlight> | |||
* Make sure to enable MIRA130 driver support: | |||
<pre> | <pre> | ||
make menuconfig | make O=$TEGRA_KERNEL_OUT tegra_defconfig | ||
make O=$TEGRA_KERNEL_OUT menuconfig | |||
</pre> | </pre> | ||
Line 360: | Line 390: | ||
Go back by hitting the double ''Esc'' key until you get the message: ''Do you want to save your new configuration?'', select ''Yes'' and press ''Enter' | Go back by hitting the double ''Esc'' key until you get the message: ''Do you want to save your new configuration?'', select ''Yes'' and press ''Enter' | ||
* Compile the kernel: | |||
<syntaxhighlight lang=bash> | |||
make O=$TEGRA_KERNEL_OUT CROSS_COMPILE=${CROSS_COMPILE} -j4 zImage | |||
</syntaxhighlight> | |||
* Compile the device tree: | |||
make O=$TEGRA_KERNEL_OUT CROSS_COMPILE=${CROSS_COMPILE} -j4 dtbs | |||
8. Flash the Jetson Nano: | 8. Flash the Jetson Nano: | ||
Make sure the Jetson Nano is in recovery mode. | |||
* Copy the compiled image to the kernel directory. | * Copy the compiled image to the kernel directory. | ||
Line 381: | Line 414: | ||
* Flash the memory following the next guide: | * Flash the memory following the next guide: | ||
<syntaxhighlight lang=bash> | |||
cd $DEVDIR | |||
sudo ./flash.sh jetson-nano-qspi-sd mmcblk0p1 | |||
</syntaxhighlight> | |||
* Reboot the board after the flashing is completed. | |||
==Using the Driver== | ==Using the Driver== |
edits