From 9aad804fd0a2b23a767b91cd749717bdd497f982f2e081982da6294531843375 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 30 Nov 2024 09:43:18 +0000 Subject: [PATCH] - update to 4.8.1: * Add esp32c2 eco4 rom magic value * Correctly exclude the unwanted sub/modules * Supports wafer efuse versions for esp32c61 * add new command SFDP read * Add option to retry connection in a loop * Updates efuse table for esp32c5 * Updates efuse table for esp32p4 * Added stub flasher support * add autocompletions * allow picking UART by VID/PID/Name * Add USB-serial/JTAG stub support * Add UART stub support * Print key_purpose name for get_security_info cmd * Adds support extend efuse table by user CSV file* separated(default) and united(new) * Adds incompatible eFuse settings check for S3 * Apply reconnections to the whole reset sequence, not line transitions * Automatically reconnect if port disconnects during reset * Add ECO1 magic number * Add support for secure boot v2 using ECDSA-P384 signatures * retry flashing if chip disconnects * Allow filtering efuses based on command line arguments * Enable context manager for esp instances * Added check for correctness of written data * Improves help for burn_efuse cmd * clear boot control register on hard reset * add spi-connection restriction to ROM class OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-esptool?expand=0&rev=28 --- esptool-4.7.0.tar.gz | 3 --- esptool-4.8.1.tar.gz | 3 +++ python-esptool.changes | 57 ++++++++++++++++++++++++++++++++++++++++++ python-esptool.spec | 18 ++++++++----- 4 files changed, 72 insertions(+), 9 deletions(-) delete mode 100644 esptool-4.7.0.tar.gz create mode 100644 esptool-4.8.1.tar.gz diff --git a/esptool-4.7.0.tar.gz b/esptool-4.7.0.tar.gz deleted file mode 100644 index e862199..0000000 --- a/esptool-4.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:da68c175e4ae3fd9d87469b7ef1b8429cd84a8f8a2d22c96273640d329e68c1d -size 7045501 diff --git a/esptool-4.8.1.tar.gz b/esptool-4.8.1.tar.gz new file mode 100644 index 0000000..bc2cce1 --- /dev/null +++ b/esptool-4.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17e6332ef1c361f97d8ca572a48c19b102172515fe553ea466e9da71d3292522 +size 6933695 diff --git a/python-esptool.changes b/python-esptool.changes index 53a8c92..ce68b27 100644 --- a/python-esptool.changes +++ b/python-esptool.changes @@ -1,3 +1,60 @@ +------------------------------------------------------------------- +Sat Nov 30 09:40:57 UTC 2024 - Dirk Müller + +- update to 4.8.1: + * Add esp32c2 eco4 rom magic value + * Correctly exclude the unwanted sub/modules + * Supports wafer efuse versions for esp32c61 + * add new command SFDP read + * Add option to retry connection in a loop + * Updates efuse table for esp32c5 + * Updates efuse table for esp32p4 + * Added stub flasher support + * add autocompletions + * allow picking UART by VID/PID/Name + * Add USB-serial/JTAG stub support + * Add UART stub support + * Print key_purpose name for get_security_info cmd + * Adds support extend efuse table by user CSV + file* separated(default) and united(new) + * Adds incompatible eFuse settings check for S3 + * Apply reconnections to the whole reset sequence, + not line transitions + * Automatically reconnect if port disconnects during reset + * Add ECO1 magic number + * Add support for secure boot v2 using + ECDSA-P384 signatures + * retry flashing if chip disconnects + * Allow filtering efuses based on command line arguments + * Enable context manager for esp instances + * Added check for correctness of written data + * Improves help for burn_efuse cmd + * clear boot control register on hard reset + * add spi-connection restriction to ROM class + * add UF2 IDs for ESP32-C5 and ESP32-C61 + * Updates efuses for C5 and C61 + * add c61 basic flash support (no_stub) + * skipped the stub check for esp32c5 mp + * base support of esp32c5 mp (no stub) + * Added warning when secure boot enabled + * Recalculated SHA digest for image binary + * print flash voltage in flash_id command + * Adds wafer and pkg versions + * Update adc_info commands for all chips + * Adds new efuses for esp32p4 + * Allow the espefuse.py to work when coding + scheme == 3 + * Add ROM bootloader flash error definitions + * Use ruff instead of flake8 and black both in pre-commit and + CI + * Enable USB-serial/JTAG in flasher stub + * Postpone some efuses to burn them at the very end + * add advisory port locking + * check_error --recover chip even if there are num_errors + * Adds new efuses for esp32c6 and esp32h2 + * add target esp32c5 beta3 + * Bug Fixes + ------------------------------------------------------------------- Wed Aug 14 15:14:39 UTC 2024 - Dirk Müller diff --git a/python-esptool.spec b/python-esptool.spec index aedfc09..55837d0 100644 --- a/python-esptool.spec +++ b/python-esptool.spec @@ -18,22 +18,26 @@ %{?sle15_python_module_pythons} Name: python-esptool -Version: 4.7.0 +Version: 4.8.1 Release: 0 Summary: A serial utility to communicate & flash code to Espressif ESP8266 & ESP32 chips License: GPL-2.0-or-later Group: Development/Languages/Python URL: https://github.com/espressif/esptool Source: https://github.com/espressif/esptool/archive/v%{version}.tar.gz#/esptool-%{version}.tar.gz +BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module bitstring >= 3.1.6} BuildRequires: %{python_module ecdsa >= 0.16.0} BuildRequires: %{python_module intelhex} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pyelftools} BuildRequires: %{python_module pyserial >= 3.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module reedsolo >= 1.5.3} +BuildRequires: %{python_module requests} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: openssl BuildRequires: python-rpm-macros @@ -59,13 +63,12 @@ Allows flashing firmware, reading back firmware, querying chip parameters, etc. %prep %setup -q -n esptool-%{version} -sed -i '/^#!/d' flasher_stub/*.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/espefuse.py %python_clone -a %{buildroot}%{_bindir}/espsecure.py %python_clone -a %{buildroot}%{_bindir}/esptool.py @@ -76,7 +79,9 @@ sed -i '/^#!/d' flasher_stub/*.py %check # there are more tests but upstream runs only those in .travis.yml %pytest test/test_imagegen.py -%pytest test/test_espsecure.py +# requires python-pkcs11 which isn't packaged +rm -v test/test_espsecure.py test/test_espsecure_hsm.py +%pytest -m host_test %post %python_install_alternative espefuse.py @@ -97,8 +102,9 @@ sed -i '/^#!/d' flasher_stub/*.py %python_alternative %{_bindir}/espsecure.py %python_alternative %{_bindir}/espefuse.py %python_alternative %{_bindir}/esp_rfc2217_server.py -%{python_sitelib}/esptool-%{version}-*egg-info +%{python_sitelib}/esptool-%{version}.dist-info %{python_sitelib}/esptool +%{python_sitelib}/esp_rfc2217_server %{python_sitelib}/espsecure %{python_sitelib}/espefuse