From 568b0ddbccd9517ffd404202e3f5a5bc6854656f Mon Sep 17 00:00:00 2001 From: Arnaud Pouliquen Date: Mon, 17 Jun 2024 19:33:07 +0200 Subject: [PATCH] demos: ST: add chapter to compile rpmsg-utils Add link to download toolchain from arm and build the rpms-utils tested with arm-gnu-toolchain-13.2.rel1-aarch64-arm-none-linux-gnueabihf compiler Signed-off-by: Arnaud Pouliquen --- demos/system_reference-ST.rst | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/demos/system_reference-ST.rst b/demos/system_reference-ST.rst index a79c6c4..994571d 100644 --- a/demos/system_reference-ST.rst +++ b/demos/system_reference-ST.rst @@ -151,6 +151,36 @@ Don't forget to properly unmoumt the sdcard partitions. sudo eject /dev/ +Build and install the rpmsg-utils tools +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +This chapter explains how to build and install the `rpmsg-utils `_ +for the STM32MP157C/F-DK2 board. + + + +Download XXXX-none-linux-gnu AArch32 GNU/Linux target cross toolchains from: + `arm developer page `_. + +Build the rpmsg-utils binaries: + +.. code-block:: console + + # has to be updated by the path of the arm toolchain. + export CC="/bin/arm-none-linux-gnueabihf-gcc -mthumb -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7" + make + +Install the tools on the sdcard +.. code-block:: console + + sudo cp rpmsg_destroy_ept rpmsg_export_dev rpmsg_export_ept rpmsg_ping /rootfs/usr/bin/ + +Don't forget to properly unmoumt the sdcard partitions. + +.. code-block:: console + + sudo eject /dev/ + + Demos -----