Skip to content

Commit 2a719aa

Browse files
committed
include/dts-functions.sh: Allow disabling write protection in flashrom
Signed-off-by: Pawel Langowski <[email protected]>
1 parent 2826418 commit 2a719aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/dts-functions.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,7 @@ board_config() {
845845
BIOS_LINK_DES="${FW_STORE_URL_DES}/minnowboard/v${DASHARO_REL_VER_DES}/${DASHARO_REL_NAME}_v${DASHARO_REL_VER_DES}.rom"
846846
FLASH_CHIP_LIST="W25Q64JV-.Q"
847847
PROGRAMMER_BIOS="internal"
848+
DISABLE_WP="true"
848849
;;
849850
*)
850851
print_error "Board model $SYSTEM_MODEL is currently not supported"
@@ -1192,6 +1193,9 @@ set_flashrom_update_params() {
11921193
else
11931194
FLASHROM_ADD_OPT_UPDATE="-N --ifd -i bios"
11941195
fi
1196+
if [ $DISABLE_WP == "true" ]; then
1197+
FLASHROM_ADD_OPT_UPDATE="$FLASHROM_ADD_OPT_UPDATE --wp-disable --wp-range=0x0,0x0"
1198+
fi
11951199
BINARY_HAS_RW_B=1
11961200
# We need to read whole binary (or BIOS region), otherwise cbfstool will
11971201
# return different attributes for CBFS regions

0 commit comments

Comments
 (0)