Installing TorizonOS to STM32MP2 EV1 Using the STM32 Programmer Tool
1. Overview
This page describes how to deploy the TorizonOS target images to the STM32MP2-EV1 development board.
The procedure documented below will install the U-Boot firmware, Linux kernel and filesystem images to the bootable eMMC disk on the STM32MP2 targer. Having completed the installation, the STM32MP2 will boot to Linux from the eMMC on next reset / power on.
Note that the procedure will erase all data previously that might be present on the eMMC disk.
2. Installing TorizonOS
Perform the following steps:
Follow the instructions in the Setting up the STM32MP257F-EV1 Evaluation Board | Installing the STM32CubeProgrammer tool to install the STM32CubeProgrammer Tool to your Linux host.
Add
STM32_Programmer_CLI
to yourPATH
:$ export PATH=$PATH:/bin: $ STM32_Programmer_CLI ------------------------------------------------------------------- STM32CubeProgrammer v2.14.0 ------------------------------------------------------------------- Usage : STM32_Programmer_CLI.exe [command_1] [Arguments_1][[command_2][Arguments_2]...] ...
Power off the target board.
Select the USB Serial Downloader mode (see in Selecting STM32MP2 EV1 Boot Device ).
Attach an USB Type-C cable between the connector CN15 of the STM32MP2 EV1 and the Linux host.
Attach another USB-C cable between the connector CN21 of the STM32MP2 EV1 and the Linux host. This will power the board on.
Check that the programming USB port has appeared on the host (note the
Device Index
in the output):$ STM32_Programmer_CLI -l usb ------------------------------------------------------------------- STM32CubeProgrammer v2.14.0 ------------------------------------------------------------------- ===== DFU Interface ===== Total number of available STM32 device in DFU mode: 1 Device Index : USB1 USB Bus Number : 002 USB Address Number : 007 Product ID : DFU in HS Mode @Device ID /0x505, @Revision ID /0x2000 Serial number : 002A00194136500B00363653 Firmware version : 0x0110 Device ID : 0x0505
Download the Emcraft release images from the Emcraft site and unpack them into an arbitrary directory on the Linux host. (If you are installing the images built by Yocto, navigate to the
builddir/deploy/images/stm32mp25-eval
directory):$ tar -xf torizon_6.9.0-core-docker-stm32mp25-eval.tar.bz2 $ cd torizon_6.9.0-core-docker-stm32mp25-eval/ $ ls -nh total 1.5G drwxr-xr-x 7 1016 1016 4.0K Dec 25 00:51 arm-trusted-firmware drwxr-xr-x 2 1016 1016 4.0K Dec 25 00:51 fip drwxr-xr-x 5 1016 1016 4.0K Dec 25 00:51 flashlayout_torizon-core-docker -rw-r--r-- 1 1016 1016 1.5G Dec 25 00:52 torizon-core-docker-stm32mp25-eval.ota-ext4
Use the eMMC card Flash Layout file for programming the images to SD card:
Disconnect the cable connected to the CN21.
Set the boot mode for booting from eMMC. (Refer to Selecting STM32MP2 EV1 Boot Device .)
Connect the USB-C cable to the connector CN21, this will power the board on.
From the serial console terminal, monitor the target boot sequence: