1. Article purpose[edit source]
The purpose of this article is to explain how to integrate Amazon Web Service (AWS) IoT Greengrass on top of STM32MP157C-DK2, managed by Linux on Cortex-A7.
This article explains step by step how to configure Linux software to support AWS IoT Greengrass.
2. Prerequisites[edit source]
2.1. Hardware prerequisites[edit source]
- STM32MP157C-DK2
For more information about this STM32 discovery board and how to start with it, visit this section Getting_started/STM32MP1_boards/STM32MP157C-DK2
2.2. Software prerequisites[edit source]
The STM32MP157C-DK2 board must be populated. To know how to proceed please follow the step-by-step description starting with STM32MP157C-DK2 Let's start article.
2.3. Module 1: environment setup for Greengrass in STM32MP1 system[edit source]
1. You are now ready to update the STM32MP1 for AWS IoT Greengrass. First, run the following commands from a local STM32MP1 terminal window or an SSH terminal window:
adduser --system ggc_user addgroup --system ggc_group
2. Fix DNS issue (Only if you are on DV1.0, not needed from DV 1.1)
rm /etc/resolv.conf ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf systemctl restart systemd-networkd
3. To make sure that you have all required dependencies, download and run the Greengrass dependency checker from the AWS IoT Greengrass Samples repository on GitHub. These commands unzip and run the dependency checker script in the Downloads directory.
cd /home/root/ mkdir greengrass-dependency-checker-GGCv1.9.0 cd greengrass-dependency-checker-GGCv1.9.0 wget https://github.com/aws-samples/aws-greengrass-samples/raw/master/greengrass-dependency-checker-GGCv1.9.0.zip unzip greengrass-dependency-checker-GGCv1.9.0.zip modprobe configs ./check_ggc_dependencies | more
Where more appears, press the Spacebar key to display another screen of text.
Your STM32MP1 configuration is complete. Continue to Module 2: Installing the Greengrass Core Software.
3. References[edit source]