Good morning.

                I am trying to write the SPI flash using the Fashrom v1.1 for C627 board (Intel PCH) and flash chip W25Q256 JV M.

                According to release notes for version 1.1, these HW components are supported already by flashrom. But I encounter problems. As it is being asked by flashrom utility, I report about it. Following some details:

 

  1. First, I read the existing flash. See the attached log file “read-flash.log”.
  2. Then, I try to write the flash (from its original image) using the -c option. The write fails. See the attached log “write-flash-exact-chip.log”.
  3. Next, I try to write the flash (from the same image) followed by verification, but without -c option. See the attached log “write-verify-flash.log”.
    1. If it will help… The verification reports an error at address 0x1000008f (values f8 vs f0). Comparison of original and read from flash chip images shows the same difference at the same offset.
  4. The flashrom I used was downloaded from the flashrom.org, version 1.1. Compiled locally under Ubuntu 18.04:
    1. Build machine kernel version: 4.15.0
    2. Target machine kernel version: 4.15.18
    3. ‘make’ version : GNU Make 4.1
    4. ‘cc’ version : cc (Ubuntu 7.4.0-1ubunutu-1~18/04/1) 7.4.0
    5. Build command: make CONFIG_ENABLE_LIBUSB0_PROGRAMMERS=no CONFIG_ENABLE_LIBUSB1_PROGRAMMERS=no
  5. If it is essential: the build environment and the target are not the same machine. Both machines are x86_64, running kernel 4.15 (different revisions) and Ubuntu 18.04 (different set of packages installed).