Hi All,
We are trying to update the BIOS using the flashrom utility on the Elkhart Lake (LEC-EL) x86 platform, but we are facing the issue: "linux_mtd_erase: MEMERASE ioctl call returned -1, error: Input/output error" when running the flashrom tool. Please see below the attached error log for your reference.
System Configuration:
* Ubuntu 24.04
* Kernel Version: 6.13.7
NOTE: We have previously used this tool to upgrade and downgrade the BIOS without issues, but we are currently encountering this error.
ERROR MESSAGE:
$ sudo flashrom -p linux_mtd:dev=0 -w /home/adlink/Documents/LEC-EL_10710_FullImage/LEC-EL_10710.BIN -V
flashrom v1.5.1 on Linux 6.13.7 (x86_64)
flashrom is free software, get the source code at https://flashrom.org
flashrom was built with GCC 13.3.0, little endian
Command line (5 args): flashrom -p linux_mtd:dev=0 -w /home/adlink/Documents/LEC-EL_10710_FullImage/LEC-EL_10710.BIN -V
Initializing linux_mtd programmer
get_mtd_info: device_name: "BIOS", is_writeable: 1, numeraseregions: 0, total_size: 16777216, erasesize: 4096
Opened /dev/mtd0 successfully
The following protocols are supported: Programmer-specific.
Probing for Programmer Opaque flash chip, 0 kB: Added layout entry 00000000 - 00ffffff named complete flash
Found Programmer flash chip "Opaque flash chip" (16384 kB, Programmer-specific) on linux_mtd.
Found Programmer flash chip "Opaque flash chip" (16384 kB, Programmer-specific).
Reading old flash chip contents... read_flash: region (00000000..0xffffff) is readable, reading range (00000000..0xffffff).
done.
Updating flash chip contents... erase_write: region (00000000..0xffffff) is writable, erasing range (00000000..0xffffff).
linux_mtd_erase: MEMERASE ioctl call returned -1, error: Input/output error
Erase/write done from 0 to ffffff
Write Failed!Uh oh. Erase/write failed. Checking if anything has changed.
Reading current flash chip contents... read_flash: region (00000000..0xffffff) is readable, reading range (00000000..0xffffff).
done.
Good, writing to the flash chip apparently didn't do anything.
Please check the connections (especially those to write protection pins) between
the programmer and the flash chip. If you think the error is caused by flashrom
please report this to the mailing list at flashrom(a)flashrom.org or on IRC (see
https://www.flashrom.org/Contact for details), thanks!
Could you please suggest if any kernel configuration needs to be changed?
We would appreciate your input.
Thanks & Regards,
Arvind G P.