Run command in Linux shell on SoC board
Connect to Xilinx SoC Board from MATLAB
Create a hardware processor object to connect to a Xilinx® SoC board. You can use the object to perform basic Linux shell operations on the SoC board.
Create a Xilinx processor hardware object and connect to the processor on-board the Xilinx SoC board.
p = xilinxsoc('192.168.1.101', 'root', 'root');
uname command in a Linux shell on the SoC board by
xilinxsoc object function
ans = 'Linux'
p — Connection to processor on SoC board
xilinxsoc object |
command — Linux Command
character vector | string scalar
Linux shell command that you want to run on your SoC board. You can run multiple different Linux system commands, such as listing files in a directory, displaying information about the system, or creating a new directory.
result — Result of system command
Output of the system command run in the Linux shell on your connected SoC board. If there
is no output based on the system command you run,
result is an empty character vector.