Debian Codegraph @

Documentation/mainboard/asus/p8z77-v_le_plus.md

raw symbols SCIP
1 # ASUS P8Z77-V LE PLUS
2
3 This page describes how to run coreboot on the [ASUS P8Z77-V LE PLUS].
4
5 ## Flashing coreboot
6
7 ```{eval-rst}
8 +---------------------+----------------+
9 | Type | Value |
10 +=====================+================+
11 | Socketed flash | yes |
12 +---------------------+----------------+
13 | Model | W25Q64FVA1Q |
14 +---------------------+----------------+
15 | Size | 8 MiB |
16 +---------------------+----------------+
17 | Package | DIP-8 |
18 +---------------------+----------------+
19 | Write protection | yes |
20 +---------------------+----------------+
21 | Dual BIOS feature | no |
22 +---------------------+----------------+
23 | Internal flashing | yes |
24 +---------------------+----------------+
25 ```
26
27 ### How to flash
28
29 The main SPI flash cannot be written because the vendor firmware disables BIOSWE
30 and enables BLE/SMM_BWP flags in BIOS_CNTL for their latest BIOSes. An external
31 programmer is required. You must flash standalone, flashing in-circuit doesn't
32 work. The flash chip is socketed, so it's easy to remove and reflash.
33
34 See page 2-2 of user's manual for flash chip location.
35
36 ### Extra preparations for changing PCIe slot configuration
37
38 On vendor firmware, the black PCIEX16_3 slot can be configured as x2 or x4.
39 If set for x4, PCIEX1_1 and PCIEX1_2 are disabled.
40
41 Before flashing coreboot for the first time, decide how you want to use the PCIe slots.
42 If you want to be able to choose between using the two PCIEX1 slots and the PCIEX16_3 slot at
43 x4 bandwidth, you need to do some preparation, namely make two backups of the whole flash
44 chip, specifically the flash descriptor under both configurations.
45
46 Enter vendor UEFI setup and check the PCIEX16_3 (black) slot bandwidth setting. You'll back up
47 under this setting first. Once one backup is made, come back and change the setting
48 from x2 to x4 (or vice versa) and reboot once, then make the other backup.
49
50 With PCIEX16_3 (black) slot bandwidth at x2, run these commands:
51 ```bash
52 flashrom -p internal -r pciex163_x2.bin
53 dd if=pciex163_x2.bin of=ifd-pciex163_x2.bin bs=4096 count=1
54 ```
55
56 With PCIEX16_3 (black) slot bandwidth at x4, run these commands:
57 ```bash
58 flashrom -p internal -r pciex163_x4.bin
59 dd if=pciex163_x4.bin of=ifd-pciex163_x4.bin bs=4096 count=1
60 ```
61 (`dd` needs not be run as root.)
62
63 Save the shortened `ifd-pciex163_*.bin` files for when you want to change the configuration.
64 Keep one of the full backups as well.
65
66 See "PCIe config" section below for more details.
67
68 ## Working
69
70 - Core i5-3570K and i7-3770K CPUs
71 - Corsair CMZ16GX3M2A1600C10 2x8GB memory kit
72 - SeaBIOS 1.16.3
73 - edk2 mrchromebox fork uefipayload_2501
74 - Kernel 6.12.7
75 - All USB2 ports (mouse, keyboard)
76 - All USB3 ports
77 - Z77 SATA ports (WD Blue SA510, Liteon LH-20A1L)
78 - nVidia 8800GT GPU in PCIEX16_1 slot running x16
79 - PCI slots (Sound Blaster Live! Value)
80 - RTL8111F LAN
81 - CPU temperature sensors and hardware monitor
82 (see [below](#hardware-monitoring-and-fan-speed-control))
83 - Integrated graphics with libgfxinit and VBT
84 (all ports tested and working)
85 - Both PCIe x1 slots when properly configured
86 (see [How to flash](#how-to-flash) above and [PCIe config](#pcie-config);
87 Atheros 928x miniPCIe Wifi on adapter & MSI Herald-BE Wifi7 adapter)
88 - PCIe x4 slot with Intel Octane H10 1TB NVMe at x2 mode
89 - Serial port
90 - PS/2 keyboard
91 - Analog 7.1 audio out the 3.5mm jacks on rear panel
92 - Front HDA audio panel
93 - Digital audio out (Optical, internal SPDIF header, HDMI, DisplayPort)
94
95 Although a `spdif_dest` option is provided for feature parity with vendor firmware,
96 it doesn't seem to matter and digital audio out is available through all ports.
97 It does, however, change how the ports are presented to the OS.
98
99 - S3 suspend from Linux
100
101 ## Known issues
102
103 - For 7.1 analog audio to work, at least the front channel (green jack) must be connected.
104
105 ## Untested
106
107 - Hotplug of Z77 SATA ports
108 - EHCI debugging
109
110 ## Not working
111
112 - Wake-on-LAN
113 - PS/2 mouse (requires a patch currently under review)
114 - Asmedia USB 3.0 battery charging support (for USB 3 ports on the LAN stack)
115 - USB Charger+ (When the bottom USB 3 port on the eSATA stack, also used for BIOS flashback,
116 remains powered while the rest of the system is off. Both features are controlled by the same
117 AI1314 controller.)
118 - Marvell SATA ports are brought up in IDE mode, pata_marvell driver is loaded,
119 but are effectively unusable.
120
121 ## PCIe config
122 See [Extra preparations](#extra-preparations-for-changing-pcie-slot-configuration) section above.
123
124 Changing the PCIe slot configuration requires manipulating a PCH GPIO line and a soft strap in
125 the flash chip's descriptor section, which is read-only at runtime. coreboot programs the GPIO
126 to match the soft strap, but how it can update the soft strap itself is to be determined. Until
127 then, to make this change you have to re-flash the descriptor yourself, with one of the two
128 copies you previously saved per above:
129 ```bash
130 flashrom -p internal --ifd -i fd -w ifd-pciex163_x2.bin
131 ```
132
133 ## Hardware monitoring and fan speed control
134
135 Although all fan ports are 4-pin for PWM fans, only CPU_FAN has actual PWM control;
136 all other fan speed control is by voltage only.
137
138 Write 1 into `/sys/class/hwmon/hwmon1/pwm1_mode` to enable CHA_FAN1 control, otherwise it
139 runs at full speed.
140
141 `fan5`/`pwm5` is not implemented and should be ignored.
142
143 These are the sensors.conf settings for this board:
144
145 ```
146 label fan1 "CHA_FAN1"
147 label fan2 "CPU_FAN"
148 label fan3 "CHA_FAN2"
149 label fan4 "CHA_FAN3"
150 ignore fan5
151 label in1 "+12V"
152 label in4 "+5V"
153 compute in1 @*12, @/12
154 compute in4 @*5, @/5
155 set temp1_type 4
156 set temp2_type 4
157 ```
158
159 ## Extra onboard switches and LEDs
160
161 - `BIOS_FLBK`:
162 Vendor firmware uses this button to facilitate a simple update mechanism
163 via a USB drive plugged into the bottom USB port of the USB/ESATA6G stack.
164 It connects to the proprietary AI1314 controller, along with `FLBK_LED`.
165
166 - `MemOK!`:
167 OEM firmware uses this button for memory tuning related to overclocking.
168 It connects to pin 74 of super I/O.
169
170 - `DRAM_LED` lights up when there is a memory problem or when vendor MemOK! feature is
171 operating. Connects to GP07 line of super I/O. coreboot lights it up during memory init
172 similar to vendor firmware.
173
174 - `EPU`: When enabled, lights up `EPU_LED` and takes PCH GPIO44 low.
175 - `TPU`: When enabled, lights up `TPU_LED` and takes PCH GPIO45 low.
176
177 `EPU` and `TPU` are cues to vendor firmware to enable two embedded controllers for
178 overclocking features. coreboot is not yet able to make use of these two signals.
179
180 - `SB_PWR` lights up whenever board is receiving power. It's all hardware
181 and does not concern coreboot.
182
183 - `DRCT` is an undocumented 2-pin header next to the front panel connector block. It
184 connects to both the power button circuit and Z77's intruder detection input. Shorting this
185 header triggers both. With coreboot it currently works the same as the power button.
186
187 ## Extra exposed GPIOs at `TB_HEADER`
188
189 A number of GPIO lines are broken out to `TB_HEADER` to support the ThunderboltEX adapter,
190 which never took off. Now they're yours to play with. Additional programming may be required such
191 as enabling GPIO by I/O for maximum effect.
192
193 This may be safely ignored for most normal uses.
194
195 **Be careful not to apply more than 3.3v to these pins!** And do not touch the two pins
196 labeled "NOT A GPIO".
197
198 Pinout:
199 ```
200 +---+---+---+---+---+
201 | 2 | 4 | 5 | 7 | 9 |
202 +---+---+---+---+---+
203 | 1 | 3 | | 6 | 8 |
204 +---+---+---+---+---+
205 ```
206
207 ```{eval-rst}
208 +-----+-----------------------+----------+--------+
209 | Pin | Name | Source | GPIO # |
210 +=====+=======================+==========+========+
211 | 1 | S_DP_DDC_CLK_TO_TB | **NOT A GPIO** |
212 +-----+-----------------------+----------+--------+
213 | 2 | TB_GPIO_6 | NCT6779D | 14 |
214 +-----+-----------------------+----------+--------+
215 | 3 | S_DP_DDC_DATA_TO_TB | **NOT A GPIO** |
216 +-----+-----------------------+----------+--------+
217 | 4 | TB_GPIO_7 | NCT6779D | 13 |
218 +-----+-----------------------+----------+--------+
219 | 5 | TB_FWUPDATE | NCT6779D | 11 |
220 +-----+-----------------------+----------+--------+
221 | 6 | TB_DEV_HPD | Z77 | 0 |
222 +-----+-----------------------+----------+--------+
223 | 7 | TB_GO2SX | NCT6779D | 17 |
224 +-----+-----------------------+----------+--------+
225 | 8 | TB_GO2SX#_ACK | NCT6779D | 16 |
226 +-----+-----------------------+----------+--------+
227 | 9 | Not connected |
228 +-----+-------------------------------------------+
229 ```
230
231 Pins 2, 4, 6, 8 have 1M ohm pulldowns.
232
233 ## Technology
234
235 ```{eval-rst}
236 +------------------+--------------------------------------------------+
237 | Northbridge | :doc:`../../northbridge/intel/sandybridge/index` |
238 +------------------+--------------------------------------------------+
239 | Southbridge | bd82x6x |
240 +------------------+--------------------------------------------------+
241 | CPU | model_206ax |
242 +------------------+--------------------------------------------------+
243 | Super I/O | Nuvoton NCT6779D |
244 +------------------+--------------------------------------------------+
245 | EC | TPU (ENE KB3722), AI1314 |
246 +------------------+--------------------------------------------------+
247 | Coprocessor | Intel Management Engine |
248 +------------------+--------------------------------------------------+
249 ```
250
251 ## Extra resources
252
253 - [Flash chip datasheet][W25Q64FVA1Q]
254
255 [ASUS P8Z77-V LE PLUS]: https://www.asus.com/supportonly/p8z77-v%20le%20plus/helpdesk_manual/
256 [W25Q64FVA1Q]: https://www.winbond.com/resource-files/w25q64fv%20revs%2007182017.pdf
257 [flashrom]: https://flashrom.org/
258 [rtnicpg]: https://github.com/redchenjs/rtnicpg