Main Content

getLinuxVersion

Get information about the Linux environment on the target

Add-On Required: This feature requires the MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms add-on.

Description

example

getLinuxVersion(hwObj) displays the name, version, and other details about the Linux® environment installed on the NVIDIA® hardware. This function is equivalent to running the uname -a command from a Linux terminal on the target.

Examples

collapse all

You can check the name, version, and other details of the Linux OS currently installed on the NVIDIA Jetson™ hardware from the MATLAB® environment using the getLinuxVersion method of the jetson hardware connection object.

To create a live hardware connection object, provide the host name or IP address, user name, and password of the target board.

hwObj = jetson('jetson-board-name','ubuntu','ubuntu');
getLinuxVersion(hwObj);
Linux tegra-ubuntu 4.4.38-tegra #1 SMP PREEMPT Fri Dec 1 06:08:28 
PST 2017 aarch64 aarch64 aarch64 GNU/Linux

Input Arguments

collapse all

Connection to a specific NVIDIA hardware board, specified as a jetson or drive object.

Version History

Introduced in R2018b