From dadc45b1673ca029f1162068cc84405570b82cf5 Mon Sep 17 00:00:00 2001 From: "bhooshan.supe" Date: Mon, 2 Dec 2019 11:54:58 -0800 Subject: [PATCH] Update to L4T 32.2.3 --- getKernelSources.sh | 2 +- getKernelSourcesNoGUI.sh | 2 +- removeAllKernelSources.sh | 2 +- scripts/copyImage.sh | 4 ++-- scripts/getKernelSources.sh | 2 +- scripts/getKernelSourcesNoGUI.sh | 10 +++++----- scripts/makeKernel.sh | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/getKernelSources.sh b/getKernelSources.sh index 4a64a95..5f63fff 100755 --- a/getKernelSources.sh +++ b/getKernelSources.sh @@ -7,7 +7,7 @@ echo "$JETSON_DESCRIPTION" echo "Jetpack $JETSON_JETPACK [L4T $JETSON_L4T]" # Check to make sure we're installing the correct kernel sources -L4TTarget="28.2.1" +L4TTarget="32.2.3" if [ $JETSON_L4T == $L4TTarget ] ; then echo "Getting kernel sources" sudo ./scripts/getKernelSources.sh diff --git a/getKernelSourcesNoGUI.sh b/getKernelSourcesNoGUI.sh index f6d18d1..ebc0599 100755 --- a/getKernelSourcesNoGUI.sh +++ b/getKernelSourcesNoGUI.sh @@ -7,7 +7,7 @@ echo "$JETSON_DESCRIPTION" echo "Jetpack $JETSON_JETPACK [L4T $JETSON_L4T]" # Check to make sure we're installing the correct kernel sources -L4TTarget="28.2.1" +L4TTarget="32.2.3" if [ $JETSON_L4T == $L4TTarget ] ; then echo "Getting kernel sources" sudo ./scripts/getKernelSourcesNoGUI.sh diff --git a/removeAllKernelSources.sh b/removeAllKernelSources.sh index 8250731..6283ea9 100755 --- a/removeAllKernelSources.sh +++ b/removeAllKernelSources.sh @@ -1,7 +1,7 @@ #!/bin/bash # Remove all of the kernel sources that were downloaded and built during the kernel build process # Note that this will also remove the possibly changed .config file in: -# /usr/src/kernel/kernel-4.4 +# /usr/src/kernel/kernel-4.9 echo "Removing All Kernel Sources" sudo ./scripts/removeAllKernelSources.sh echo "Kernel sources removed" diff --git a/scripts/copyImage.sh b/scripts/copyImage.sh index 43bf32b..3e7161d 100755 --- a/scripts/copyImage.sh +++ b/scripts/copyImage.sh @@ -1,12 +1,12 @@ #!/bin/bash -cd /usr/src/kernel/kernel-4.4 +cd /usr/src/kernel/kernel-4.9 # On the stock Jetson TX2 install, there is no zImage in the boot directory # So we just copy the Image file over # If the zImage is needed, you must either # $ make zImage # or # $ make -# Both of these commands must be executed in /usr/src/kernel/kernel-4.4 +# Both of these commands must be executed in /usr/src/kernel/kernel-4.9 # sudo cp arch/arm64/boot/zImage /boot/zImage # Note that if you are compiling on an external device, like a SSD, you should probably # copy this over to the internal eMMC if that is where the Jetson boots diff --git a/scripts/getKernelSources.sh b/scripts/getKernelSources.sh index e3e0e2c..3abdcd4 100755 --- a/scripts/getKernelSources.sh +++ b/scripts/getKernelSources.sh @@ -3,6 +3,6 @@ source scripts/getKernelSourcesNoGUI.sh # We use QT 5 for the configuration GUI apt-get install qt5-default -y -cd /usr/src/kernel/kernel-4.4 +cd /usr/src/kernel/kernel-4.9 make xconfig diff --git a/scripts/getKernelSourcesNoGUI.sh b/scripts/getKernelSourcesNoGUI.sh index 229bc59..f5b6a50 100755 --- a/scripts/getKernelSourcesNoGUI.sh +++ b/scripts/getKernelSourcesNoGUI.sh @@ -3,12 +3,12 @@ apt-add-repository universe apt-get update apt-get install pkg-config -y cd /usr/src -wget -N https://developer.download.nvidia.com/embedded/L4T/r28_Release_v2.1/public_sources.tbz2 -sudo tar -xvf public_sources.tbz2 public_release/kernel_src.tbz2 -tar -xvf public_release/kernel_src.tbz2 +wget -N https://developer.nvidia.com/embedded/r32-2-3_Release_v1.0/Sources/T186/public_sources.tbz2 +sudo tar -xvf public_sources.tbz2 public_sources/kernel_src.tbz2 +tar -xvf public_sources/kernel_src.tbz2 # Space is tight; get rid of the compressed kernel source -rm -r public_release -cd kernel/kernel-4.4 +rm -r public_sources +cd kernel/kernel-4.9 # Go get the default config file; this becomes the new system configuration zcat /proc/config.gz > .config diff --git a/scripts/makeKernel.sh b/scripts/makeKernel.sh index f76894b..e006418 100755 --- a/scripts/makeKernel.sh +++ b/scripts/makeKernel.sh @@ -3,7 +3,7 @@ # Assumes that the .config file is available in /proc/config.gz # Added check to see if make builds correctly; retry once if not -cd /usr/src/kernel/kernel-4.4 +cd /usr/src/kernel/kernel-4.9 make prepare make modules_prepare # Make alone will build the dts files too