From 490db30299e23f9ba6ffd58f319ed89b76d889da Mon Sep 17 00:00:00 2001 From: dchvs Date: Mon, 25 Jan 2021 15:27:45 -0600 Subject: [PATCH] Add README file --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ca9f742 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ + +# Spiri project installation - WIP + +```bash +LINUX_FOR_TEGRA= +cd $LINUX_FOR_TEGRA + +git clone --recurse-submodules https://git.spirirobotics.com/dchvs/spiri-project.git +cd spiri-project +git checkout develop +git submodule update --remote --recursive + +# Install the CTI BSP +cd CTI-L4T/ +sudo ./install.sh + +# Install the sources +cd $LINUX_FOR_TEGRA +mkdir source/ && cd source/ +rsync -rL ../spiri-project/Jetpack/ . +rsync -rL ../spiri-project/mu_kernel_sources/ . +rsync -rL ../spiri-project/li-mt9m021/ . +rsync -rL ../spiri-project/eg25-g/ kernel/kernel-4.9/drivers/ + +# Compiling the sources +cd $LINUX_FOR_TEGRA +mkdir -p builds/build_ && builds/build_ + +mkdir build modules +make -C ../../source/kernel/kernel-4.9/ ARCH=arm64 O=$PWD/build/ tegra_defconfig +make -C ../../source/kernel/kernel-4.9/ ARCH=arm64 O=$PWD/build/ menuconfig +make -C ../../source/kernel/kernel-4.9/ ARCH=arm64 O=$PWD/build/ LOCALVERSION=-tegra CROSS_COMPILE=${CROSS_COMPILE} -j8 --output-sync=target zImage dtbs modules +make -C ../../source/kernel/kernel-4.9/ ARCH=arm64 O=$PWD/build/ modules_install INSTALL_MOD_PATH=$PWD/modules +``` +