Skip to content

Commit

Permalink
amp: update buildroot instructions for v2022.09
Browse files Browse the repository at this point in the history
The method used for building an AMP payload for the Buildroot SDK has
changed for the v2022.09 release, as a Buildroot "recipe" is required to
install the remoteproc "firmware" to the filesystem. The top level
Makefile no longer handles building the examples, and a
"recipe"/sub-make is used to build the example. The choice between a
bare metal payload & a freeRTOS one has thus moved from a command line
argument to the buildroot_initramfs_defconfig.

Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
  • Loading branch information
ConchuOD committed Sep 28, 2022
1 parent 51952ea commit f6e33cd
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions asymmetric-multiprocessing/amp.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,20 +187,14 @@ The disk image flashed to the device in the step above contains the following pa

#### Build Linux + FreeRTOS/Bare Metal AMP Demo using Buildroot

1. Build the image using the DEVKIT icicle-kit-es-amp and set the AMP_DEMO variable to `freertos` for a Linux+FreeRTOS demo or to `bm` for a Linux+ Bare Metal demo.
1. Build the image using the DEVKIT icicle-kit-es-amp and set the `BR2_PACKAGE_MCHP_AMP_CONTEXT_B` variable to `mpfs-rpmsg-freertos` for a Linux+FreeRTOS demo or to `mpfs-rpmsg-bm` for a Linux+Bare Metal demo. This variable is set in the file `conf/icicle-kit-es-amp/buildroot_initramfs_config`.

Note: If no `AMP_DEMO` variable is set when building in AMP mode, the Linux+FreeRTOS will be set as default.
Note: If the `BR2_PACKAGE_MCHP_AMP_CONTEXT_B` variable is not set when building in AMP mode, the Linux+FreeRTOS will be set as default.

For a Linux+FreeRTOS demo:
Build the image:

```bash
make all DEVKIT=icicle-kit-es-amp AMP_DEMO=freertos
```

For a Linux+Bare metal demo:

```bash
make all DEVKIT=icicle-kit-es-amp AMP_DEMO=bm
make all DEVKIT=icicle-kit-es-amp
```

2. Load the image onto the target as shown in the PolarFire SoC Buildroot SDK [README](https://mi-v-ecosystem.github.io/redirects/repo-polarfire-soc-buildroot-sdk).
Expand Down

0 comments on commit f6e33cd

Please sign in to comment.