-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge in FPGA_PFSOC_ES/polarfire-soc-linux-examples from readme-cleanups to next * commit '69273652a2ce6fb8b008ea1a328d184bcf44d84c': amp: comply with mdl linting in READMEs dma: comply with mdl rules in README can: apply mdl linting to README dt-overlays: comply with mdl linting in README fpga-fabric-interfaces: lsram: clean up mdl complaints to README ethernet: iio-http-server: clean up mdl complaints in README pdma: remove trailing newline from README gpio: perform spring cleaning on markdown files README: perform spring cleaning
- Loading branch information
Showing
11 changed files
with
309 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
# PolarFire SoC Linux Examples | ||
|
||
This repository contains a number of example applications that can be used to explore the features of the icicle kit. | ||
These examples will be automatically included as part of the icicle kit Buildroot and Yocto images, in the `/opt/microchip/` directory. These images will contain both the source code for the examples as well as precompiled binaries where possible. | ||
This repository contains a number of example applications that can be used to | ||
explore the features of the icicle kit. | ||
These examples will be automatically included as part of the Icicle kit | ||
Buildroot and Yocto images, in the `/opt/microchip/` directory. | ||
These images will contain both the source code for the examples as well as | ||
precompiled binaries where possible. | ||
|
||
## Hardware Requirements | ||
|
||
## Hardware Requirements: | ||
PolarFire SoC Icicle Kit (MPFS250T-FCVG484EES) | ||
|
||
## Pre-Requisites: | ||
Before running any of these example applications, set up the Icicle kit and ensure Linux can be booted as explained in [Updating PolarFire SoC Icicle-Kit FPGA Design and Linux Image.](https://github.com/polarfire-soc/polarfire-soc-documentation/blob/master/boards/mpfs-icicle-kit-es/updating-icicle-kit/updating-icicle-kit-design-and-linux.md) | ||
## Pre-requisites | ||
|
||
Before running any of these example applications, set up the Icicle kit and | ||
ensure Linux can be booted as explained in the | ||
[Updating PolarFire SoC Icicle-Kit FPGA Design and Linux Image][1] document. | ||
|
||
[1]: https://github.com/polarfire-soc/polarfire-soc-documentation/blob/master/boards/mpfs-icicle-kit-es/updating-icicle-kit/updating-icicle-kit-design-and-linux.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,58 @@ | ||
|
||
# PolarFire SoC AMP RPMsg TTY Example | ||
|
||
This application can be used to send messages to another software context using the /dev/ttyRPMSGx device created | ||
by the RPMSG TTY client driver. | ||
This application can be used to send messages to another software context using | ||
the /dev/ttyRPMSGx device created by the RPMSG TTY client driver. | ||
|
||
For more information on RPMsg protocol, please refer to the | ||
[PolarFire SoC RPMsg documentation][1]. | ||
|
||
[1]: https://github.com/polarfire-soc/polarfire-soc-documentation/tree/master/asymmetric-multiprocessing/rpmsg.md | ||
|
||
For more information on RPMsg protocol, please refer to the [PolarFire SoC RPMsg documentation](https://github.com/polarfire-soc/polarfire-soc-documentation/tree/master/asymmetric-multiprocessing/rpmsg.md). | ||
## Pre-requisites | ||
|
||
## Pre-requisites: | ||
This application should be run on a PolarFire SoC configured in AMP mode. | ||
Instructions on how to run a Linux + FreeRTOS AMP configuration using Yocto or | ||
Buildroot can be found in the [PolarFire SoC AMP documentation][2]. | ||
|
||
This application should be run in PolarFire configured in AMP mode. Instructions on how to run a Linux + FreeRTOS AMP configuration using Yocto | ||
or Buildroot can be found in the [PolarFire SoC AMP documentation](https://github.com/polarfire-soc/polarfire-soc-documentation/tree/master/asymmetric-multiprocessing/amp.md) page. | ||
[2]: https://github.com/polarfire-soc/polarfire-soc-documentation/tree/master/asymmetric-multiprocessing/amp.md | ||
|
||
## Building the Application: | ||
## Building the Application | ||
|
||
Before running the example program, build it by running make: | ||
``` | ||
|
||
```sh | ||
make | ||
``` | ||
|
||
## Running the Application: | ||
## Running the Application | ||
|
||
Once built, it can be run: | ||
|
||
``` | ||
```sh | ||
./rpmsg-tty | ||
``` | ||
|
||
By default the application will try to open /dev/ttyRPMSG4 device. The number four indicates the destination endpoint configured in the FreeRTOS context running the RPMsg console demo. | ||
By default the application will try to open /dev/ttyRPMSG4 device. | ||
The number four indicates the destination endpoint configured in the FreeRTOS | ||
context running the RPMsg console demo. | ||
|
||
Optionally, a different device can be provided as an input to this application: | ||
|
||
``` | ||
```sh | ||
./rpmsg-tty -d /dev/ttyRPMSGx | ||
``` | ||
|
||
where x is the destination endpoint configured in the application running in the associated software context. | ||
where x is the destination endpoint configured in the application running in | ||
the associated software context. | ||
|
||
Once run, the following information should be displayed on the console: | ||
|
||
``` | ||
```text | ||
root@icicle-kit-es-amp: ./rpmsg-tty | ||
Opening device /dev/ttyRPMSG4 | ||
Device is open | ||
Enter message to send or type quit to quit : | ||
``` | ||
|
||
Type a text message on the console and press enter to send to the associated software context. | ||
|
||
Type a text message on the console and press enter to send to the associated | ||
software context. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.