Skip to content

Commit ab53a3b

Browse files
committed
Update to L4T 32.2.1
1 parent e183980 commit ab53a3b

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# buildKernelAndModules
22
Build the Linux Kernel and Modules on board the NVIDIA Jetson Nano Developer Kit
33

4-
These scripts are for JetPack 4.2.1, L4T 32.2
4+
These scripts are for JetPack 4.2.2, L4T 32.2.1
55

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

8-
<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>
8+
<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>
99

1010
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.
1111

@@ -61,6 +61,11 @@ so you can go back and catch errors.
6161
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.
6262

6363
### Release Notes
64+
October, 2019
65+
* vL4T32.2.1
66+
* L4T 32.2.1 (JetPack 4.2.1)
67+
* Better release version parsing
68+
6469
July, 2019
6570
* vL4T32.2
6671
* L4T 32.2 (JetPack 4.2.1)

copyImage.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ while [ "$1" != "" ]; do
2121
-d | --directory ) shift
2222
SOURCE_TARGET=$1
2323
;;
24-
-b | --boot ) BOOT_TARGET=$1
24+
-b | --boot ) shift
25+
BOOT_TARGET=$1
2526
;;
2627
-h | --help ) usage
2728
exit

getKernelSources.sh

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# MIT License
55

66
JETSON_MODEL="NVIDIA Jetson Nano Developer Kit"
7-
L4T_TARGET="32.2"
7+
L4T_TARGET="32.2.1"
88
SOURCE_TARGET="/usr/src"
99
KERNEL_RELEASE="4.9"
1010

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

3030
JETSON_L4T_STRING=$(dpkg-query --showformat='${Version}' --show nvidia-l4t-core)
31-
local JETSON_L4T_ARRAY=(${JETSON_L4T_STRING//./ })
32-
33-
#echo ${JETSON_L4T_ARRAY[@]}
34-
#echo ${#JETSON_L4T_ARRAY[@]}
35-
36-
JETSON_L4T_RELEASE=${JETSON_L4T_ARRAY[0]}
37-
JETSON_L4T_REVISION=${JETSON_L4T_ARRAY[1]}
38-
fi
39-
40-
JETSON_L4T_VERSION="$JETSON_L4T_RELEASE.$JETSON_L4T_REVISION"
31+
# For example: 32.2.1-20190812212815
32+
JETSON_L4T_VERSION=$(echo $JETSON_L4T_STRING | cut -d '-' -f 1)
33+
JETSON_L4T_RELEASE=$(echo $JETSON_L4T_VERSION | cut -d '.' -f 1)
34+
# # operator remove prefix in string operations in bash script. Don't forget . eg "32."
35+
JETSON_L4T_REVISION=${JETSON_L4T_VERSION#$JETSON_L4T_RELEASE.}
36+
fi
4137
echo "$LOG Jetson BSP Version: L4T R$JETSON_L4T_VERSION"
4238

4339
}
4440

4541
echo "Getting L4T Version"
4642
check_L4T_version
4743
JETSON_L4T="$JETSON_L4T_VERSION"
48-
echo "Jetson_L4T="$JETSON_L4T
4944

5045
function usage
5146
{

scripts/getKernelSources.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fi
1515
cd "$SOURCE_TARGET"
1616
echo "$PWD"
1717

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

0 commit comments

Comments
 (0)