This document describes the lab steps for invoking shell commands in a Linux system environment, and the document compression package LINUX-C
From the "itop-Development Board-minilinux-shell_v1.0.zip" is the C program source code.
The shell of the Linux system is the shell of the operating system, providing the user with an interface to use the operating system. It's the command language.
and programming languages, which explain the commands entered by the user and send them to the kernel.
As shown, unzip the "itop-Development Board-minilinux-shell_v1.0.zip" and will unzip the file within the
SHELLLS.C Use the SSH software to copy to Ubuntu, and then open the directory.
Use the command "VI shellls.c" to open the "shellls.c" file, as shown in.
As shown, we can modify the command to the 17th line of the "Popen" function, where the "ls" command is
example, save exit.
As shown, use the command "Arm-none-linux-gnueabi-gcc-4.4.1-o shellls SHELLLS.C-
Static "Compile shellls.c, as shown, using the command" LS "You can see that the Shellls executable file was generated.
Copy the "Shellls" to the USB stick directory, then launch the Development Board, insert the USB stick, refer to the I-MX6 Development Board for use
Manual 11th 11.3.3.1, use the command "Mount/dev/udisk/mnu/disk" to mount the USB drive, as
Shown
As shown, we use the command "./mnt/disk/shellls" in any directory (as the root directory).
View the files that are contained in the current directory.
Beijing Xun Electronics Co., Ltd. is committed to embedded software and hardware design, is a high-end development platform and mobile device solutions to provide
Based on years of technical accumulation, in the industrial, instrumentation, education, medical, automotive and other fields through the OEM/ODM method for
Customers to create value.
This document will be continuously updated and published in many ways to new and old users, hope that the efforts of the electronic will give you the learning
and development to help.
itop-Development Board-MINILINUX-C program Call Shell command