Merge pull request #1756 from tlaurion/add_warn_prior_flashrom_call

flash.sh: Add warning to remind user to not interfere with flashrom operations that will follow
This commit is contained in:
Thierry Laurion 2024-08-23 13:10:20 -04:00 committed by GitHub
commit eb88b189e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,6 +48,7 @@ flash_rom() {
dd if=/tmp/pchstrp9.bin bs=1 count=4 seek=292 of=/tmp/${CONFIG_BOARD}.rom conv=notrunc >/dev/null 2>&1
fi
warn "Do not power off computer. Updating firmware, this will take a few minutes..."
flashrom $CONFIG_FLASHROM_OPTIONS -w /tmp/${CONFIG_BOARD}.rom 2>&1 \
|| die "$ROM: Flash failed"
fi