-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
guides/lab-assembly/pcengines: initial version
Signed-off-by: Piotr Król <[email protected]>
- Loading branch information
1 parent
4cefc8c
commit 232e490
Showing
2 changed files
with
168 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,167 @@ | ||
# Laboratory stand dedicated to PC Engines platforms assembly guide | ||
|
||
## Introduction | ||
|
||
This document describes platform-specific details for assembling PC Engines | ||
apu2/3/4/6 series testing stands. Author get through the procedure on PC | ||
Engines apu3 in his homelab. Use this document as reference while going through | ||
[Generic Testing Stand | ||
Setup](../../unified-test-documentation/generic-testing-stand-setup.md) | ||
|
||
## Prerequisites | ||
|
||
The below table contains platform-specific information about all elements which | ||
are needed to create testing stands for Protectli machines. | ||
|
||
!!! warning | ||
Please note that using RTE v1.0.0 change way how [OSFV | ||
cli](https://github.com/Dasharo/osfv-scripts/blob/main/osfv_cli/src/osfv/libs/rte.py#L284) | ||
works. On v1.0.0 there is no need for additional step of enabling SPI GPIO, | ||
on v1.1.0 there is. If it would not be reflected in [model | ||
file](https://github.com/Dasharo/osfv-scripts/tree/main/osfv_cli/src/osfv/models) | ||
it may lead to issues. For more details please check | ||
[here](https://github.com/Dasharo/osfv-scripts/issues/86). | ||
|
||
* [RTE v1.1.0](https://shop.3mdeb.com/shop/open-source-hardware/open-source-hardware-3mdeb/rte/) or RTE v1.0.0 | ||
* RTE power supply 5V 2A Micro-USB | ||
* 8x standard female-female connection wire 2.54 mm raster | ||
* 2x RJ45 cable: 1 for RTE and 3 for the platform | ||
|
||
* [apu2/3/4/6](https://www.pcengines.ch/apu2.htm) | ||
|
||
* RS-232 D-Sub-D-Sub cross cable | ||
* Power to the apu2/3/4/6 is delivered by 2.5/5.5 mm DC Jack cable. | ||
|
||
### External flashing enabling | ||
|
||
| RTE J7 pin | PC Engines J6 pin | | ||
|:-----------------:|:-------------------:| | ||
| 1 (NC) | Not connected | | ||
| 2 (GND) | 2 (GND) | | ||
| 3 (CS) | 3 (SPICS#) | | ||
| 4 (SCLK) | 4 (SPICLK) | | ||
| 5 (MISO) | 5 (SPIDI) | | ||
| 6 (MOSI) | 6 (SPIDO) | | ||
| 7 (NC) | Not connected | | ||
| 8 (NC) | Not connected | | ||
|
||
SPI connection can be realized with IDC 8 pin wire, but 7th and 8th wires | ||
have to be opened. | ||
|
||
<!-- | ||
This is something to be confirmed: | ||
### CMOS reset circuit | ||
Connect the RTE J11 header to the platform J10 header using 2.54mm to 2mm | ||
wires as described in the table: | ||
| RTE | PC Engines | | ||
|:---------:|:--------------------------:| | ||
| J11 pin 8 | J10 pin 1 (RTC clr) | | ||
| Any GND | J10 pin 2 (GND) | | ||
--> | ||
|
||
## Theory of operation | ||
|
||
The following sections describe how to use all of the enabled features: | ||
|
||
* serial connection to the platform, | ||
* controlling power supply, | ||
* enabling basic power actions with the platform (power off/power on/reset), | ||
* external flashing with the RTE, | ||
|
||
<!-- | ||
To be confirmed: | ||
* CMOS reset. | ||
--> | ||
|
||
### Serial connection | ||
|
||
The method of setting and using serial connection is described in the | ||
[Serial connection guide](../../transparent-validation/rte/v1.1.0/serial-port-connection-guide.md). | ||
|
||
### Power supply controlling | ||
|
||
Power supply controlling is performed with the relay module on RTE | ||
connected to one of RTE GPIOs. Power operation should be performed using | ||
the `rte_ctrl` script implemented in `meta-rte` (OS image dedicated to the | ||
RTE platform). | ||
|
||
To toggle the power supply use the below command: | ||
|
||
```bash | ||
rte_ctrl rel | ||
``` | ||
|
||
Or using [OSFV cli](https://github.com/Dasharo/osfv-scripts) from remote | ||
machine: | ||
|
||
```sh | ||
osfv_cli rte --model=<APU2/3/4/6> --rte_ip <ip_address> rel tgl | ||
``` | ||
|
||
### Basic power operations | ||
|
||
Basic power operations should be performed based on the `rte_ctrl` script | ||
implemented in `meta-rte` (OS image dedicated to the RTE platform). To perform | ||
basic power operations use the below-described commands: | ||
|
||
1. Turn on the platform: | ||
|
||
```bash | ||
rte_ctrl pon | ||
``` | ||
|
||
1. Turn off the platform: | ||
|
||
```bash | ||
rte_ctrl poff | ||
``` | ||
|
||
1. Reset the platform: | ||
|
||
```bash | ||
rte_ctrl reset | ||
``` | ||
|
||
Or using OSFV cli from remote machine: | ||
|
||
```sh | ||
osfv_cli rte --model=<APU2/3/4/6> --rte_ip <ip_address> pwr on | ||
``` | ||
|
||
```sh | ||
osfv_cli rte --model=<APU2/3/4/6> --rte_ip <ip_address> pwr off | ||
``` | ||
|
||
```sh | ||
osfv_cli rte --model=<APU2/3/4/6> --rte_ip <ip_address> pwr reset | ||
``` | ||
|
||
<!-- | ||
|
||
To be verified. | ||
|
||
### CMOS clear | ||
|
||
To clear the CMOS, turn off the power with Sonoff or relay and use the | ||
following commands: | ||
|
||
```bash | ||
echo 1 > /sys/class/gpio/gpio412/value | ||
sleep 10 | ||
echo 0 > /sys/class/gpio/gpio412/value | ||
``` | ||
|
||
--> | ||
|
||
### USB devices | ||
|
||
Since some issues with USB controllers may only happen on select USB ports, | ||
it's important to plug in USB devices to all 2 USB ports of the board. |
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