| 1 | # ASUS P8Z77-M |
| 2 | |
| 3 | This page describes how to run coreboot on the [ASUS P8Z77-M]. |
| 4 | |
| 5 | ## Flashing coreboot |
| 6 | |
| 7 | ```{eval-rst} |
| 8 | +---------------------+----------------+ |
| 9 | | Type | Value | |
| 10 | +=====================+================+ |
| 11 | | Model | W25Q64FVA1Q | |
| 12 | +---------------------+----------------+ |
| 13 | | Size | 8 MiB | |
| 14 | +---------------------+----------------+ |
| 15 | | Package | DIP-8 | |
| 16 | +---------------------+----------------+ |
| 17 | | Socketed | yes | |
| 18 | +---------------------+----------------+ |
| 19 | | Write protection | yes | |
| 20 | +---------------------+----------------+ |
| 21 | | Dual BIOS feature | no | |
| 22 | +---------------------+----------------+ |
| 23 | | Internal flashing | yes | |
| 24 | +---------------------+----------------+ |
| 25 | ``` |
| 26 | |
| 27 | The flash chip is located between the blue SATA ports. |
| 28 | |
| 29 | The main SPI flash cannot be written internally because Asus disables BIOSWE and |
| 30 | enables ``BLE/SMM_BWP`` flags in ``BIOS_CNTL`` for their latest bioses. |
| 31 | To install coreboot for the first time, the flash chip must be removed and |
| 32 | flashed with an external programmer; flashing in-circuit doesn't work. |
| 33 | The flash chip is socketed, so it's easy to remove and reflash. |
| 34 | |
| 35 | ## Working |
| 36 | |
| 37 | - All USB2 ports (mouse, keyboard and thumb drive) |
| 38 | - USB3 ports on rear (Boots Arch-based SystemRescue 6.0.3 off a Kingston DataTraveler G4 8GB) |
| 39 | - Gigabit Ethernet (RTL8111F) |
| 40 | - SATA3, SATA2 (all ports, hot-swap not tested) |
| 41 | - CPU Temp sensors and hardware monitor (See [Known issues] below) |
| 42 | - Native and MRC memory initialization |
| 43 | (please see [RAM compatibility] below) |
| 44 | |
| 45 | - Integrated graphics with both libgfxinit and the Intel Video BIOS OpROM |
| 46 | (VGA/DVI-D/HDMI tested and working) |
| 47 | - 16x PCIe GPU in PCIe-16x/4x slots (tested using nVidia Quadro 600 under SystemRescue 6.0.3) |
| 48 | - Serial port |
| 49 | - PCI slot |
| 50 | - Rockwell HSF 56k PCI modem (detected, not function tested) |
| 51 | - Sound Blaster Live! CT4780 (detected, not function tested) |
| 52 | - Promise SATA150 TX2plus (R/W OK to connected IDE hard drive, OpRom loaded, cannot boot from |
| 53 | SeaBIOS) |
| 54 | - PCIe x1 slot |
| 55 | - MSI Herald-BE (Qualcomm NCM865 m.2 Wifi 7 module via PCIe-m.2 adaptor) |
| 56 | - LPC POST card manually wired to TPM header |
| 57 | - 2-channel analog audio (WAV playback by mplayer via back panel line out port) |
| 58 | - HDMI digital audio |
| 59 | - Windows 10 with libgfxinit high resolution framebuffer and VBT |
| 60 | - UEFI boot into Fedora 38 through 41 with edk2 payload (202306 mrchromebox fork) |
| 61 | - PS/2 keyboard (IBM Model M #1391401 & original Microsoft Natural) with edk2 payload |
| 62 | |
| 63 | ## Known issues |
| 64 | |
| 65 | - If you use MRC raminit, the NVRAM variable gfx_uma_size may be ignored as IGP's UMA could |
| 66 | be reconfigured by the blob. |
| 67 | |
| 68 | - Sometimes only half the memory is initialized, and/or at reduced speed. This is being |
| 69 | investigated. |
| 70 | |
| 71 | - If SeaBIOS is used for payload with libgfxinit, it must be brought in via coreboot's config. |
| 72 | Otherwise integrated graphics would fail with a black screen. |
| 73 | |
| 74 | - PCI POST card is not functional because the PCI bridge early init is not yet done. |
| 75 | |
| 76 | - Although the black PCIEX16_2 slot can physically fit an x16 card, it only has physical |
| 77 | contacts for x8, and is electrically x4 only. |
| 78 | |
| 79 | - PS/2 keyboard may not work with SeaBIOS payload. |
| 80 | |
| 81 | - These lm_sensors configurations are needed for hardware monitor values to make sense: |
| 82 | |
| 83 | ```bash |
| 84 | label in1 "+12V" |
| 85 | label in4 "+5V" |
| 86 | compute in1 @*12, @/12 |
| 87 | compute in4 @*5, @/5 |
| 88 | # ... |
| 89 | set temp1_type 4 |
| 90 | set temp2_type 4 |
| 91 | |
| 92 | ``` |
| 93 | |
| 94 | ## Untested |
| 95 | |
| 96 | - Wake-on-LAN |
| 97 | - USB3 on header |
| 98 | - TPM module |
| 99 | - EHCI debugging (Debug port is on the 5-pin side of USB2_910 header) |
| 100 | - S/PDIF audio out |
| 101 | |
| 102 | ## Not working |
| 103 | |
| 104 | - PS/2 mouse (a patch has been submitted for review) |
| 105 | - 4 and 6 channel analog audio out: Rear left and right audio is a muted |
| 106 | copy of front left and right audio, and the other two channels are silent. |
| 107 | |
| 108 | ## RAM compatibility |
| 109 | |
| 110 | ### Native and MRC raminit: |
| 111 | |
| 112 | - OCZ OCZ3G1600LVAM 2x2GB kit works at DDR3-1066 instead of DDR3-1600. |
| 113 | - Samsung PC3-10600U 2x2GB kit works at full rated speed. |
| 114 | - GSkill F3-1600C9D-16GRSL 2x8GB SODIMM kit on unbranded adapter works at full rated speed. |
| 115 | |
| 116 | ### MRC raminit: |
| 117 | |
| 118 | - Corsair ValueSelect CMSO4GX3M1C1600C11 4GB SODIMM works at full rated speed |
| 119 | on an unbranded adapter. |
| 120 | - Samsung M471B5273DH0 4GB SODIMM on adapter works at full rated speed. |
| 121 | |
| 122 | ### Native raminit: |
| 123 | |
| 124 | - Kingston KTH9600B-4G 2x4GB kit works at full rated speed. |
| 125 | - Samsung M471B5273DH0 4GB SODIMM on adapter works only at DDR3-1066 if max_mem_clock_mhz |
| 126 | is reduced to 666, and only one module would be detected. It will completely fail to |
| 127 | train if max_mem_clock_mhz is set to 800. |
| 128 | - Corsair modules on channel 1 fails training and is unusable. |
| 129 | - Two Patriot PV316G160C9K 2x8GB kits in all slots work at full rated speed. |
| 130 | |
| 131 | ## Extra onboard buttons |
| 132 | |
| 133 | The board has two onboard buttons, each with a related LED nearby. |
| 134 | |
| 135 | - `BIOS_FLBK` / `FLBK_LED`: |
| 136 | OEM firmware uses this button to facilitate a simple update mechanism |
| 137 | via a USB drive plugged into the bottom USB port of the USB/LAN stack. |
| 138 | They are connected to a proprietary AI1314 microcontroller. |
| 139 | They currently do nothing under coreboot. |
| 140 | |
| 141 | - `MemOK!` / `DRAM_LED`: |
| 142 | OEM firmware uses this button for memory tuning related to overclocking. |
| 143 | They are connected to the NCT6779D super I/O chip. |
| 144 | Button is connected to pin 74, and currently do nothing under coreboot. |
| 145 | DRAM_LED is connected to GP07 pin. Active low. Since commit f7ed007298e0 |
| 146 | coreboot lights it up during early boot similar to vendor firmware. |
| 147 | |
| 148 | ## Technology |
| 149 | |
| 150 | ```{eval-rst} |
| 151 | +------------------+--------------------------------------------------+ |
| 152 | | Northbridge | :doc:`../../northbridge/intel/sandybridge/index` | |
| 153 | +------------------+--------------------------------------------------+ |
| 154 | | Southbridge | bd82x6x | |
| 155 | +------------------+--------------------------------------------------+ |
| 156 | | CPU | model_206ax | |
| 157 | +------------------+--------------------------------------------------+ |
| 158 | | Super I/O | Nuvoton NCT6779D | |
| 159 | +------------------+--------------------------------------------------+ |
| 160 | | EC | None | |
| 161 | +------------------+--------------------------------------------------+ |
| 162 | | Coprocessor | Intel Management Engine | |
| 163 | +------------------+--------------------------------------------------+ |
| 164 | ``` |
| 165 | |
| 166 | ## Extra resources |
| 167 | |
| 168 | - [Flash chip datasheet][W25Q64FVA1Q] |
| 169 | |
| 170 | [ASUS P8Z77-M]: https://www.asus.com/supportonly/p8z77-m/helpdesk_manual/ |
| 171 | [W25Q64FVA1Q]: https://www.winbond.com/resource-files/w25q64fv%20revs%2007182017.pdf |
| 172 | [flashrom]: https://flashrom.org/ |