Actions
Bug #494
closedError during flashing (Enabled erase path optimisation)
Start date:
06/14/2023
Due date:
% Done:
0%
Estimated time:
Affected versions:
Needs backport to:
Affected hardware:
Affected OS:
Description
I tried to flash the W25Q128.V chip with BIOS and encountered the next issue.
I ran the following commands:
$ cp ~/bios/img/flash.img ~/bios/img/flash.tr.img
$ truncate -s 16M "~/bios/img/flash.tr.img"
$ echo "00000:2d637e boot" > ~/bios/img/rom.layout
# flashrom --programmer ch341a_spi -l ~/bios/img/rom.layout -i boot -w ~/bios/img/flash.tr.img
flashrom 1.4.0-devel (git:v1.2-1298-g8e948f9) on Linux 6.3.3-arch1-1 (x86_64)
flashrom is free software, get the source code at https://flashrom.org
Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Using region: "boot".
Found Winbond flash chip "W25Q128.V" (16384 kB, SPI) on ch341a_spi.
Reading old flash chip contents... done.
Region end not sector aligned! Extending end boundaries...
Erase/write done from 0 to 2d6fff
Verifying flash... FAILED at 0x002d637e! Expected=0x00, Found=0xff, failed byte count from 0x00000000-0x00ffffff: 0x2
Your flash chip is in an unknown state.
Please report this to the mailing list at flashrom@flashrom.org or
on IRC (see https://www.flashrom.org/Contact for details), thanks!
make: *** [Makefile:33: flash] Error 3
Immediately after this happens, I try to do it again:
# flashrom --programmer ch341a_spi -l ~/bios/img/rom.layout -i boot -w ~/bios/img/flash.tr.img
flashrom 1.4.0-devel (git:v1.2-1298-g8e948f9) on Linux 6.3.3-arch1-1 (x86_64)
flashrom is free software, get the source code at https://flashrom.org
Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Using region: "boot".
Found Winbond flash chip "W25Q128.V" (16384 kB, SPI) on ch341a_spi.
Reading old flash chip contents... done.
Region end not sector aligned! Extending end boundaries...
Erase/write done from 0 to 2d6fff
And it works... Probably, there's a bug in the erase mechanism
Actions