Actions
Bug #10573
closedNetgate_Coreboot_Upgrade cannot write to flash in 2.4.5
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Coreboot
Target version:
Start date:
05/19/2020
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Affected Version:
2.4.5
Affected Plus Version:
Affected Architecture:
amd64
Description
The adi_flash_util binary appears to be handing bad parameters to flashrom in pfSense 2.4.5.
It can read the flash:
[2.4.5-RELEASE][admin@8860.stevew.lan]/root: adi_flash_util -r Reading flash : SN: 0123456789 Serial Number Read from Flash 0123456789 Done. Please power cycle the board if the flash has been updated
But fails when it tries to write to it:
[2.4.5-RELEASE][admin@8860.stevew.lan]/root: adi_flash_util -w -s 9876543210 Programming Serial Number ... Failed to write flash data, exiting ...
However flashrom itself can write to the SPI flash:
flashrom -p internal -w /usr/local/share/pfSense-pkg-Netgate_Coreboot_Upgrade/roms/ADI_RCCVE-01.00.00.17-nodebug.rom -o /tmp/test.log flashrom v1.1 on FreeBSD 11.3-STABLE (amd64) flashrom is free software, get the source code at https://flashrom.org Using clock_gettime for delay loops (clk_id: 4, resolution: 1ns). coreboot table found at 0x7fbf0c00. Found chipset "Intel Avoton/Rangeley". Enabling flash write... OK. Found Winbond flash chip "W25Q64.V" (8192 kB, SPI) mapped at physical address 0x00000000ff800000. Reading old flash chip contents... done. Erasing and writing flash chip... Erase/write done. Verifying flash... VERIFIED.
Files
Actions