Update board.py for nvidia Jetson boards

Recently, Model names are updated for Jetson Nvidia boards.
This change takes care of model name check of Jetson TX1 nano and Xavier. Change also adds support for
Quill derivatives like storm and lightning.
This commit is contained in:
bibekbasu 2019-08-12 15:59:12 +05:30 committed by GitHub
parent 32fcd6cf30
commit 2051282bbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -403,13 +403,13 @@ class Board:
"""Try to detect the id of aarch64 board."""
board_value = self.detector.get_device_model()
board = None
if 'tx1' in board_value:
if 'tx1' in board_value.lower():
board = JETSON_TX1
elif 'quill' in board_value:
elif 'quill' in board_value or "storm" in board_value or "lightning" in board_value:
board = JETSON_TX2
elif 'xavier' in board_value:
elif 'xavier' in board_value.lower():
board = JETSON_XAVIER
elif 'nano' in board_value or "Nano" in board_value:
elif 'nano' in board_value.lower():
board = JETSON_NANO
return board