Go to file
dchvs 490db30299 Add README file 2021-01-25 17:57:03 -06:00
CTI-L4T@554c6d4c02 Add CTI-L4T BSP sources 2021-01-25 14:57:21 -06:00
Jetpack@1ea8207cd3 Add Jetpack-CTI sources 2021-01-25 14:55:09 -06:00
eg25-g@480df7a9f4 Add eg25-g driver submodule 2021-01-25 15:15:51 -06:00
li-mt9m021@0a2227bfb5 Add li-mt9m021 driver submodule 2021-01-25 15:04:53 -06:00
mu_kernel_sources@7fa28fcfc4 Add Spiri sources submodule 2021-01-25 15:12:23 -06:00
.gitmodules Add eg25-g driver submodule 2021-01-25 15:15:51 -06:00
README.md Add README file 2021-01-25 17:57:03 -06:00

README.md

Spiri project installation - WIP

LINUX_FOR_TEGRA=<Linux_for_Tegra/ path>
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_<this build name> && builds/build_<this build name>

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