Skip to content

Commit 8fa9b88

Browse files
committed
functions: unload Intel SPI driver before reading firmware
Signed-off-by: Matt DeVillier <[email protected]>
1 parent 5d11e1c commit 8fa9b88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

functions.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,9 @@ if ! get_flashrom; then
429429
return 1
430430
fi
431431

432+
# unload Intel SPI driver if loaded, causes issues with flashrom
433+
rmmod spi_intel_platform >/dev/null 2>&1
434+
432435
#get device firmware info
433436
echo -e "\nGetting device/system info..."
434437
#try reading only BIOS region

0 commit comments

Comments
 (0)