Debian Codegraph @

doc/release_notes/v_1_6.rst

raw
1 ================
2 v1.6 (July 2025)
3 ================
4
5 This document describes the major changes in flashrom version v1.6.0,
6 which covers the work done in 56+ commits by 18 authors during 6 months time
7 since previous release. Thank you!
8
9 Download
10 ========
11
12 flashrom 1.6 can be downloaded in various ways:
13
14 Anonymous checkout from the git repository at https://review.coreboot.org/flashrom.git
15 (tag v1.6.0)
16
17 A tarball is available for download at
18 <TODO add link to tarball>
19 (signature <TODO add signature>)
20
21 fingerprint: <TODO add fingerprint>
22
23 Known issue
24 ===========
25
26 AMD-based PCs with FCH are unable to read flash contents for internal (BIOS
27 flash) chips larger than 16 MB, and attempting to do so may crash the system.
28 Systems with AMD "Promontory" IO extenders (mostly "Zen" desktop platforms) are
29 not currently supported.
30
31 https://ticket.coreboot.org/issues/370
32
33 New features
34 ============
35
36 -r/-w/-v argument is optional when using -i
37 -------------------------------------------
38
39 See :doc:`/classic_cli_manpage` for details.
40
41 Added support for the Excamera Labs SPIDriver
42 ---------------------------------------------
43
44 New programmer ``spidriver`` supports Excamera Labs SPIDriver device
45 which is a SPI hardware interface with a display,
46 connected as an FT230X USB serial device at a fixed baud rate of 460800.
47
48 More details can be found by the links:
49
50 Website: https://spidriver.com/
51
52 Firmware: https://github.com/jamesbowman/spidriver
53
54 Protocol: https://github.com/jamesbowman/spidriver/blob/master/protocol.md
55
56 New documentation
57 =================
58
59 An important note on documentation: all documentation is now contained in the git tree
60 in ``/doc`` directory and flashrom website is generated from it. Old wiki
61 website has retired and no longer supported, old wiki content can be browsed in web archive.
62
63 Hall of Fame
64 ------------
65
66 The flashrom HTML documentation (and web site) now includes an
67 automatically-generated list of historical contributors, to acknowledge
68 everybody who has made flashrom into what it is:
69 :doc:`../about_flashrom/hall_of_fame`.
70
71 When building the documentation, the ``generate_authors_list`` Meson option will
72 cause the lists to be generated, requiring a runnable copy of Git on the system
73 and that the source tree being built is a Git working copy. If those
74 requirements are not satisfied or the option is disabled, the authors lists will
75 be replaced with placeholders unless the ``generate_authors_list`` option is set
76 to ``enabled`` in which case the build will fail if the requirements are not
77 satisfied.
78
79 CH341A and CH341B
80 -----------------
81
82 The document :doc:`/supported_hw/supported_prog/ch341ab` gives information about
83 using CH341A and CH341B devices with flashrom programmer ``ch341a_spi``.
84
85 Chip/chipset support added or updated
86 =====================================
87
88 * MX77U25650F
89 * S25FL512S - probing function changed
90 * S25FS512S
91 * W25Q64JV-.Q - mark as tested for write-protect operations
92 * W25Q256JV_M - marked as fully tested
93 * W25Q256JV_Q - marked as tested for read/write/erase
94 * W25Q128.W - marked as fully tested
95 * W25Q256JW - added support for write-protect operations
96 * XM25QH64A
97 * Intel B150 and Q170 - marked as tested
98
99 libflashrom API updates
100 =======================
101
102 New API for progress reporting
103 ------------------------------------------
104
105 The old ``flashrom_set_progress_callback`` function for requesting progress updates
106 during library operations is now deprecated. Users should call
107 ``flashrom_set_progress_callback_v2`` instead, which also changes the signature
108 of the callback function. Specifically, new function type ``flashrom_progress_callback_v2``
109 should be used from now on.
110
111 This new API fixes limitations with the old one where most users would need to
112 define their own global state to track progress, and it was impossible to fix that
113 issue while maintaining binary compatibility without adding a new API.
114
115 New API for logging and setting log level
116 -----------------------------------------
117
118 New API ``flashrom_set_log_callback_v2`` is added which allows the users to provide
119 a pointer to user data, the latter is managed by the caller of the API. New API also
120 introduces a new signature for log callback function, ``flashrom_log_callback_v2``.
121
122 New API supports setting the log level for messages from libflashrom, ``flashrom_set_log_level``.
123 The log callback is invoked only for the messages with log level less or equal than the one
124 requested (i.e. only for the messages at least as urgent as the level requested).
125
126 Old API ``flashrom_set_log_callback`` without user data continues to work as before and it is
127 supported as before. Old API supports ``flashrom_set_log_level`` as well.
128
129 New API for probing flashchips
130 ------------------------------
131
132 New API for probing is added ``flashrom_flash_probe_v2`` which can (if requested)
133 go through all known flashchips and find all matches. v2 returns the number of matches
134 found (or 0 if none found) and the list of names of all matched entries.
135
136 ``flashrom_flash_probe_v2`` continues to support an optional parameter ``chip_name``
137 if the caller want to probe for only one specific chip with given name.
138
139 Command line interface is now using ``flashrom_flash_probe_v2``.
140
141 Old API ``flashrom_flash_probe`` is deprecated. It stays available "as is" for now,
142 however will be removed at some point in future. Users should switch to v2.
143
144 The main reason for deprecation is that it was returning incomplete information in
145 case when multiple matching chips were found during probing. Specifically, the only
146 info returned was error code of "multiple chips match" with no details of which are
147 the matches and how many. This left the caller unable to proceed further. Consequently,
148 even flashrom's own command line interface was unable to use old libflashrom probing API,
149 and had to maintain separate logic for probing.
150
151 New API to get list of supported programmers
152 --------------------------------------------
153
154 New API ``flashrom_supported_programmers`` returns the list of all programmers that are
155 supported on a current run environment.
156
157
158 flashchips.c split into separate files by vendor
159 ================================================
160
161 ``flashchips.c`` file was split into separate files per vendor. flashchips.c still exists in the source
162 code but it is much smaller and only contain "generic" chip entries.
163
164 With this, instead of one file ``flashchips.c`` we now have a ``flashchips/`` directory which contains
165 all the files.
166
167 There are no changes to the usage, and everything that's supported stays the same.
168
169 Misc updates
170 ============
171
172 * Extract cli_output declarations to a separate header
173 * Extract programmer declarations to the correct header
174 * Add Glasgow to supported serprog programmers documentation
175 * Move SPI declarations from flash.h to spi.h
176 * tests/chip: fix print format errors in gcc 14.2.0
177 * cli: Remove array of flash contexts, use one active context instead
178 * fmap: Skip unreadable regions when attempting to locate FMAP
179 * jlink_spi: Increase delay on power-on feature from 10 to 100 millisec
180 * cli_classic.c: Reimplement parse_wp_range
181 * probe_flash: Introduce an error code for "other" probing errors
182 * udelay: move into platform folder