soc/intel/xeon_sp/util: Enhance lock_pam0123
[coreboot2.git] / Documentation / mainboard / msi / ms7707 / ms7707.md
blobc92e674270ea6e599bd2e506aed57cef53030282
1 # MSI MS-7707 V1.1
3 * MSI MS-7707 V1.1 (Medion OEM Akoya P4385D MSN10014555)
4 * SandyBridge Intel P67 (BD82x6x)
5 * Winbond 25Q32BV (4 MiB)
6 * Fintek F71808A SuperIO
7 * Intel 82579V Gigabit
8 * NEC uPD720200 USB 3.0 Host Controller
9 * IME 7.0.4.1197
11 ## Flash chip (Winbond 25Q32BV)
12 ```eval_rst
13 +---------------------+--------------------+
14 | Type                | Value              |
15 +=====================+====================+
16 | Size                | 4 MiB              |
17 +---------------------+--------------------+
18 | BIOS range          | 2 MiB              |
19 +---------------------+--------------------+
20 | Write protection    | Yes (via jumper)   |
21 +---------------------+--------------------+
22 | Header              | Yes (JSPI1)        |
23 +---------------------+--------------------+
24 | Package             | SOIC-8             |
25 +---------------------+--------------------+
26 | In circuit flashing | Yes                |
27 +---------------------+--------------------+
28 | Internal flashing   | Yes                |
29 +---------------------+--------------------+
30 | Socketed flash      | No                 |
31 +---------------------+--------------------+
32 | Dual BIOS feature   | No                 |
33 +---------------------+--------------------+
34 | ME removable        | Yes                |
35 +---------------------+--------------------+
36 ```
38 ## Installation instructions
39 * The standard method is to only flash the 2MiB BIOS region. In that case it's
40 not needed to extract blobs from vendor firmware and internal flashing is
41 sufficient.
42 * To flash the whole chip (e.g. to disable ME) blobs are needed to build
43 coreboot. Blobs can be extracted with util/ifdtool from 4MiB full dump image
44 (see below). Its recommended to include the VGA BIOS as well (4MiB write only).
45 Kconfig is prepared already if it gets enabled (path and 8086,0102).
46 ```
47 coreboot/3rdparty/blobs/mainboard/msi/ms7707
48 ├── descriptor.bin
49 ├── gbe.bin
50 ├── me.bin
51 └── vgabios.bin
52 ```
53 * Never write a full 4MiB image if blobs are not included. The generated
54 coreboot.rom file is always 4MiB but the 2MiB flash command below will only
55 flash the last 2MiB (BIOS) block.
56 * The J1-Jumper sets the 'Flash Descriptor Override Strap-Pin' and enables
57 full 4MiB access for internal flasher (read and write).
58 * **Write BIOS-range** (2MiB) with J1-Jumper=off (as on picture/default
59         position):
60 ```
61 flashrom -p internal:ich_spi_force=yes --noverify-all --ifd -i bios -w coreboot.rom
62 ```
63 * **Read full dump** (4MiB) with J1-jumper=on:
64 ```
65 flashrom -p internal -r original.rom
66 ```
67 * **Write full dump** (4MiB) with J1-Jumper=on:
68 ```
69 flashrom -p internal -w coreboot.rom
70 ```
71 * After successful flashing turn main power off, wait some seconds to drain
72 the capacitors, pull the battery and set the JBAT (clrcmos) jumper for some
73 seconds. Setting the jumper alone is not enough (the Fintek is VBAT backed).
74 Put all back in place and restart the board. It might need 1-2 AC power cycles
75 to reinitialize (running at full fan speed - don't panic).
76 * External flashing has been tested with RPi2 without main power connected.
77 3.3V provided by RPi2. Read more about [flashing methods].
78 * In case of going back to proprietary BIOS create/save CMOS settings as early
79 as possible (do not leave BIOS on first start without saving settings).
80 The BIOS might corrupt nvram (not cmos!) and leave the system in a dead state
81 that needs an external flasher to revive. If stuck, reset the Fintek (see
82 above) and restart the system several times and/or try setting J1 to
83 temporarily disable ME.
85 ![](J1-flash-protect.jpg)
87 * The JSPI1 header (5×2 2.0mm pitch pin header) for external flashing is
88 directly connected to the flash chip. Additional 3.3V to /HOLD and /WP is not
89 needed (internally re-routed already).
91 ![](JSPI1-Winbond-W25Q32BVSIG.jpg)
93 ![](JSPI1-connected.jpg)
95 ![](JSPI1.png)
97 ## Flash layout
99 * The 4MiB flashrom is divided into 4 sections:
101 ![][flashlayout]
103 ## Links
105 - [BIOS ROM]
106 - [Fintek F71808A datasheet]
107 - [Winbond 25Q32BV datasheet]
109 [BIOS ROM]: https://www.medion.com/de/servicebackend/_lightbox/treiber_details.php?did=9744
110 [Winbond 25Q32BV datasheet]: https://www.winbond.com/resource-files/w25q32bv_revi_100413_wo_automotive.pdf
111 [Fintek F71808A datasheet]: https://www.alldatasheet.com/datasheet-pdf/pdf/459069/FINTEK/F71808A.html
112 [flashlayout]: flashlayout.svg
113 [flashing methods]: ../../../tutorial/flashing_firmware/index.md