Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to JetPack 4.3 #5

Merged
merged 1 commit into from
Jan 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This repository holds utilities for working with NVIDIA Jetson Development Kit

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

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.

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

Release Notes:

January, 2020
* v2.0
* Add support for JetPack 4.3

November, 2018
* v1.1.2
* Add support for JetPack 4.1.1 (L4T 31.1.0)
Expand All @@ -43,7 +48,7 @@ July, 2018

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

Copyright (c) 2015-2018 Raffaello Bonghi
Copyright (c) 2015-2020 Raffaello Bonghi

See license for jetson_easy in scripts folder

23 changes: 1 addition & 22 deletions jetsonInfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,7 @@ class terminalColors:
print(" NVIDIA Jetson " + os.environ["JETSON_BOARD"].strip())

#L4T Version
if os.path.exists('/etc/nv_tegra_release'):
with open('/etc/nv_tegra_release','r') as l4tVersionFile:
l4tVersionFileText=l4tVersionFile.read()
textLines=l4tVersionFileText.splitlines()
l4tVersionInfo=textLines[0].split(',')
for entry in l4tVersionInfo:
if 'release' in entry:
# Example: '# R24 (release)'
l4tRelease=entry.split(' ')[1]
l4tRelease=filter(str.isdigit,l4tRelease)
elif 'REVISION' in entry:
# Example: 'REVISION: 2.1'
l4tRevision=entry.split(' ')[2]
elif 'BOARD' in entry:
# Example: 'BOARD: t210ref'
board=entry.split(' ')[2]
print(' L4T ' + l4tRelease + '.' + l4tRevision + ' [ JetPack ' +os.environ['JETSON_JETPACK'].strip()+' ]')
print(' Board: ' + board)
else:
print(terminalColors.FAIL + 'Error: Unable to find L4T Version' + terminalColors.ENDC)
print('Reason: Unable to find file /etc/nv_tegra_release')

print(' L4T ' + os.environ['JETSON_L4T'].strip() + ' [ JetPack ' +os.environ['JETSON_JETPACK'].strip()+' ]')
# Ubuntu version
if os.path.exists('/etc/os-release'):
with open('/etc/os-release', 'r') as ubuntuVersionFile:
Expand Down
Loading