Debian Codegraph @

Documentation/northbridge/intel/sandybridge/me_cleaner.md

raw symbols SCIP
1 # ME Cleaner
2 It's possible to 'clean' the ME partition within the flash medium as part
3 of the build process. While cleaning as much code as possible is removed
4 from the ME firmware partition. In this state the ME errors out and doesn't
5 operate any more.
6
7 **Using a 'cleaned' ME partition may lead to issues and its use should be
8 carefully evaluated.**
9
10 ## Observations with 'cleaned' ME
11
12 * Instable LPC bus
13 * SuperIO is malfunctioning
14 * TPM is malfunctioning
15 * Random system shutdowns on high bus activity
16
17 ## Filing bug reports
18
19 Always test with unmodified IFD and ME section before reporting bugs to the
20 coreboot project.
21
22 ## Tutorial reducing the Intel ME firmware size
23
24 By default the cleaned ME firmware will still occupy the same space in
25 the firmware image. It's possible to change the firmware partition layout
26 and reclaim the space for the use by coreboot.
27 With the reduced Intel ME firmware the `ifd`, `gbe` and `me` regions require
28 less than 128 KiB of space in the ROM, which leaves the remaining for the
29 `bios` region.
30
31 This tutorial will guide you through the steps necessary.
32
33 ### 1. Obtain a full ROM
34
35 You need a full and working ROM with a full Intel ME firmware.
36
37 ### 2. Running me_cleaner
38
39 You need to run the *me_cleaner* on a full ROM, here called `fulldump.rom`:
40 The full ROM contains:
41 * IFD
42 * fully working Intel ME
43 * GbE (optional)
44 * BIOS (any firmware)
45
46 Running the command will generate two new files:
47 ```console
48 ./util/me_cleaner/me_cleaner.py -D patched_desciptor.bin -M stripped_me.bin fulldump.rom -t -r -S
49 ```
50
51 The generated files are:
52 * a patched IFD called `patched_desciptor.bin`
53 * stripped Intel ME called `stripped_me.bin`
54
55 The patched IFD has the *AltMeDisable* bit set and a modified flash layout.
56
57
58 *Note:* coreboot allows to select `CONFIG_ME_CLEANER` as part of the
59 build-process, but that doesn't rework the flash layout, it only removes
60 files from ME and sets the *AltMeDisable*-bit.
61
62 ### 3. Build coreboot
63
64 1. Now include the two new files from the previous step into coreboot's
65 build system.
66 2. Make sure to also increase the CBFS size
67 * 0x7E0000 for a 8MiB ROM
68 * 0xBE0000 for a 12MiB ROM
69 * 0xFE0000 for a 16MiB ROM
70 3. Make sure to **not** enable me_cleaner in Kconfig again as
71 you have already run it
72
73 ### 4. Flashing the ROM
74
75 As you have modified the layout you need to write the **full ROM** to flash
76 using an [external programmer].
77 Make sure to include all partitions into the ROM:
78 * IFD
79 * EC (might be unused)
80 * GbE (might be unused)
81 * ME
82 * BIOS
83
84 [external programmer]: ../../../tutorial/flashing_firmware/index.md