Debian Codegraph @

Documentation/mainboard/erying/tgl/tgl_matx.md

raw symbols SCIP
1 # Erying Polestar G613 Pro
2
3 This page describes how to run coreboot on the [Erying Polestar G613 Pro].
4
5 ## Required proprietary blobs
6
7 To build full working image of coreboot, the following blobs are required:
8
9 ```{eval-rst}
10 +-----------------+---------------------------------+----------------------+
11 | Binary file | Apply | Required / Optional |
12 +=================+=================================+======================+
13 | Microcode | CPU Microcode | Required (see notes) |
14 +-----------------+---------------------------------+----------------------+
15 | FSP-M & FSP-S | Intel Firmware Support Package | Required |
16 +-----------------+---------------------------------+----------------------+
17 | ME | Intel Management Engine | Required (see notes) |
18 +-----------------+---------------------------------+----------------------+
19 | FD | Intel Flash Descriptor | Required (see notes) |
20 +-----------------+---------------------------------+----------------------+
21 ```
22
23 Microcode for D0 stepping cannot be generated from the tree.
24 Therefore, including external microcode is **mandatory** for boards sold with
25 D0 stepping (Engineering Sample).
26
27 Maintainer of this port had included publicly-available [microcodes] in
28 `3rdparty/blobs` coreboot repository, which are being pulled as submodule.
29
30 Microcode binary for D0 stepping is called
31 `cpu806D0_platC2_ver00000054_2021-05-07_PRD_B0F9E245.bin`.
32
33 It should be selected by going to:
34 `Chipset -> Include CPU microcode in CBFS (Include external microcode binary)`.
35
36 Failure to choose an appropriate microcode will result in:
37 - MCE (Machine Check Exception) errors.
38 - Issues with APIC, resulting in random hangs.
39 - Unstable system RAM, leading to bit flips and data corruption.
40
41 There are no extra steps required for FSP.
42 Both SKUs work perfectly with FSP Intel publishes in their public repository.
43 coreboot automatically pulls FSP binary from `3rdparty/fsp` submodule
44 at build time, which points to TigerLakeFspBinPkg/Client package in
45 official Intel FSP repository.
46
47 ## Flashing coreboot
48
49 ### Internally
50
51 Vendor of this motherboard hasn't locked any flash regions, resulting in
52 [flashrom] having full access to the SPI chip.
53 Assuming that user had booted Linux with `iomem=relaxed`, they can:
54 - Flash coreboot from stock firmware
55 - Flash stock firmware from coreboot
56 - Update coreboot build to a newer version
57
58 Without opening the case and connecting the SPI flasher.
59 Please note that you will need to use [flashrom] v1.3.0 or newer,
60 as older versions won't detect the chipset.
61
62 If you're using [flashrom] or [flashprog] (fork of flashrom), you can
63 skip extracting `SI_BIOS` and `SI_ME` regions from your ROM, and flash
64 coreboot to `SI_BIOS` region by issuing the following command:
65 `flashrom -p internal --ifd -i SI_BIOS -w ./build/coreboot.rom`
66
67 ### Externally
68
69 SPI chip on this mainboard is located right underneath the PCH heatsink.
70 Due to it's location, it's likely that you will need to move (or remove)
71 the PCH (Platform Controller Hub) heatsink in order to clip it properly.
72
73 Vendor populated this board with Winbond W25Q128FV chip in SOIC-8 package.
74 Although the stock chip is 16MiB, it is possible to replace it with 32MiB
75 equivalent if user desires to use LinuxBoot payload instead of EDK2.
76
77 Please note that SPI voltage on this board is standard 3.3V,
78 despite using mobile SoC and PCH.
79
80 ## Tested and working
81
82 - RS232 serial output from IT8613E for debugging (cbmem, Linux)
83 - Fan control from userspace (IT8613E Environment Controller)
84 - USB2.0 and 3.0
85 - HDMI, DisplayPort (iGPU, including audio)
86 - Realtek RTL8111 (GbE NIC)
87 - Realtek ALC897 (integrated audio)
88 - PCIe x16 4.0 (SoC)
89 - PCIe x1 3.0 (PCH)
90 - M.2 x4 4.0 (SoC)
91 - M.2 x4 3.0 (PCH)
92 - M.2 NGFF (WiFi)
93 - 4x SATA3 ports
94 - IOMMU/VT-x (PCIe passthrough)
95 - PCIe ReBAR (Resizable BAR)
96 - Intel PTT (fTPM 2.0)
97
98 ## Work in progress, broken, issues
99
100 - XMP Profiles (some people reported issues, despite successful tests).
101 You can enable it by setting `SpdProfileSelected` in `romstage_fsp_params.c`.
102 See [FSP XMP flags] for configuration options, proceed with caution.
103 - Sleep states (which were broken on stock as well, RAM loses power in S3).
104 - Automatic fan control (fans will always spin at 50% - see below).
105 - PCIe ASPM (results in AER spam in dmesg).
106
107 Please ensure to:
108 - Disable sleep state in your OS.
109 - Configure automatic fan control using pwmconfig
110 (`modprobe it87 force_id=0x8603`).
111 - Append `pcie_aspm=off` to your kernel commandline to avoid dmesg spam.
112
113 ## Notes
114
115 1. Required blobs, if flashing the entire flash chip.
116 They can be skipped safely if you are planning on flashing
117 only the `SI_BIOS` region.
118 - Intel Flash Descriptor (IFD): `fd.bin`
119 - Intel Management Engine (ME): `me.bin`
120
121 Both blobs included in `3rdparty/blobs` repository were extracted
122 from vendor's firmware (available to download on their website).
123 IFD region has been modified using `ifdtool` to set
124 `MeAltDisable` flag.
125
126 2. Modifications
127
128 It is possible to replace Winbond 16MB chip with 32MB equivalent,
129 which would allow you to use LinuxBoot or implement
130 RO + A/B VBOOT update scheme.
131
132 3. Payload and pre-OS display output
133
134 If you are using an external graphics card (AMD, Nvidia, Intel Arc),
135 you will see output in your OS as soon as kernel initializes the
136 card (called "modprobing" in Linux) regardless of payload you chose.
137
138 This board was tested with following payloads:
139 - EDK2
140 - U-Boot
141 - LinuxBoot (U-Root + Linux kernel)
142
143 If you're planning to primarly use an external card, disable iGPU by
144 enabling `Chipset -> Disable Integrated GFX Controller (0:2:0)`
145 and use [MrChromebox's EDK2] tree.
146
147 In order to enable loading Option ROMs from PCIe devices, enable:
148 `Payload -> Load and Execute OpROMs on PCIe devices`
149
150 This functionality has been tested with following graphics cards,
151 with following results:
152 - Nvidia GeForce RTX3080, RTX3090: Works perfectly.
153 - AMD Radeon RX6600XT, RX7800XT: Works, but requires
154 `Extend resource window for PCIe devices above 4G` if `Support PCIe
155 Resizable BARs` is enabled.
156 - Intel Arc A580: Works, but option
157 `Extend resource window for PCIe devices above 4G` is **mandatory**.
158
159 ## Specification
160
161 ```{eval-rst}
162 +------------------+------------------------------+
163 | SoC | Intel TigerLake Halo |
164 +------------------+------------------------------+
165 | PCH | Intel HM570 |
166 +------------------+------------------------------+
167 | Super I/O | ITE IT8613E |
168 +------------------+------------------------------+
169 | SPI | Winbond W25Q128FV 16MiB 3.3V |
170 +------------------+------------------------------+
171 | NIC | Realtek RTL8111 |
172 +------------------+------------------------------+
173 | Audio | Realtek ALC897 |
174 +------------------+------------------------------+
175 ```
176
177 [Erying Polestar G613 Pro]: https://www.erying.cc/products-detail/id-97.html
178 [microcodes]: https://github.com/platomav/CPUMicrocodes/tree/master/Intel
179 [FSP XMP Flags]: https://github.com/intel/FSP/blob/master/TigerLakeFspBinPkg/Client/Include/FspmUpd.h#L586-L591
180 [MrChromebox's EDK2]: https://github.com/MrChromebox/edk2
181 [flashrom]: https://flashrom.org/
182 [flashprog]: https://flashprog.org/wiki/Flashprog