getLinuxVersion - Get information about the Linux environment on the target - MATLAB (original) (raw)
Main Content
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.
Syntax
[getLinuxVersion(hwObj)](#d126e5255)
Description
getLinuxVersion([hwObj](#mw%5F9493d8ee-3375-4d57-a078-036ebdefca88%5Fsep%5Fmw%5Fbcc65819-faa5-4997-9bca-35a8da7d894a))
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
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 thejetson 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
Connection to a specific NVIDIA hardware board, specified as a jetson or drive object.
Version History
Introduced in R2018b
See Also
Functions
- jetson | drive | openShell | system | getPdkorSdkVersion | setupCodegenContext | getL4TVersion | updatePeripheralInfo