Debian Codegraph @

Documentation/mainboard/asrock/h77pro4-m.md

raw symbols SCIP
1 # ASRock H77 Pro4-M
2
3 The ASRock H77 Pro4-M is a microATX-sized desktop board for Intel Sandy
4 Bridge and Ivy Bridge CPUs.
5
6 ## Technology
7
8 ```{eval-rst}
9 +------------------+--------------------------------------------------+
10 | Northbridge | :doc:`../../northbridge/intel/sandybridge/index` |
11 +------------------+--------------------------------------------------+
12 | Southbridge | Intel H77 (bd82x6x) |
13 +------------------+--------------------------------------------------+
14 | CPU socket | LGA 1155 |
15 +------------------+--------------------------------------------------+
16 | RAM | 4 x DDR3-1600 |
17 +------------------+--------------------------------------------------+
18 | Super I/O | Nuvoton NCT6776 |
19 +------------------+--------------------------------------------------+
20 | Audio | Realtek ALC892 |
21 +------------------+--------------------------------------------------+
22 | Network | Realtek RTL8111E |
23 +------------------+--------------------------------------------------+
24 | Serial | Internal header (RS-232) |
25 +------------------+--------------------------------------------------+
26 ```
27
28 ## Status
29
30 Tests were done with SeaBIOS 1.14.0 and slackware64-live from 2019-07-12
31 (linux-4.19.50).
32
33 ### Working
34
35 - Sandy Bridge and Ivy Bridge CPUs (tested: i5-2500, Pentium G2120)
36 - Native RAM initialization with four DIMMs
37 - PS/2 combined port (mouse or keyboard)
38 - Integrated GPU by libgfxinit on all monitor ports (DVI-D, HDMI, D-Sub)
39 - PCIe graphics in the PEG slot
40 - All three additional PCIe slots
41 - All rear and internal USB2 ports
42 - All rear and internal USB3 ports
43 - All six SATA ports from the PCH (two 6 Gb/s, four 3 Gb/s)
44 - All two SATA ports from the ASM1061 PCIe-to-SATA bridge (6 Gb/s)
45 - Rear eSATA connector (multiplexed with one ASM1061 port)
46 - Gigabit Ethernet
47 - Console output on the serial port
48 - EDK II (MrChromebox's fork, at origin/uefipayload_202207) to boot
49 Windows 10 (22H2) and Linux (5.19.17) via GRUB 2
50 - SeaBIOS 1.16.1 to boot Windows 10 (needs VGA BIOS) and Linux via
51 extlinux
52 - Internal flashing with flashrom-1.2, see
53 [Internal Programming](#internal-programming)
54 - External flashing with flashrom-1.2 and a Raspberry Pi 1
55 - S3 suspend/resume from either Linux or Windows 10
56 - Poweroff
57
58 ### Not working
59
60 - Booting from the two SATA ports provided by the ASM1061
61 - Automatic fan control with the NCT6776D Super I/O
62
63 ### Untested
64
65 - EHCI debug
66 - S/PDIF audio
67 - Other audio jacks than the green one, and the front panel header
68 - Parallel port
69 - Infrared/CIR
70 - Wakeup from anything but the power button
71
72 ## Flashing coreboot
73
74 ```{eval-rst}
75 +---------------------+------------+
76 | Type | Value |
77 +=====================+============+
78 | Socketed flash | yes |
79 +---------------------+------------+
80 | Model | W25Q64.V |
81 +---------------------+------------+
82 | Size | 8 MiB |
83 +---------------------+------------+
84 | Package | DIP-8 |
85 +---------------------+------------+
86 | Write protection | no |
87 +---------------------+------------+
88 | Dual BIOS feature | no |
89 +---------------------+------------+
90 | Internal flashing | yes |
91 +---------------------+------------+
92 ```
93
94 The flash is divided into the following regions, as obtained with
95 `ifdtool -f rom.layout backup.rom`:
96 ```
97 00000000:00000fff fd
98 00200000:007fffff bios
99 00001000:001fffff me
100 ```
101
102 ### Internal programming
103
104 The main SPI flash can be accessed using flashrom. By default, only
105 the BIOS region of the flash is writable. If you wish to change any
106 other region (Management Engine or flash descriptor), then an external
107 programmer is required.
108
109 The following command may be used to flash coreboot:
110
111 ```
112 $ sudo flashrom --noverify-all --ifd -i bios -p internal -w coreboot.rom
113 ```
114
115 The use of `--noverify-all` is required since the Management Engine
116 region is not readable even by the host.
117
118 In addition to the information here, please see the
119 <project:../../tutorial/flashing_firmware/index.md>.
120
121 ## Hardware monitoring and fan control
122
123 There are two fan headers for the CPU cooler, CPU_FAN1 and CPU_FAN2. They share
124 a single fan tachometer input on the Super I/O while some dedicated logic
125 selects which one is allowed to reach it. Two GPIO pins on the Super I/O are
126 used to control that logic. The firmware has to set them; coreboot selects
127 CPU_FAN1 by default, but the user can change that setting if it was built with
128 CONFIG_USE_OPTION_TABLE:
129
130 ```
131 $ sudo nvramtool -e cpu_fan_header
132 [..]
133 $ sudo nvramtool -w cpu_fan_header=CPU_FAN2
134 $ sudo nvramtool -w cpu_fan_header=None
135 $ sudo nvramtool -w cpu_fan_header=Both
136 ```
137
138 The setting will take effect after a reboot. Selecting and connecting both fan
139 headers is possible but the Super I/O will report wrong fan speeds.
140
141 Currently there is no automatic, OS-independent fan control, but a software
142 like `fancontrol` from the lm-sensors package can be used instead.
143
144 ## Serial port header
145
146 Serial port 1, provided by the Super I/O, is exposed on a pin header. The
147 RS-232 signals are assigned to the header so that its pin numbers map directly
148 to the pin numbers of a DE-9 connector. If your serial port doesn't seem to
149 work, check if your bracket expects a different assignment. Also don't try to
150 connect it directly to a device that operates at TTL levels - it would need a
151 level converter like a MAX232.
152
153 Here is a top view of the serial port header found on this board:
154
155 +---+---+
156 N/C | | 9 | RI -> pin 9
157 +---+---+
158 Pin 8 <- CTS | 8 | 7 | RTS -> pin 7
159 +---+---+
160 Pin 6 <- DSR | 6 | 5 | GND -> pin 5
161 +---+---+
162 Pin 4 <- DTR | 4 | 3 | TxD -> pin 3
163 +---+---+
164 Pin 2 <- RxD | 2 | 1 | DCD -> pin 1
165 +---+---+
166
167 ## eSATA
168
169 The eSATA port on the rear I/O panel and the internal connector SATA3_A1 share
170 the same controller port on the ASM1061. Attaching an eSATA drive causes a
171 multiplexer chip to disconnect the internal port from the SATA controller and
172 connect the eSATA port instead. This can be seen on GP23 of the Super I/O
173 GPIOs: it is '0' when something is connected to the eSATA port and '1'
174 otherwise.