-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quickstart: add sparcv8leon3-gr716-mimas target #204
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# Running system on <nobr>sparcv8leon3-gr716-mimas</nobr> | ||
|
||
These instructions describe how to run Phoenix-RTOS on the LEON3/GR716 emulated | ||
on Mimas A7 Mini FPGA which is called `sparcv8leon3-gr716-mimas`target. | ||
Note that the build artifacts, including the system image should be provided in the `_boot` directory. If you | ||
have not built the system image yet, please refer to the [Building Phoenix-RTOS image](../building/index.md) section. | ||
|
||
## Connecting the board | ||
|
||
Connect the board to the computer using a USB cable which provide power to the board (There is pin jumper that | ||
determinate which power line will be in use). | ||
|
||
Communication with the board in this case is provided via USB-UART converters connected to connector `P4` | ||
|
||
- pins `3-tx (E13 - red)`&`5-rx (D16 - orange)` are used for interfacing with the `phoenixd` server. | ||
- pins `7-tx (E15 - yellow)`&`9-rx (F14 - orange)` are used for `psh/plo` console. | ||
- pins `37-M4` & `49-GND` must be connected via `10k` ohm resistor. | ||
|
||
Mimas pinout diagram: | ||
![Image](_images/MimasA7_Mini_WD.png) | ||
maska989 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Source: The MimasA7 Mini board's schematic, available on | ||
<https://numato.com/product/mimas-a7-mini-fpga-development-board/> | ||
|
||
This is how connected device should look like: | ||
![Image](_images/MimasA7_Mini_Connected.jpg) | ||
|
||
## Programming Artix FPGA | ||
|
||
All information about preparing and uploading a bit stream for the Mimas A7 Mini can be found in the | ||
[phoenix-rtos-hdl](https://github.com/phoenix-rtos/phoenix-rtos-hdl/blob/master/leon3-numato-mimas-a7-mini/README.md) | ||
repository. | ||
|
||
`Note: Do not run further steps until FPGA isn't programed properly.` | ||
|
||
## Copying system image using PHFS (phoenixd) | ||
|
||
To load the disk image on the board, first step is to verify which device the `plo` serial interface is connected to | ||
using the following command: | ||
|
||
```bash | ||
ls -l /dev/serial/by-id | ||
``` | ||
|
||
The output of this command depends on what interfaces are used. (Easiest way to determinate which one are correct is | ||
run this command, unplug one of them and again using same command check what device disappears). | ||
|
||
To provide the disk image to the bootloader, `phoenixd` has to be launched with the following arguments | ||
(choose suitable ttys device, in this case, USB-UART converter is connected to pins `3 & 5`): | ||
|
||
`-s` option to `phoenixd` determines from where program will upload files to the device. To simplify this process, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks a bit strange |
||
we can just move to the desired folder and use `.` to point to the current directory. | ||
To do that simply type: | ||
|
||
```bash | ||
maska989 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cd _boot/sparcv8leon3-gr716-mimas | ||
``` | ||
|
||
then | ||
|
||
```bash | ||
sudo ./phoenixd -p /dev/ttyUSB[X] -b 115200 -s . | ||
``` | ||
|
||
In a second terminal start `picocom` using the following command: | ||
|
||
```bash | ||
picocom --imap lfcrlf -b 115200 -r -l /dev/ttyUSB[X] --send-cmd cat | ||
``` | ||
|
||
After resetting the board using the `BTN0` button, you should see `Bootloader` message in the terminal. To load the | ||
bootloader (`plo`) to the RAM, send the image using `picocom --send-cmd`. Type `Ctrl+a` followed by `Ctrl+s`, | ||
enter the path to the `plo.img` file and press `Enter`. The file is located in the `_boot/sparcv8leon3-gr716-mimas` | ||
directory. Refer to the image below: | ||
|
||
![Image](_images/gr716-mimas-picocom-send.png) | ||
|
||
If the image has been loaded correctly, you should see system startup logs. | ||
|
||
![Image](_images/gr716-mimas-loading.png) | ||
|
||
## Using the Phoenix-RTOS | ||
|
||
After loading, Phoenix-RTOS will be launched and the `psh` shell command prompt will appear in the terminal. | ||
|
||
![Image](_images/gr716-mimas-start.png) | ||
|
||
To get the available command list type: | ||
|
||
```console | ||
help | ||
``` | ||
|
||
![Image](_images/gr716-mimas-help.png) | ||
|
||
To get the list of working processes type: | ||
|
||
```bash | ||
ps | ||
``` | ||
|
||
![Image](_images/gr716-mimas-ps.png) | ||
|
||
## See also | ||
|
||
1. [Running system on targets](index.md) | ||
2. [Table of Contents](../index.md) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been merged, but the target's name is incorrect here