set_gbb_flags: Check write protection status before starting to flash.
People trying to override GBB flags and not having write protection disabled may
corrupt whole RW section of firmware.
To avoid that, we should check write protection before starting to invoke
TEST=./set_gbb_flags.sh 0x39 # Aborted on a write-protected system, as expected.
Signed-off-by: Hung-Te Lin <firstname.lastname@example.org>
Reviewed-by: Randall Spangler <email@example.com>
Commit-Queue: Hung-Te Lin <firstname.lastname@example.org>
1 file changed