Debian Codegraph @

doc/release_notes/v_1_5.rst

raw
1 ====================
2 v1.5 (Dec 2024)
3 ====================
4
5 This document describes the major changes in flashrom version v1.5.0,
6 from more than 80 patches contributed by more than 20 authors (thank you!).
7
8 And we all did it in just ~4 months since previous release.
9
10 Download
11 ========
12
13 flashrom v1.5 can be downloaded either via anonymous git at https://review.coreboot.org/flashrom.git,
14 or as signed source tarballs.
15
16 The key fingerprint for source tarballs is
17
18 6E6E F9A0 BA47 8006 E277 6E4C C037 BB41 3134 D111
19
20 Version v1.5.1
21 ---------------
22
23 Version 1.5.1 fixed an issue flashing some Intel-based platforms with the internal programmer
24 that was introduced in 1.5.0.
25 Users with older Intel-based platforms (Broadwell/Braswell and earlier) flashing using the internal
26 programmer option might encounter an 'Invalid OPCODE' error when erasing/writing which would lead to an
27 incomplete flash and potentially a bricked device. External flashing was not affected at all.
28
29 All users are encouraged to update.
30
31 Ticket: https://ticket.coreboot.org/issues/573
32
33 Patch: https://review.coreboot.org/c/flashrom/+/85612
34
35 Git tag: ``v1.5.1``
36
37 Tarball: https://download.flashrom.org/releases/flashrom-v1.5.1.tar.xz
38
39 Signature: https://download.flashrom.org/releases/flashrom-v1.5.1.tar.xz.asc
40
41 Version v1.5.0
42 --------------
43
44 Git tag: ``v1.5.0``
45
46 Tarball: https://download.flashrom.org/releases/flashrom-v1.5.0.tar.xz
47
48 Signature: https://download.flashrom.org/releases/flashrom-v1.5.0.tar.xz.asc
49
50 Known issues
51 ============
52
53 AMD-based PCs with FCH are unable to read flash contents for internal (BIOS
54 flash) chips larger than 16 MB, and attempting to do so may crash the system.
55 Systems with AMD "Promontory" IO extenders (mostly "Zen" desktop platforms) are
56 not currently supported.
57
58 https://ticket.coreboot.org/issues/370
59
60 Build only supported with Meson
61 ===============================
62
63 As documented in the :doc:`v1.4 release notes <v_1_4>`, support for building
64 flashrom with make has been removed; all Makefiles have been deleted. Meson is
65 now the only supported tool for building flashrom from source.
66
67 New Features
68 ============
69
70 Support for ECAM
71 ----------------
72
73 Libpci 3.13.0 and onwards support ECAM to access pci registers. flashrom will
74 be moved to ECAM from IO port 0xcf8/0xcfc if the libpci version is >= 3.13.0.
75 The ECAM has been supported for a very long time, most platforms should support
76 it. For those platforms don't support ECAM, libpci will terminate the process by
77 exit.
78
79 Progress bar
80 ------------
81
82 Progress bar feature is now working for all operations: read, erase, write.
83
84 To display progress bar, add ``--progress`` option on the command line.
85
86 Option to choose between speed and longevity of the chip
87 --------------------------------------------------------
88
89 New command line option ``--sacrifice-ratio`` handles the following situation:
90
91 There is a region which is requested to be erased (or written, because
92 the write operation uses erase too). Some of the areas inside this
93 region don't need to be erased, because the bytes already have expected
94 value. Such areas can be skipped.
95
96 The logic selects eraseblocks that can cover the areas which need to be
97 erased. Suppose there is a region which is partially covered by
98 eraseblocks of size S (partially because remaining areas don't need to
99 be erased). Now suppose we can cover the whole region with eraseblock
100 of larger size, S+1, and erase it all at once. This will run faster:
101 erase opcode will only be sent once instead of many smaller opcodes.
102 However, this will run erase over some areas of the chip memory that
103 didn't need to be erased. Which means the physical chip will wear out
104 faster.
105
106 This new option sets the maximum % of memory that is allowed for
107 redundant erase. Default is 0, S+1 size block only selected if all the
108 area needs to be erased in full. 50 means that if more than a half of
109 the area needs to be erased, a S+1 size block can be selected to cover
110 the entire area with one block.
111
112 The tradeoff is the speed of programming operation VS the longevity of
113 the chip. Default is longevity.
114
115 RPMC support added
116 ------------------
117
118 Adding support for RPMC commands as specified by JESD260 to the cli_client.
119
120 Main implementation is in ``rpmc.c``. Also adds new parsing capabilities for the SFDP
121 page carrying the necessary information. All the features are optional and
122 depend on ``libcrypto``.
123
124 It currently uses automatic feature detection through the corresponding
125 SFDP page.
126
127 Programmer updates
128 ==================
129
130 * ch347_spi: Add spi clock frequency selection (``spispeed`` option)
131 * dummyflasher: Enable higher frequency emulation, add docs and tests
132 * ichspi: Change the opcode position for reprogramming on the fly 2->4
133 * ichspi: Merge spi_master implementations for Intel ich
134 * stlinkv3_spi: Mark STLinkV3-Mini not working
135
136 Bugs fixed
137 ==========
138
139 * Modified bytes would sometimes not be verified after writing
140
141 In some situations an off-by-one error would cause the last byte
142 of memory that was modified by an operation to not be verified.
143 This could prevent some erase or write errors from being detected,
144 or in other cases could make verification appear false-negative.
145
146 Fixed by https://review.coreboot.org/c/flashrom/+/84078.
147
148 * Possible crashes while preparing erase operations
149
150 An out-of-bounds memory read was found in the algorithm that selects methods
151 to erase memory, which could cause flashrom to crash. This issue was first
152 introduced in release 1.4, and crashes were observed when running on OpenBSD.
153
154 See https://ticket.coreboot.org/issues/555, and fixed by
155 https://review.coreboot.org/c/flashrom/+/84234.
156
157 * Crash when attempting to erase FEATURE_NO_ERASE chips
158
159 When attempting to erase a chip that doesn't need to be erased before
160 being written, flashrom could attempt to read through a null pointer
161 and crash. The only supported chip that is affected is the M95M02
162 EEPROM.
163
164 See https://ticket.coreboot.org/issues/553, and fixed by
165 https://review.coreboot.org/c/flashrom/+/84203.
166
167 * install failures related to libcmocka
168
169 In some configurations, the install target provided by the buildsystem (like
170 meson install) would fail to execute successfully due to a missing libcmocka
171 file. This is fixed by not installing libcmocka, because it is a third-party
172 library used by flashrom only for testing.
173
174 See https://ticket.coreboot.org/issues/561, and fixed by
175 https://review.coreboot.org/c/flashrom/+/84557.
176
177 * Excess erase of automatically-probed chips on Intel chipsets
178
179 When erasing some chips using the ichspi programmer (for Intel ICH chipsets),
180 the entire chip would be erased and rewritten even when the hardware supported
181 erasing smaller blocks, causing operations to take longer to complete and
182 negatively impacting chip longevity. This issue was first introduced in version
183 1.4.
184
185 See https://ticket.coreboot.org/issues/556, and fixed by
186 https://review.coreboot.org/c/flashrom/+/84253.
187
188 * Unnecessary erases
189
190 When erasing parts of a memory, some blocks could be erased and rewritten
191 unnecessarily or erased multiple times which could hurt the longevity of
192 the memory chip. This behavior was introduced in version 1.4.
193
194 Fixed by https://review.coreboot.org/c/flashrom/+/84614 and
195 https://review.coreboot.org/c/flashrom/+/84686.
196
197 Chipset support
198 ===============
199
200 Added Raptor Point PCH support.
201
202 Chip model support added
203 ========================
204
205 * FM25Q04
206 * FM25Q64
207 * FM25Q128
208
209 * GD25B128E
210 * GD25B256E
211 * GD25B512MF
212 * GD25F64F
213 * GD25F128F
214 * GD25F256F
215 * GD25R128E
216 * GD25R256E
217 * GD25R512MF
218 * GD25LB256F
219 * GD25LB512ME
220 * GD25LB512MF
221 * GD25LR256F
222 * GD25LR512MF
223 * GD25LF256F
224 * GD25LF512MF
225
226 * MX25U25645G
227 * MX77U51250F
228
229 * W25Q32JV_M
230 * W25R512NW
231 * W74M51NW
232
233 * XM25LU64C
234 * XM25QH32C
235 * XM25QH32D
236 * XM25QH64D
237 * XM25QH128D
238 * XM25QH256D
239 * XM25QH512C
240 * XM25QH512D
241 * XM25QU16C
242 * XM25QU32C
243 * XM25QU128D
244 * XM25QU256D
245 * XM25QU512C
246 * XM25QU512D
247
248
249 * S25FL256L marked as tested
250
251 Misc
252 =========
253
254 * reduce DELAY_MINIMUM_SLEEP_US to 100 by default
255 * tests: Add assert for eraseblocks order of invocations for write op
256 * tests: Add header stdlib.h to allow scan-build to do analysis
257 * VERSION: Change name pattern to match tag name from now on
258 * writeprotect: Fix inaccurate return code
259 * erasure_layout: Fix unreachable error message
260 * linux_mtd: fix build with clang >= 19
261 * Extract usbdev declarations to a separate header
262 * chipset_enable.c: Add TGL chipset detection based on SPI PCI ID
263 * flashchips: Skip "WP untested" message for SFDP-capable chip
264 * sfdp: Update the message shown when SFDP-capable chip is detected
265 * build script: Add rpmc option to always be enabled on Jenkins
266 * Rename cli_classic.h to a more adequate cli_getop.h