-
-
Notifications
You must be signed in to change notification settings - Fork 24
Msi b850 lab assembly guide #1194
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
Open
JakubSobota
wants to merge
7
commits into
master
Choose a base branch
from
MSI_B850_Guide
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d4209a5
Created initial assembly guide for msi-b850
JakubSobota 462870c
docs/ added MSIB850 lab_assembly to mkdocs
JakubSobota b7bc264
docs/guides/lab-assembly updated info about msi-b850 assembly
JakubSobota 228ec77
docs/guides/lab-assembly fixing typos in msi-850-assembly-guide
JakubSobota c2b59e5
docs/guides/lab-assembly fixing blanks in msi-850-assembly-guide
JakubSobota 87eac2e
docs/guides/lab-assembly fixing typos in msi-850-assembly-guide
JakubSobota 79f20e8
docs/guides/lab-assembly/images added new image for msi-850-assembly-…
JakubSobota 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94.7 KB
docs/guides/lab-assembly/images/msi_b850_lab_chip_power_connections.jpg
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 hidden or 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,220 @@ | ||
| # Laboratory stand dedicated to MSI PRO B850 platforms assembly guide | ||
|
|
||
| ## Introduction | ||
|
|
||
| This document describes platform-specific details for assembling an MSI PRO | ||
| B 850 testing stand. 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 information about all elements which are needed to | ||
| create the testing stand. | ||
|
|
||
| * MSI PRO B850 platform | ||
| * [RTE v1.1.0](https://shop.3mdeb.com/shop/open-source-hardware/open-source-hardware-3mdeb/rte/) | ||
| * Sonoff S20 type E | ||
| * 4x standard female-female connection wire 2.54 mm raster | ||
| * 7x standard female-female connection wire 2.54/2.00 mm raster | ||
| * 1x DB9 null modem cable | ||
| * 1x IDC 9-pin to DB9 adapter | ||
|
|
||
miczyg1 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ## Connections | ||
|
|
||
| The following sections describe how to enable all of the following 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, | ||
| * device power status readout. | ||
| * enabling cmos clear | ||
|
|
||
| ### Serial connection | ||
|
|
||
| 1. Attach the jumpers in the RTE J16 header to enable RS232 DB9 connector: | ||
|
|
||
| | Jumper position (TX) | Jumper position (RX) | | ||
| |:-------------------------:|:-------------------------------:| | ||
| | RS232 + COM | RS232 + COM | | ||
|
|
||
| 1. Connect the RTE RS232 DB9 connector to the platform JCOM1 header using | ||
| IDC to DB9 adapter and DB9 null modem cable. | ||
|
|
||
| ### Power supply controlling | ||
|
|
||
| Connect SeaSonic FOCUS Plus Platinum to Sonoff. | ||
|
|
||
| ### Basic power operations enabling | ||
|
|
||
| Connect the RTE J11 header to the platform JFP1 header as described in the | ||
| table: | ||
|
|
||
| | RTE | MSI PRO B850 | | ||
| |:--------------:|:---------------------------:| | ||
| | J11 pin 9 | JFP1 pin 6 (PWR_ON) | | ||
| | J11 pin 8 | JFP1 pin 7 (RST) | | ||
| | J15 pin 1 (GND)| JFP1 pin 5 (GND) | | ||
| | J10 pin 1 | JFP1 pin 2 (PWR_LED) | | ||
|
|
||
|  | ||
|
|
||
| ### CMOS Clear enabling | ||
|
|
||
| Connect the RTE J11 header to the platform JBAT1 header as described in the | ||
| table: | ||
|
|
||
| | RTE | MSI PRO B850 | | ||
| |:--------------:|:-------------------------------:| | ||
| | J11 pin 11 | JBAT1 pin 2(closer to JFP1) | | ||
|
|
||
|  | ||
|
|
||
| ### External flashing enabling | ||
|
|
||
| #### Without discrete TPM | ||
|
|
||
| Connect the RTE SPI header to the platform as described in the table: | ||
|
|
||
| | RTE SPI header | MSI PRO B850 | | ||
| |:-------------------:|:----------------------------------------------------:| | ||
| | J7 pin 1 (Vcc) | JTPM1 pin 1 (SPI Power) | | ||
| | J7 pin 2 (GND) | JTPM1 pin 7 (GND) | | ||
| | J7 pin 3 (CS) | JTPM1 pin 5 (RESERVED / BIOS SPI CS pin) | | ||
| | J7 pin 4 (SCLK) | JTPM1 pin 6 (SPI Clock) | | ||
| | J7 pin 5 (MISO) | JTPM1 pin 3 (MISO) | | ||
| | J7 pin 6 (MOSI) | JTPM1 pin 4 (MOSI) | | ||
|
|
||
| > Note: external access to the flash chip is possible only from the JTPM | ||
| > header. JTPM1 is a 2mm pitch header, you will need 2mm to 2.54mm | ||
| > female-female dupont wires to connect to RTE. | ||
|
|
||
|  | ||
|
|
||
| ### Complete Setup | ||
|
|
||
| After preparing all of the connections also three activities should be | ||
| performed to enable all of the test stand features: | ||
|
|
||
| 1. Connect Sonoff to the mains: | ||
|
|
||
|  | ||
|
|
||
| 1. Connect the RTE to the Internet by using the Ethernet cable. | ||
| 1. Connect the RTE to the mains by using the microUSB 5 V/2 A power supply. | ||
|
|
||
| Complete setup should looks as follows: | ||
|
|
||
|  | ||
|
|
||
| ## 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, | ||
| * device power status readout. | ||
| * enabling Cmos clear | ||
|
|
||
| ### 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). | ||
|
|
||
| ### 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 | ||
| ``` | ||
|
|
||
| > Note, that in order for the above commands to work properly, the platform | ||
| should be powered up: both Sonoff and the power supply must be turned on. | ||
|
|
||
| ### External flashing | ||
|
|
||
| The external flashing procedure should be performed based on the scripts | ||
| implemented on the RTE platform. To perform the flashing operation, reproduce | ||
| the steps described below: | ||
|
|
||
| > Note: the `flash.sh` script, used in this chapter, is available only in 0.8.0 | ||
| > or newer RTE OS releases, check [meta-rte](https://github.com/3mdeb/meta-rte) | ||
m-iwanicki marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| > for more inf.. | ||
|
|
||
| 1. By using `scp` put the requested Dasharo file to the RTE: | ||
|
|
||
| ```bash | ||
| scp <path_to_firmware>/<firmware_file> root@<RTE_IP>:/tmp/coreboot.rom | ||
| ``` | ||
|
|
||
| Where: | ||
|
|
||
| - `path_to_firmware` - path to firmware, which should send to RTE, | ||
| - `firmware_file` - the name of the firmware file, which should be sent | ||
| to RTE, | ||
| - `RTE_IP` - IP address of the connected RTE. | ||
|
|
||
| 1. Login to RTE via `ssh` or `minicom`. | ||
| 1. Read the flash chip by executing the following command on RTE: | ||
|
|
||
| ```bash | ||
| ./flash.sh read tmp/dump.rom | ||
| ``` | ||
|
|
||
| 1. If the reading was successful, the output from the command above should | ||
| contain the phrase `Verifying flash... VERIFIED`. | ||
| 1. Write the flash chip by executing the following command on RTE: | ||
|
|
||
| ```bash | ||
| ./flash.sh write /tmp/coreboot.rom | ||
| ``` | ||
|
|
||
| > Do not interrupt the flashing procedure in any way (especially by | ||
| changing connections). It may cause hardware damage! | ||
|
|
||
| 1. If the reading was successful, the output from the command above should | ||
| contain the phrase `Verifying flash... VERIFIED`. | ||
|
|
||
| ### Device power status readout | ||
|
|
||
| To read the current power status use the following command: | ||
|
|
||
| ```bash | ||
| cat /sys/class/gpio/gpio12/value | ||
| ``` | ||
|
|
||
| Example output: | ||
|
|
||
| * `1` means that the platform is turned on. | ||
| * `0` means that the platform is turned off. | ||
|
|
||
| ### 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 | ||
| ``` | ||
This file contains hidden or 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
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.
We would need an up to date photo, which uses the DB9 cable for serial.
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.
@miczyg1 The photo of the completed set up with DB9 cable was added in place of the old one.