Skip to content

Commit 7623cb3

Browse files
authored
Merge pull request #5 from jetsonhacks/L4T32.3.1
Update to JetPack 4.3
2 parents eb679e4 + 0250361 commit 7623cb3

File tree

3 files changed

+197
-149
lines changed

3 files changed

+197
-149
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This repository holds utilities for working with NVIDIA Jetson Development Kit
33

44
# jetsonInfo
5-
Get information about the NVIDIA Jetson OS environment on NVIDIA Jetson Development Kits (TK1, TX1, TX2, AGX Xavier)
5+
Get information about the NVIDIA Jetson OS environment on NVIDIA Jetson Development Kits (TK1, TX1, TX2, AGX Xavier, Jetson Nano)
66

77
The information about the NVIDIA Jetson Development Kit operating system is spread over a few files. This is a handy tool to use for reference.
88

@@ -23,6 +23,11 @@ The Ubuntu version is derived from the file: '/etc/os-release'
2323
The Linux kernel version is derived from the file: '/proc/version'
2424

2525
Release Notes:
26+
27+
January, 2020
28+
* v2.0
29+
* Add support for JetPack 4.3
30+
2631
November, 2018
2732
* v1.1.2
2833
* Add support for JetPack 4.1.1 (L4T 31.1.0)
@@ -43,7 +48,7 @@ July, 2018
4348

4449
The shell script jetson_variables is derived from jetson_easy: https://github.com/rbonghi/jetson_easy
4550

46-
Copyright (c) 2015-2018 Raffaello Bonghi
51+
Copyright (c) 2015-2020 Raffaello Bonghi
4752

4853
See license for jetson_easy in scripts folder
4954

jetsonInfo.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,7 @@ class terminalColors:
3030
print(" NVIDIA Jetson " + os.environ["JETSON_BOARD"].strip())
3131

3232
#L4T Version
33-
if os.path.exists('/etc/nv_tegra_release'):
34-
with open('/etc/nv_tegra_release','r') as l4tVersionFile:
35-
l4tVersionFileText=l4tVersionFile.read()
36-
textLines=l4tVersionFileText.splitlines()
37-
l4tVersionInfo=textLines[0].split(',')
38-
for entry in l4tVersionInfo:
39-
if 'release' in entry:
40-
# Example: '# R24 (release)'
41-
l4tRelease=entry.split(' ')[1]
42-
l4tRelease=filter(str.isdigit,l4tRelease)
43-
elif 'REVISION' in entry:
44-
# Example: 'REVISION: 2.1'
45-
l4tRevision=entry.split(' ')[2]
46-
elif 'BOARD' in entry:
47-
# Example: 'BOARD: t210ref'
48-
board=entry.split(' ')[2]
49-
print(' L4T ' + l4tRelease + '.' + l4tRevision + ' [ JetPack ' +os.environ['JETSON_JETPACK'].strip()+' ]')
50-
print(' Board: ' + board)
51-
else:
52-
print(terminalColors.FAIL + 'Error: Unable to find L4T Version' + terminalColors.ENDC)
53-
print('Reason: Unable to find file /etc/nv_tegra_release')
54-
33+
print(' L4T ' + os.environ['JETSON_L4T'].strip() + ' [ JetPack ' +os.environ['JETSON_JETPACK'].strip()+' ]')
5534
# Ubuntu version
5635
if os.path.exists('/etc/os-release'):
5736
with open('/etc/os-release', 'r') as ubuntuVersionFile:

0 commit comments

Comments
 (0)