You've already forked open-source-firmware-validation
mirror of
https://github.com/Dasharo/open-source-firmware-validation.git
synced 2026-06-13 10:16:18 -07:00
9bbb3a3d8c
Signed-off-by: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
21 lines
893 B
Plaintext
21 lines
893 B
Plaintext
*** Keywords ***
|
|
Check EC Firmware Version
|
|
[Documentation] Keyword allows checking EC firmware version via the
|
|
... dasharo_ectool info utility.
|
|
[Arguments] ${expected_version}=${EC_VERSION} ${tool}=dasharo_ectool
|
|
${output}= Execute Command In Terminal ${tool} info
|
|
Should Contain ${output} ${expected_version}
|
|
|
|
Flash EC Firmware
|
|
[Documentation] Keyword allows flashing EC firmware via the
|
|
... dasharo_ectool info utility.
|
|
[Arguments] ${ec_fw_download_link}=https://3mdeb.com/open-source-firmware/Dasharo/${EC_BINARY_LOCATION}
|
|
... ${tool}=dasharo_ectool
|
|
Execute Command In Terminal
|
|
... command=wget -O /tmp/ec.rom ${ec_fw_download_link}
|
|
... timeout=320s
|
|
Write Into Terminal ${tool} flash /tmp/ec.rom
|
|
Press Enter
|
|
Read From Terminal Until Successfully programmed SPI ROM
|
|
Sleep 10s
|