Skip to content

Commit

Permalink
Update to L4T 32.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jetsonhacks committed Oct 24, 2019
1 parent e183980 commit ab53a3b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# buildKernelAndModules
Build the Linux Kernel and Modules on board the NVIDIA Jetson Nano Developer Kit

These scripts are for JetPack 4.2.1, L4T 32.2
These scripts are for JetPack 4.2.2, L4T 32.2.1

Scripts to help build the 4.9.140 kernel and modules onboard the Jetson Nano Developer Kit Previous versions may be available in releases.

<em><strong>Note:</strong> The kernel source version must match the version of firmware flashed on the Jetson. For example, the source for the 4.9.140 kernel here is matched with L4T 32.2. This kernel compiled using this source tree may not work with newer versions or older versions of L4T</em>
<em><strong>Note:</strong> The kernel source version must match the version of firmware flashed on the Jetson. For example, the source for the 4.9.140 kernel here is matched with L4T 32.2.1. This kernel compiled using this source tree may not work with newer versions or older versions of L4T</em>

As of this writing, the "official" way to build the Jetson Nano kernel is to use a cross compiler on a Linux PC. This is an alternative which builds the kernel onboard the Jetson itself. These scripts will download the kernel source to the Jetson Nano, and then compile the kernel and selected modules. The newly compiled kernel can then be installed. We recommend a SD card size of 32GB, 64GB preferred.

Expand Down Expand Up @@ -61,6 +61,11 @@ so you can go back and catch errors.
The intended use of this repository is to help automate building known configurations of the kernel and build modules. You should use the kernel-4.9/scripts/config script to set the kernel configuration that you desire. See the 'rootOnUSB' repository on the JetsonHacksNano Github account for an example.

### Release Notes
October, 2019
* vL4T32.2.1
* L4T 32.2.1 (JetPack 4.2.1)
* Better release version parsing

July, 2019
* vL4T32.2
* L4T 32.2 (JetPack 4.2.1)
Expand Down
3 changes: 2 additions & 1 deletion copyImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ while [ "$1" != "" ]; do
-d | --directory ) shift
SOURCE_TARGET=$1
;;
-b | --boot ) BOOT_TARGET=$1
-b | --boot ) shift
BOOT_TARGET=$1
;;
-h | --help ) usage
exit
Expand Down
19 changes: 7 additions & 12 deletions getKernelSources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# MIT License

JETSON_MODEL="NVIDIA Jetson Nano Developer Kit"
L4T_TARGET="32.2"
L4T_TARGET="32.2.1"
SOURCE_TARGET="/usr/src"
KERNEL_RELEASE="4.9"

Expand All @@ -28,24 +28,19 @@ function check_L4T_version()
echo "$LOG Reading L4T version from \"dpkg-query --show nvidia-l4t-core\""

JETSON_L4T_STRING=$(dpkg-query --showformat='${Version}' --show nvidia-l4t-core)
local JETSON_L4T_ARRAY=(${JETSON_L4T_STRING//./ })

#echo ${JETSON_L4T_ARRAY[@]}
#echo ${#JETSON_L4T_ARRAY[@]}

JETSON_L4T_RELEASE=${JETSON_L4T_ARRAY[0]}
JETSON_L4T_REVISION=${JETSON_L4T_ARRAY[1]}
fi

JETSON_L4T_VERSION="$JETSON_L4T_RELEASE.$JETSON_L4T_REVISION"
# For example: 32.2.1-20190812212815
JETSON_L4T_VERSION=$(echo $JETSON_L4T_STRING | cut -d '-' -f 1)
JETSON_L4T_RELEASE=$(echo $JETSON_L4T_VERSION | cut -d '.' -f 1)
# # operator remove prefix in string operations in bash script. Don't forget . eg "32."
JETSON_L4T_REVISION=${JETSON_L4T_VERSION#$JETSON_L4T_RELEASE.}
fi
echo "$LOG Jetson BSP Version: L4T R$JETSON_L4T_VERSION"

}

echo "Getting L4T Version"
check_L4T_version
JETSON_L4T="$JETSON_L4T_VERSION"
echo "Jetson_L4T="$JETSON_L4T

function usage
{
Expand Down
2 changes: 1 addition & 1 deletion scripts/getKernelSources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fi
cd "$SOURCE_TARGET"
echo "$PWD"

wget -N https://developer.download.nvidia.com/embedded/L4T/r32-2_Release_v1.0/Nano-TX1/public_sources.tbz2
wget -N https://developer.nvidia.com/embedded/dlc/r32-2-1_Release_v1.0/Nano-TX1/sources/public_sources.tbz2
# l4t-sources is a tbz2 file
tar -xvf public_sources.tbz2 public_sources/kernel_src.tbz2
tar -xvf public_sources/kernel_src.tbz2
Expand Down

0 comments on commit ab53a3b

Please sign in to comment.