GM45 Thinkpad Internal flashing research: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
== Introduction == | == Introduction == | ||
The goal is to be able to flash internally the x200 with | The goal is to be able to flash internally the x200 with Flashrom. | ||
== | == Anti-reflashing mechanisms == | ||
The Lenovo X200 uses the following mechanisms to prevent internal reflashing: | |||
* Flash descriptor: Set the flash descriptor read-only, locks the ME, and platform regions. | |||
* PR registers: Sets the BIOS bootblock read-only and prevent access to the platform region | |||
== | == Idea == | ||
The flash descriptor restrictions can be lifted by using the GPIO33. | |||
That would then permit us, once booted, to reflash all the flash chip but what is still covered by the PR registers. | |||
This should be enough to relocate coreboot/libreboot outside of the region covered by the PR registers. | |||
Since the platform region would still be locked by the PR registers, flashrom will need to be patched not to touch it at all (it should not even try to read it). | |||
Revision as of 13:39, 14 June 2016
Introduction
The goal is to be able to flash internally the x200 with Flashrom.
Anti-reflashing mechanisms
The Lenovo X200 uses the following mechanisms to prevent internal reflashing:
- Flash descriptor: Set the flash descriptor read-only, locks the ME, and platform regions.
- PR registers: Sets the BIOS bootblock read-only and prevent access to the platform region
Idea
The flash descriptor restrictions can be lifted by using the GPIO33. That would then permit us, once booted, to reflash all the flash chip but what is still covered by the PR registers. This should be enough to relocate coreboot/libreboot outside of the region covered by the PR registers.
Since the platform region would still be locked by the PR registers, flashrom will need to be patched not to touch it at all (it should not even try to read it).