~amjoseph/ownerboot

cc3b19a6c14ab867c50ffc8a143a0421387454fc — Adam Joseph 7 months ago 466764c
ecfw-scripts: print EC version before each operation

This commit adds an invocation of `ectool version` at the start of
each of the two flashing scripts, so the pre-flashing versions
appear on the console.
1 files changed, 4 insertions(+), 0 deletions(-)

M src/platform/kevin/ecfw/scripts.nix
M src/platform/kevin/ecfw/scripts.nix => src/platform/kevin/ecfw/scripts.nix +4 -0
@@ 14,6 14,8 @@ stdenv.mkDerivation {
    #!${runtimeShell}
    set -euo pipefail

    ${ectool}/bin/ectool version

    echo
    echo "rebooting EC into the RO image..."
    ${ectool}/bin/ectool reboot_ec RO


@@ 42,6 44,8 @@ stdenv.mkDerivation {
    #!${runtimeShell}
    set -euo pipefail

    ${ectool}/bin/ectool version

    echo
    echo "making sure you are in the RW image before flashing the RO..."
    ${ectool}/bin/ectool version | grep 'Firmware copy: RW'