Stefan Reinauer has uploaded this change for review. ( https://review.coreboot.org/c/em100/+/36803 )
Change subject: WIP: Handle EM100Pro-G2 firmware updates ......................................................................
WIP: Handle EM100Pro-G2 firmware updates
This is unfinished, just backing up the comment change. DO NOT COMMIT
Change-Id: I4b8cd339cecc27d9d71a4df29fa03e43305eace0 Signed-off-by: Stefan Reinauer stefan.reinauer@coreboot.org --- M firmware.c 1 file changed, 18 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/em100 refs/changes/03/36803/1
diff --git a/firmware.c b/firmware.c index f5716d8..92119b5 100644 --- a/firmware.c +++ b/firmware.c @@ -23,16 +23,25 @@
/* file format: * - * 0x0000000: 65 6d 31 30 30 70 72 6f - magic 8 bytes - * 0x0000014: 32 2e 32 36 - version MCU - * 0x000001e: 30 2e 37 35 - version FPGA - * 0x0000028: 57 46 50 44 - WFPD (??) - * 0x0000038: 00 01 00 00 - file offset FPGA - * 0x000003c: 44 15 07 00 - file length FPGA - * 0x0000040: 00 17 07 00 - file offset MCU - * 0x0000044: 00 bf 00 00 - file length MCU + * 0x0000000: 65 6d 31 30 30 70 72 6f - magic (20 bytes) + * 0x0000014: 32 2e 32 36 - version MCU (10 bytes) + * 0x000001e: 30 2e 37 35 - version FPGA (10 bytes) + * 0x0000028: 57 46 50 44 - Rev / WFPD (16 bytes) + * 0x0000038: 00 01 00 00 - file offset FPGA (4 bytes) + * 0x000003c: 44 15 07 00 - file length FPGA (4 bytes) + * 0x0000040: 00 17 07 00 - file offset MCU (4 bytes) + * 0x0000044: 00 bf 00 00 - file length MCU (4 bytes) * - * flash layout + * flash layout: + * + * EM100Pro + * 0x0000000: fpga firmware + * 0x0100000: 256 bytes of 0x00 filled space + * 0x0100100: mcu firmware + * 0x01f0000: 4 bytes secret key, 00 padded + * 0x01fff00: ff ff 4 bytes serial number ff padded + * + * EM100Pro-G2 (TBD) * 0x0000000: fpga firmware * 0x0100000: 256 bytes of 0x00 filled space * 0x0100100: mcu firmware