Compare commits
No commits in common. "master" and "jetpack-4.4.1" have entirely different histories.
master
...
jetpack-4.
42
install.sh
42
install.sh
|
@ -30,7 +30,7 @@ chkhost(){
|
|||
#check if bsp installed in the correct folder on host machine
|
||||
chkfolder(){
|
||||
|
||||
if [ $(basename $(dirname $(dirname $(pwd)))) != "Linux_for_Tegra" ] || [ $(basename $(pwd)) != "CTI-L4T" ]; then
|
||||
if [ $(basename $(dirname $(pwd))) != "Linux_for_Tegra" ] || [ $(basename $(pwd)) != "CTI-L4T" ]; then
|
||||
echo "This BSP should be extracted in the Linux_for_Tegra directory"
|
||||
echo "of your Jetpack install. This install script must be run from the"
|
||||
echo "Linux_for_Tegra/CTI-L4T directory"
|
||||
|
@ -40,67 +40,67 @@ chkfolder(){
|
|||
}
|
||||
|
||||
update_debsrc_list(){
|
||||
if [ -f $PWD/../../rootfs/etc/apt/sources.list.d/nvidia-l4t-apt-source.list ]; then
|
||||
if [ -f ../rootfs/etc/apt/sources.list.d/nvidia-l4t-apt-source.list ]; then
|
||||
echo "Suppressing nvidia-l4t-apt-source"
|
||||
if ! type sed > /dev/null; then
|
||||
mv $PWD/../../rootfs/etc/apt/sources.list.d/nvidia-l4t-apt-source.list $PWD/../../rootfs/etc/apt/sources.list.d/nvidia-l4t-apt-source.list.old
|
||||
mv ../rootfs/etc/apt/sources.list.d/nvidia-l4t-apt-source.list ../rootfs/etc/apt/sources.list.d/nvidia-l4t-apt-source.list.old
|
||||
else
|
||||
sed -i 's/^/#/' $PWD/../../rootfs/etc/apt/sources.list.d/nvidia-l4t-apt-source.list
|
||||
sed -i 's/^/#/' ../rootfs/etc/apt/sources.list.d/nvidia-l4t-apt-source.list
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
install_extra(){
|
||||
cp ./extra/*.deb $PWD/../../nv_tegra/l4t_deb_packages/
|
||||
#cp ./extra/*.asc $PWD/../../rootfs/etc/apt/trusted.gpg.d/
|
||||
cp ./extra/*.list $PWD/../../rootfs/etc/apt/sources.list.d/
|
||||
cp ./extra/*.deb ../nv_tegra/l4t_deb_packages/
|
||||
#cp ./extra/*.asc ../rootfs/etc/apt/trusted.gpg.d/
|
||||
cp ./extra/*.list ../rootfs/etc/apt/sources.list.d/
|
||||
}
|
||||
|
||||
install_key(){
|
||||
cp -f ./key/* $PWD/../../rootfs/etc/apt/trusted.gpg.d/
|
||||
cp -f ./key/* ../rootfs/etc/apt/trusted.gpg.d/
|
||||
}
|
||||
|
||||
install_conf(){
|
||||
|
||||
cp -rf ./conf/* $PWD/../../
|
||||
cp -rf ./conf/* ../
|
||||
|
||||
}
|
||||
|
||||
install_dtb(){
|
||||
cp ./kernel/dtb/* $PWD/../../kernel/dtb/
|
||||
cp ./kernel/dtb/* ../kernel/dtb/
|
||||
|
||||
}
|
||||
|
||||
install_kernel(){
|
||||
# remove old debs
|
||||
rm $PWD/../../kernel/*.deb
|
||||
rm ../kernel/*.deb
|
||||
|
||||
# copy kernel debs
|
||||
cp ./kernel/*.deb $PWD/../../kernel
|
||||
cp ./kernel/*Image $PWD/../../kernel
|
||||
cp ./kernel/kernel_supplements.tbz2 $PWD/../../kernel/
|
||||
cp ./kernel/*.deb ../kernel
|
||||
cp ./kernel/*Image ../kernel
|
||||
cp ./kernel/kernel_supplements.tbz2 ../kernel/
|
||||
}
|
||||
|
||||
|
||||
install_bl(){
|
||||
if [ "$(ls -A ./bl)" ]; then
|
||||
cp -r ./bl/* $PWD/../../bootloader/
|
||||
cp -r ./bl/* ../bootloader/
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
install_rootfs(){
|
||||
if [ "$(ls -A ./rootfs)" ]; then
|
||||
cp -r ./rootfs/* $PWD/../../rootfs/
|
||||
cp -r ./rootfs/* ../rootfs/
|
||||
fi
|
||||
}
|
||||
|
||||
install_ver_file(){
|
||||
|
||||
mkdir -p $PWD/../../rootfs/etc/cti
|
||||
mkdir -p ../rootfs/etc/cti
|
||||
|
||||
echo $CTI_L4T_VER > $PWD/../../rootfs/etc/cti/CTI-L4T.version
|
||||
echo $CTI_L4T_VER > ../rootfs/etc/cti/CTI-L4T.version
|
||||
|
||||
}
|
||||
|
||||
|
@ -144,8 +144,8 @@ chkfolder
|
|||
tar -pxzf resources.tgz
|
||||
|
||||
#install CTI-flash
|
||||
mv cti-flash.sh $PWD/../../
|
||||
chmod +x $PWD/../../cti-flash.sh
|
||||
mv cti-flash.sh ..
|
||||
chmod +x ../cti-flash.sh
|
||||
|
||||
install_conf
|
||||
|
||||
|
@ -159,7 +159,7 @@ install_ver_file
|
|||
|
||||
install_extra
|
||||
|
||||
pushd $PWD/../../
|
||||
pushd ..
|
||||
|
||||
./apply_binaries.sh
|
||||
|
||||
|
|
Loading…
Reference in New Issue