File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 459459
460460# flash without verify, to avoid IFD mismatch upon verification
461461echo_yellow " Installing Full ROM firmware (may take up to 90s)"
462- ${flashromcmd} -n -w " ${coreboot_file} " -o /tmp/flashrom.log > /dev/null 2>&1
462+ ${flashromcmd} ${flashrom_params} -n -w " ${coreboot_file} " -o /tmp/flashrom.log > /dev/null 2>&1
463463if [ $? -ne 0 ]; then
464464 cat /tmp/flashrom.log
465465 exit_red " An error occurred flashing the Full ROM firmware. DO NOT REBOOT!" ; return 1
732732echo_yellow " Restoring stock firmware"
733733# we won't verify here, since we need to flash the entire BIOS region
734734# but don't want to get a mismatch from the IFD or ME
735- ${flashromcmd} -n -w " ${firmware_file} " -o /tmp/flashrom.log > /dev/null 2>&1
735+ ${flashromcmd} ${flashrom_params} -n -w " ${firmware_file} " -o /tmp/flashrom.log > /dev/null 2>&1
736736if [ $? -ne 0 ]; then
737737 cat /tmp/flashrom.log
738738 exit_red " An error occurred restoring the stock firmware. DO NOT REBOOT!" ; return 1
Original file line number Diff line number Diff line change 427427
428428# get device firmware info
429429echo -e " \nGetting device/system info..."
430+ # try reading only flash descriptor
431+ if ${flashromcmd} --ifd -i fd -r /tmp/bios.bin > /dev/null 2>&1 ; then
432+ # we can flash only BIOS region later
433+ flashrom_params=" --ifd -i bios"
434+ fi
430435# read entire firmware
431436${flashromcmd} -r /tmp/bios.bin > /dev/null 2>&1
432437if [ $? -ne 0 ]; then
You can’t perform that action at this time.
0 commit comments