Template:ArticleMainWriter Template:ArticleProposedVersion
![]() | ||||||||
Let's start | Develop on Arm® Cortex®-A7 | |||||||
![]() |
Unpack the board | ![]() |
Populate the target and boot the image | ![]() |
Execute basic commands | ![]() |
Use the demo launcher | ![]() |
1. Overview[edit source]
This stage will explain you how to connect the Linux terminal of your board to your host computer through the ST-LINK/V2-1.
Then you will see how to execute basic commands with the Linux command line interface in order to be familiarized with the Linux console.
2. The serial terminal[edit source]
The serial terminal will allow you to communicate with the board trough a UART serial interface.
- Install minicom
sudo apt-get install minicom
- Get the ttyACM device instance that need to be used to access the ST-LINK/V2-1
ls /dev/ttyACM* /dev/ttyACM0
- Connect the minicom to the /dev/ttyACM0 device
minicom -D /dev/ttyACM0 Welcome to minicom 2.7 OPTIONS: I18n Compiled on Nov 15 2018, 20:18:47. Port /dev/ttyACM0, 15:56:03 Press CTRL-A Z for help on special keys
- Press the reset button to reset the board. You should see logs displayed in the minicom window
Put some starting logs here
3. Basic commands[edit source]
3.1. Printing distribution specific information[edit source]
lsb_release -a
LSB Version: core-4.1-noarch:core-4.1-arm
Distributor ID: openstlinux-weston
Description: ST OpenSTLinux - Weston - (A Yocto Project Based Distro) 2.4+openstlinux-4.14-rocko-mp1-18-11-26
Release: 2.4+openstlinux-4.14-rocko-mp1-18-11-26
Codename: rocko
Where:
LSB Version | Version of LSB (Linux Standard Base) against which distribution is compliant |
Distributor ID | String identifier of distributor |
Description | Single line text description of distribution |
Release | Release number of distribution |
Codename | Codename according to distribution release |
3.2. Printing system information[edit source]
uname -a Linux stm32mp1-boards-rev[b/c] 4.14.48 #1 SMP PREEMPT Tue Nov 27 14:41:52 UTC 2018 armv7l armv7l armv7l GNU/Linux
Where:
Linux | Kernel name |
stm32mp1-boards-rev[b/c] | Network node hostname |
4.14.48 | Kernel release |
#1 SMP PREEMPT Tue Nov 27 14:41:52 UTC 2018 | Kernel version |
armv7l | Machine hardware name |
GNU/Linux | Operating system |
3.3. Printing Linux kernel and GCC versions[edit source]
cat /proc/version Linux version 4.14.48 (xxxx@yyyy) (gcc version 7.3.0 (GCC)) #1 SMP PREEMPT Tue Nov 27 14:41:52 UTC 2018
Where:
Linux | Kernel name |
version 4.14.48 | Kernel release |
(xxxx@yyyy) | Person (xxxx) who compiled the kernel, and machine (yyyy) where it happened |
(gcc version 7.3.0 (GCC) ) | Version of the GCC compiler used to compile the kernel |
#1 SMP PREEMPT Tue Nov 27 14:41:52 UTC 2018 | Kernel version; type of kernel (SMP) and date and time of the kernel compilation |
3.4. Printing the amount of disk space available on all mounted file systems[edit source]
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 719M 347M 334M 52% /
devtmpfs 372M 0 372M 0% /dev
tmpfs 436M 0 436M 0% /dev/shm
tmpfs 436M 14M 423M 4% /run
tmpfs 436M 0 436M 0% /sys/fs/cgroup
tmpfs 436M 4.0K 436M 1% /tmp
/dev/mmcblk0p4 58M 7.7M 46M 15% /boot
tmpfs 436M 160K 436M 1% /var/volatile
/dev/mmcblk0p7 15G 14G 0 100% /usr/local
/dev/mmcblk0p5 15M 8.7M 4.7M 65% /vendor
tmpfs 88M 0 88M 0% /run/user/0
Where:
Filesystem | Source of the mount point, usually a device |
Size | Total size in human readable format (e.g. 1K, 234M, 2G) |
Used | Used size in human readable format |
Available | Available size in human readable format |
Use% | Percentage of used size divided by the total size |
Mounted on | Mount point |
3.5. ssh connection (only if Ethernet cable is connected)[edit source]
![]() |
![]() |
![]() |