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
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
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
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
3.5. ssh connection (only if Ethernet cable is connected)[edit source]
- Get the IP address of your board
ip addr show eth0 3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 00:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff inet 10.xx.xx.xx/22 brd 10.xx.xx.xx scope global dynamic eth0 valid_lft 159045sec preferred_lft 159045sec inet6 fe80::xx:xx:xx:xx/64 scope link valid_lft forever preferred_lft forever
- On the host computer connect the terminal to the board using ssh
ssh root@10.xx.xx.xx
root@stm32mp1:~#