Skip to content

Commit 5b6a7c8

Browse files
authored
Merge pull request #1194 from Dasharo/MSI_B850_Guide
Msi b850 lab assembly guide
2 parents 63944a3 + 79f20e8 commit 5b6a7c8

File tree

6 files changed

+221
-0
lines changed

6 files changed

+221
-0
lines changed
60.8 KB
Loading
94.7 KB
Loading
219 KB
Loading
55 KB
Loading
Lines changed: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,220 @@
1+
# Laboratory stand dedicated to MSI PRO B850 platforms assembly guide
2+
3+
## Introduction
4+
5+
This document describes platform-specific details for assembling an MSI PRO
6+
B 850 testing stand. Use this document as reference while going
7+
through [Generic Testing Stand
8+
Setup](../../unified-test-documentation/generic-testing-stand-setup.md)
9+
10+
## Prerequisites
11+
12+
The below table contains information about all elements which are needed to
13+
create the testing stand.
14+
15+
* MSI PRO B850 platform
16+
* [RTE v1.1.0](https://shop.3mdeb.com/shop/open-source-hardware/open-source-hardware-3mdeb/rte/)
17+
* Sonoff S20 type E
18+
* 4x standard female-female connection wire 2.54 mm raster
19+
* 7x standard female-female connection wire 2.54/2.00 mm raster
20+
* 1x DB9 null modem cable
21+
* 1x IDC 9-pin to DB9 adapter
22+
23+
## Connections
24+
25+
The following sections describe how to enable all of the following features:
26+
27+
* serial connection to the platform,
28+
* controlling power supply,
29+
* enabling basic power actions with the platform (power off/power on/reset),
30+
* external flashing with the RTE,
31+
* device power status readout.
32+
* enabling cmos clear
33+
34+
### Serial connection
35+
36+
1. Attach the jumpers in the RTE J16 header to enable RS232 DB9 connector:
37+
38+
| Jumper position (TX) | Jumper position (RX) |
39+
|:-------------------------:|:-------------------------------:|
40+
| RS232 + COM | RS232 + COM |
41+
42+
1. Connect the RTE RS232 DB9 connector to the platform JCOM1 header using
43+
IDC to DB9 adapter and DB9 null modem cable.
44+
45+
### Power supply controlling
46+
47+
Connect SeaSonic FOCUS Plus Platinum to Sonoff.
48+
49+
### Basic power operations enabling
50+
51+
Connect the RTE J11 header to the platform JFP1 header as described in the
52+
table:
53+
54+
| RTE | MSI PRO B850 |
55+
|:--------------:|:---------------------------:|
56+
| J11 pin 9 | JFP1 pin 6 (PWR_ON) |
57+
| J11 pin 8 | JFP1 pin 7 (RST) |
58+
| J15 pin 1 (GND)| JFP1 pin 5 (GND) |
59+
| J10 pin 1 | JFP1 pin 2 (PWR_LED) |
60+
61+
![msi_b850_lab_chip_power_connections](images/msi_b850_lab_chip_power_connections.jpg)
62+
63+
### CMOS Clear enabling
64+
65+
Connect the RTE J11 header to the platform JBAT1 header as described in the
66+
table:
67+
68+
| RTE | MSI PRO B850 |
69+
|:--------------:|:-------------------------------:|
70+
| J11 pin 11 | JBAT1 pin 2(closer to JFP1) |
71+
72+
![msi_b850_cmos](images/msi_b850_cmos.jpg)
73+
74+
### External flashing enabling
75+
76+
#### Without discrete TPM
77+
78+
Connect the RTE SPI header to the platform as described in the table:
79+
80+
| RTE SPI header | MSI PRO B850 |
81+
|:-------------------:|:----------------------------------------------------:|
82+
| J7 pin 1 (Vcc) | JTPM1 pin 1 (SPI Power) |
83+
| J7 pin 2 (GND) | JTPM1 pin 7 (GND) |
84+
| J7 pin 3 (CS) | JTPM1 pin 5 (RESERVED / BIOS SPI CS pin) |
85+
| J7 pin 4 (SCLK) | JTPM1 pin 6 (SPI Clock) |
86+
| J7 pin 5 (MISO) | JTPM1 pin 3 (MISO) |
87+
| J7 pin 6 (MOSI) | JTPM1 pin 4 (MOSI) |
88+
89+
> Note: external access to the flash chip is possible only from the JTPM
90+
> header. JTPM1 is a 2mm pitch header, you will need 2mm to 2.54mm
91+
> female-female dupont wires to connect to RTE.
92+
93+
![msi_b850_spi](images/msi_b850_spi.jpg)
94+
95+
### Complete Setup
96+
97+
After preparing all of the connections also three activities should be
98+
performed to enable all of the test stand features:
99+
100+
1. Connect Sonoff to the mains:
101+
102+
![sonoff_connected](images/sonoff_connected.jpg)
103+
104+
1. Connect the RTE to the Internet by using the Ethernet cable.
105+
1. Connect the RTE to the mains by using the microUSB 5 V/2 A power supply.
106+
107+
Complete setup should looks as follows:
108+
109+
![msi_b850_lab_complete](images/msi_b850_lab_complete.jpg)
110+
111+
## Theory of operation
112+
113+
The following sections describe how to use all of the enabled features:
114+
115+
* serial connection to the platform,
116+
* controlling power supply,
117+
* enabling basic power actions with the platform (power off/power on/reset),
118+
* external flashing with the RTE,
119+
* device power status readout.
120+
* enabling Cmos clear
121+
122+
### Serial connection
123+
124+
The method of setting and using serial connection is described in the
125+
[Serial connection guide](../../transparent-validation/rte/v1.1.0/serial-port-connection-guide.md).
126+
127+
### Basic power operations
128+
129+
Basic power operations should be performed based on the `rte_ctrl` script
130+
implemented in `meta-rte` (OS image dedicated to the RTE platform). To perform
131+
basic power operations use the below-described commands:
132+
133+
1. Turn on the platform:
134+
135+
```bash
136+
rte_ctrl pon
137+
```
138+
139+
1. Turn off the platform:
140+
141+
```bash
142+
rte_ctrl poff
143+
```
144+
145+
1. Reset the platform:
146+
147+
```bash
148+
rte_ctrl reset
149+
```
150+
151+
> Note, that in order for the above commands to work properly, the platform
152+
should be powered up: both Sonoff and the power supply must be turned on.
153+
154+
### External flashing
155+
156+
The external flashing procedure should be performed based on the scripts
157+
implemented on the RTE platform. To perform the flashing operation, reproduce
158+
the steps described below:
159+
160+
> Note: the `flash.sh` script, used in this chapter, is available only in 0.8.0
161+
> or newer RTE OS releases, check [meta-rte](https://github.com/3mdeb/meta-rte)
162+
> for more inf..
163+
164+
1. By using `scp` put the requested Dasharo file to the RTE:
165+
166+
```bash
167+
scp <path_to_firmware>/<firmware_file> root@<RTE_IP>:/tmp/coreboot.rom
168+
```
169+
170+
Where:
171+
172+
- `path_to_firmware` - path to firmware, which should send to RTE,
173+
- `firmware_file` - the name of the firmware file, which should be sent
174+
to RTE,
175+
- `RTE_IP` - IP address of the connected RTE.
176+
177+
1. Login to RTE via `ssh` or `minicom`.
178+
1. Read the flash chip by executing the following command on RTE:
179+
180+
```bash
181+
./flash.sh read tmp/dump.rom
182+
```
183+
184+
1. If the reading was successful, the output from the command above should
185+
contain the phrase `Verifying flash... VERIFIED`.
186+
1. Write the flash chip by executing the following command on RTE:
187+
188+
```bash
189+
./flash.sh write /tmp/coreboot.rom
190+
```
191+
192+
> Do not interrupt the flashing procedure in any way (especially by
193+
changing connections). It may cause hardware damage!
194+
195+
1. If the reading was successful, the output from the command above should
196+
contain the phrase `Verifying flash... VERIFIED`.
197+
198+
### Device power status readout
199+
200+
To read the current power status use the following command:
201+
202+
```bash
203+
cat /sys/class/gpio/gpio12/value
204+
```
205+
206+
Example output:
207+
208+
* `1` means that the platform is turned on.
209+
* `0` means that the platform is turned off.
210+
211+
### CMOS clear
212+
213+
To clear the CMOS, turn off the power with Sonoff or relay and use the
214+
following commands:
215+
216+
```bash
217+
echo 1 > /sys/class/gpio/gpio412/value
218+
sleep 10
219+
echo 0 > /sys/class/gpio/gpio412/value
220+
```

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ nav:
468468
- 'ASRock SPC741D8-2L2T/BCM': guides/lab-assembly/asrock_spc741d8.md
469469
- 'Gigabyte MZ33-AR1': guides/lab-assembly/gigabyte_mz33_ar1.md
470470
- 'MSI PRO Z690-A and Z790-P': guides/lab-assembly/msi-zx90.md
471+
- 'MSI PRO B850': guides/lab-assembly/msi-b850.md
471472
- 'MinnowBoard Turbot': guides/lab-assembly/minnowboard-turbot.md
472473
- 'NovaCustom': guides/lab-assembly/novacustom.md
473474
- 'Odroid H4': guides/lab-assembly/odroid-assembly-guide.md

0 commit comments

Comments
 (0)