Commit d923745
gdt
py-esptool: Update to 5.0.1
Packaged in wip by Frédéric Fauberteau
pkgsrc changes:
---------------
* Adjust dependencies per upstream changes:
- require modern py-cryptography, dropping py-ecdsa
- add click and rich-click, dropping argcomplete
* Add patch to use up-to-date click (as found in pkgsrc), vs
upstream's expectation of old click.
* Adjust python versions; upstream requires >= 3.10
upstream changes:
-----------------
v5.0.1 (2025-07-15)
Bug Fixes
* elf2image: validate ELF section types and addresses before processing
(Jaroslav Burian - 97a1546)
* elf2image: handle PREINIT_ARRAY section type in ESP32-P4 elf file properly
(Jaroslav Burian - ec84a75)
* elf2image: Fix incorrect logger call (Marek Matej - 637f0e6)
v5.0.0 (2025-07-02)
Breaking changes
* The .py suffix is deprecated for the following scripts:
o esptool
o espefuse
o espsecure
o esp_rfc2217_server (Peter Dragun - 635cde1)
* execute-scripts command is removed (Peter Dragun - ff72b26)
New Features
* espefuse: Use the esptool logger, more concise messages (Radim Karniš - 983338f)
* espefuse: Replace execute-scripts with public API (Peter Dragun - ff72b26)
* espefuse: Add public API for espefuse (Peter Dragun - d7da0f8)
* espefuse: Rename all commands to use dashes and add tests for deprecated commands (Peter Dragun - ade3088)
* espefuse: Add support for chaining commands with click parser (Peter Dragun - 0a2ea69)
* espefuse: Refactor CLI and use click for parsing arguments (Peter Dragun - aa80001)
* espefuse: Adds efuse calculation fields for ESP32-C5 (Konstantin Kondrashov - 9104038)
* espefuse: Adds 3-bit field for wafer major version in ESP32-P4 (Konstantin Kondrashov - c102510)
* verbosity: Allow setting silent or verbose output levels (Radim Karniš - 90e3770)
* efuse: Adds efuses for ESP32-C61 ECO3 (Konstantin Kondrashov - 6146410)
* espefuse: Support efuse for ESP32-C5 ECO2 (v1.0) (Konstantin Kondrashov - 3726726)
* espsecure: Use esptool logger, unify output format of messages (Radim Karniš - 905249c)
* stub_flasher: Support for >16MB flash on P4 and >16MB encrypted writes on S3 (Radim Karniš - 4e6803e)
* espsecure: Drop ecdsa module, use cryptography instead (Radim Karniš - e132f6f)
* espsecure: Unify all commands and options to use dash instead of underscore (Peter Dragun - 36325fd)
* espsecure: Use rich click for CLI parsing (Peter Dragun - 9c7ddc1)
* targets: Update chip features lists with more info (Radim Karniš - 3c776aa)
* logging: Add collapsible output stages and ASCII progress bars (Radim Karniš - f3cf107)
* trace: Update --trace with more info and more readable formatting (Radim Karniš - 0beee77)
* cli: Commands and options use dashes instead of underscores for uniformity (Peter Dragun - 3cecd6d)
* cmds: Expand input of all functions to file paths, bytes, or file-like objects (Radim Karniš - 46a9e31)
* cmds: Allow all functions to both return bytes and write to files (Radim Karniš - 03b84a1)
* cmds: Polish the public API, unify arg names, pack some args (Radim Karniš - 37a13a9)
* cmds: Encapsulate logic for running the stub flasher in run_stub (Radim Karniš - 063d9d5)
* cli: Add click-based CLI interface (Peter Dragun - d40fefa)
* cmds: Allow commands to output bytes, as well as write to a file (Radim Karniš - 0153b79)
* cmds: Rework the public API to work as a Python module (Radim Karniš - ba36933)
* flash_attach: Encapsulate logic for flash attaching and configuration (Radim Karniš - 6e959ef)
* esp32h4: update the ESP32H4StubLoader (Chen Jichang - f7c78f8)
* espefuse: Updates esp32h4 efuse table and fixes tests (Konstantin Kondrashov - 3da8c57)
* esp32h4: add ESP32H4 esptool support (Chen Jichang - bcf5c6e)
* esp32h21: Add Microsoft UF2 family ID (Radim Karniš - cb0d334)
* errors: Print errors to STDERR, catch KeyboardInterrupt (Radim Karniš - 0864e17)
* write_flash: Remove the superfluous --verify option (Radim Karniš - dbf3d1c)
* logger: Add a custom logger, allow output redirection (Radim Karniš - 1ce02db)
* image_info: Deprecate the --version 1 output format (Radim Karniš - 3f625c3)
* Remove .py suffix from scripts (Peter Dragun - 635cde1)
* detect flash size of Adesto flash chips (Jaroslav Burian - 0b56f85)
* Add support for k, M suffix for flash size (Peter Dragun - 6f0d779)
* Rename reset modes to use dash instead of underscore (Peter Dragun - 851919f)
Removals
* make_image: Remove the make_image command in favor of other workflows (Radim Karniš - 955a7c8)
* beta_targets: Removed support for beta chip targets (Radim Karniš - 8f1c206)
* Deprecate Python versions 3.7, 3.8 and 3.9 (Peter Dragun - 19f1bee)
v4.9.0 (2025-06-19)
New Features
* espefuse: Add eFuses for ESP32-C61 ECO3 (Radim Karniš - 98688ab)
* espefuse: Support efuse for ESP32-C5 ECO2 (v1.0) (Konstantin Kondrashov - ce16054)
* stub_flasher: Support for >16MB flash on P4 and >16MB encrypted writes on S3 (Radim Karniš - 0110514)
* espefuse: Updates esp32h4 efuse table and fixes tests (Konstantin Kondrashov - 777c505)
* esp32h4: add ESP32H4 esptool support (Chen Jichang - edb99bd)
* esp32h21: Add Microsoft UF2 family ID (Radim Karniš - 74d27ae)
* watchdog_reset: Add a new watchdog_reset option working even in USB modes (Radim Karniš - d37c38a)
* espsecure: Improves an error message for encrypt_flash_data and decrypt_flash_data (Konstantin Kondrashov - ef407ed)
* espefuse: Clean up efuse code for ESP32H2 (Konstantin Kondrashov - 4e922fe)
* espefuse: Support different efuse table versions for ESP32H2 (Konstantin Kondrashov - d51ecbe)
* espefuse: Adds efuses for esp32h2 eco5 (Konstantin Kondrashov - 9b74df6)
* esp32h21: add ESP32H21 esptool support (gaoxu - 92ceff2)
* esp32-p4: add support for flasher stub in USB OTG mode (Peter Dragun - 804f2db)
* esp32-c5: Add ECO1 magic number (Radim Karniš - 6cc002c)
* esp_rfc2217: Improved the logger message format (Jakub Kocka - 39a12a4)
* espefuse: Adds 3 bit for PSRAM_CAP efuse field (Konstantin Kondrashov - ab2e0bf)
* espefuse: Adds API for getting block and wafer versions (Konstantin Kondrashov - 111c6c0)
* espefuse: Adds ADC calibration data for ESP32-C61 (Konstantin Kondrashov - 36d9735)
* espefuse: Adds ADC calibration data for ESP32-C5 (Konstantin Kondrashov - a903812)
* espefuse: Adds ADC calibration data for ESP32-P4 (Konstantin Kondrashov - 215e4b8)
* erase_region: Enable erasing in ROM bootloader and SDM (Radim Karniš - e0deeac)
* hard_reset: Support custom hard reset sequence configuration (Radim Karniš - 1b15738)
* print usb mode when output chip info (Jan Beran - 749d1ad)
* Add new app description segments (Jaroslav Burian - b23e60f)
* add filtering based on serial number (Jaroslav Burian - 88319db)
* Add support for Python 3.13 (Radim Karniš - 6abd05d)1 parent bf33a1b commit d923745
4 files changed
Lines changed: 109 additions & 84 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 15 | + | |
19 | 16 | | |
| 17 | + | |
20 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | | - | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
| 4 | + | |
3 | 5 | | |
| 6 | + | |
4 | 7 | | |
| 8 | + | |
5 | 9 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| |||
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 106 | | |
120 | 107 | | |
121 | 108 | | |
| |||
161 | 148 | | |
162 | 149 | | |
163 | 150 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| |||
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | 226 | | |
240 | 227 | | |
241 | 228 | | |
| |||
246 | 233 | | |
247 | 234 | | |
248 | 235 | | |
249 | | - | |
250 | 236 | | |
251 | 237 | | |
252 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
253 | 242 | | |
254 | 243 | | |
255 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
256 | 248 | | |
257 | 249 | | |
258 | 250 | | |
| |||
265 | 257 | | |
266 | 258 | | |
267 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
268 | 266 | | |
269 | 267 | | |
270 | 268 | | |
| |||
274 | 272 | | |
275 | 273 | | |
276 | 274 | | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
| |||
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
286 | 290 | | |
287 | 291 | | |
288 | 292 | | |
| |||
301 | 305 | | |
302 | 306 | | |
303 | 307 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | 314 | | |
317 | 315 | | |
318 | 316 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
325 | 323 | | |
326 | 324 | | |
327 | 325 | | |
| |||
331 | 329 | | |
332 | 330 | | |
333 | 331 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | 332 | | |
338 | 333 | | |
339 | 334 | | |
| 335 | + | |
340 | 336 | | |
341 | 337 | | |
342 | 338 | | |
343 | 339 | | |
344 | 340 | | |
345 | | - | |
346 | 341 | | |
347 | 342 | | |
348 | | - | |
349 | 343 | | |
350 | | - | |
351 | | - | |
352 | 344 | | |
353 | 345 | | |
354 | 346 | | |
355 | | - | |
356 | 347 | | |
357 | 348 | | |
358 | 349 | | |
359 | 350 | | |
360 | 351 | | |
361 | 352 | | |
362 | 353 | | |
| 354 | + | |
363 | 355 | | |
| 356 | + | |
364 | 357 | | |
| 358 | + | |
365 | 359 | | |
366 | 360 | | |
| 361 | + | |
367 | 362 | | |
368 | 363 | | |
369 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments