-
Notifications
You must be signed in to change notification settings - Fork 115
/
firmware_flashing.txt
23 lines (21 loc) · 1.26 KB
/
firmware_flashing.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Much of this is educated guesswork from the observed steps, but it might
provide a starting point for further investigation. Some of it could also
be just plain wrong.
My current understanding on how the EC flash process (as opposed to
the BIOS one) works are as follows:
1) dosflash loads firmware and does some validations
2) dosflash writes firmware to a specific location in the BIOS flash
(possibly just by handing the firmware blob to a BIOS call)
3) dosflash reboots the machine
4) during the BIOS Power-On-Self-Test, the BIOS notices that there
is a EC firmware in that special area and starts the flash process
5) The BIOS may or may not do some verification on the firmware before
allowing it to be sent to the EC
6) The BIOS tells the EC firmware to go into firmware update mode
7) The old EC firmware receives the new firmware data, performing
decryption on some of it as it goes and flashing it into the flash
memory onboard the EC chip.
8) When the old EC firmware has finished receiving the new firmware,
it sends itself a reset signal and reboots into the new EC firmware.
9) The BIOS gets confirmation from the EC that it is back up and running
and allows the boot sequence to continue.