forked from pool/python-esptool
Accepting request 681073 from home:jayvdb:noflake8
- Remove unnecessary build dependencies on flake8 and plugins - Activate test suite - Add flasher_stub/ to %doc, as it is the source for binary blob in esptool.py - Update to v2.6 OBS-URL: https://build.opensuse.org/request/show/681073 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-esptool?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
6ce59448be
commit
c9b39a9c56
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4578cc180b3d9ec27bdc254149a18ec70d4cbb6987700e21d1d9e38fde637131
|
||||
size 72312
|
||||
3
esptool-2.6.tar.gz
Normal file
3
esptool-2.6.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:51ebe169cade538c986e92eb65562b8ff3a1293baf14b9ad977df888061ed78e
|
||||
size 4336261
|
||||
@@ -1,3 +1,98 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 28 01:47:40 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Remove unnecessary build dependencies on flake8 and plugins
|
||||
- Activate test suite
|
||||
- Add flasher_stub/ to %doc, as it is the source for binary blob in esptool.py
|
||||
- Update to v2.6
|
||||
* Features
|
||||
+ New write_flash --erase-all ... option to erase all flash before writing
|
||||
(single command).
|
||||
+ Support patching the SHA256 digest of the ELF file into the binary
|
||||
(available in ESP-IDF via app description APIs)
|
||||
+ Make calling esptool module functions and esptool.main() more
|
||||
Python-friendly (all functions clean up open files correctly,
|
||||
main(...) can take an optional argument with a command line formatted
|
||||
as a list.)
|
||||
+ (ESP32) Support for reading/writing efuses when 3/4 Coding Scheme is set
|
||||
details
|
||||
+ (ESP32) espefuse.py supports displaying and setting a custom MAC address
|
||||
in BLK3 of efuse
|
||||
+ (ESP32) espsecure.py can now verify signatures with raw binary key file
|
||||
as well as PEM formatted key file
|
||||
* Bug Fixes/Changes
|
||||
+ Fix crash due to unimplemented write timeout on RFC2217 ports
|
||||
+ elf2image no longer adds empty ELF sections (zero length) to the .bin file
|
||||
+ elf2image fails with a proper error if an ELF file contains more than
|
||||
16 loadable sections
|
||||
+ Improve error message if list_ports is missing from pyserial
|
||||
+ Fix some write_flash timeouts writing large but highly compressible payloads
|
||||
+ (ESP8266) Fix bug where flashing with stub would fail if ESP8266 was in
|
||||
deep sleep immediately beforehand.
|
||||
+ (ESP32) Workaround a mapping bug in the ESP-IDF bootloader
|
||||
(if IROM/DROM segment ended less than 0x20 bytes after a page boundary,
|
||||
older ESP-IDF bootloaders would not map the final page correctly).
|
||||
+ (ESP32) Reformat espefuse.py summary output (includes: read-only efuses
|
||||
now display value ? not 0, byte order of keys shown for BLK1,BLK2 are now
|
||||
shown in software order not the reversed byte order used by hardware
|
||||
cryptographical modules.)
|
||||
+ (ESP32) espsecure.py: Fix Python 3 compatibility issues
|
||||
- from v2.5.1
|
||||
* Errors during chip detection are now formatted correctly.
|
||||
* OSError is handled correctly while scanning for a port
|
||||
* Update link to flashrom repo for SPI flash chip IDs
|
||||
* read_flash command: Error out immediately if an invalid length
|
||||
packet is received (common symptom of bad serial link)
|
||||
* (ESP32) espefuse.py: Disable burning key efuses when 3/4 Coding Scheme
|
||||
is set (support for burning keys with 3/4 Coding Scheme will be addedr
|
||||
in a future update).
|
||||
- from v2.5.0
|
||||
* Set a write timeout in pyserial (prevents hanging in sync process if
|
||||
port is unavailable).
|
||||
* (ESP32) New option elf2image --secure-pad to pad the output binary
|
||||
so once signed it will align to an flash cache page boundary (64KB).
|
||||
Prevents unsigned data from being mapped into the instruction space
|
||||
via the flash cache.
|
||||
* Fix exception if no --port is specified but no serial ports are found
|
||||
in the system.
|
||||
* (ESP32) espsecure: Fix bug where digest_secure_bootloader could produce
|
||||
an incorrect digest.
|
||||
- from v2.4.1
|
||||
* --port argument was not correctly handled in v2.4.0
|
||||
* Corrected pyserial dependency to require pyserial v3.0 or newer
|
||||
- from v2.4.0
|
||||
* ESP8266 & ESP32 changes
|
||||
+ If no serial port is specified, try all serial ports until an Espressif
|
||||
device responds.
|
||||
+ Print device MAC on every command, after connecting.
|
||||
+ New option --before no_reset_no_sync for use when immediately reusing the
|
||||
serial port with an already-running loader.
|
||||
+ Fix spurious load_ram error when executed code immediately resets the UART
|
||||
baud rate..
|
||||
+ Produce an error if load_ram is going to clobber bootloader stub memory
|
||||
(can use --no-stub to work around this).
|
||||
+ Display a helpful error if the incompatible 'serial' module was installed
|
||||
instead of 'pyserial'.
|
||||
+ Explicitly close the serial port at end of main() function (allows calling
|
||||
esptool.main() from another Python program for basic scripting.)
|
||||
+ Workaround Windows usbser.sys (USB CDC-ACM device) driver bug setting DTR & RTS
|
||||
+ Flasher stub build updates to work with recent ESP-IDF & ESP8266 SDK headers
|
||||
+ Flasher stub now sends correct length field in protocol responses
|
||||
(esptool.py was ignoring this field, but some other tools were not).
|
||||
* ESP8266 changes
|
||||
+ Move the loader stub to the very end of IRAM (useful when using load_ram command).
|
||||
+ elf2image --version=2 is now compatible with recent ESP8266 SDK bootloader
|
||||
and produces the same binary output as ESP8266 SDK gen_app.py.
|
||||
+ Remove unsupported flash size 4MB-c2
|
||||
* ESP32 changes
|
||||
+ Print chip frequency rating values in Features list, for chips where
|
||||
these are set.
|
||||
+ Working load_ram command.
|
||||
+ espefuse.py: Support setting the baud rate.
|
||||
+ New --override-vddsdio option allows setting the VDDSDIO regulator to 1.8V,
|
||||
1.9V or "OFF" when connecting (to override the default value read from efuse).
|
||||
+ To avoid hardware damage, forcing VDDSDIO to 3.3V is not supported.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 4 12:47:43 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-esptool
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,20 +18,20 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-esptool
|
||||
Version: 2.3.1
|
||||
Version: 2.6
|
||||
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://files.pythonhosted.org/packages/source/e/esptool/esptool-%{version}.tar.gz
|
||||
Source: https://github.com/espressif/esptool/archive/v%{version}.tar.gz#/esptool-%{version}.tar.gz
|
||||
BuildRequires: %{python_module ecdsa}
|
||||
BuildRequires: %{python_module flake8 >= 3.2.0}
|
||||
BuildRequires: %{python_module flake8-future-import}
|
||||
BuildRequires: %{python_module flake8-import-order}
|
||||
BuildRequires: %{python_module pyaes}
|
||||
BuildRequires: %{python_module pyelftools}
|
||||
BuildRequires: %{python_module pyserial >= 2.5}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: openssl
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-ecdsa
|
||||
Requires: python-pyaes
|
||||
@@ -47,6 +47,10 @@ Allows flashing firmware, reading back firmware, querying chip parameters, etc.
|
||||
|
||||
%prep
|
||||
%setup -q -n esptool-%{version}
|
||||
rm -r ecdsa pyaes
|
||||
sed -i '/flake8/d' setup.py
|
||||
sed -i '/^#!/d' flasher_stub/*.py
|
||||
chmod a-x flasher_stub/*.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -56,10 +60,15 @@ Allows flashing firmware, reading back firmware, querying chip parameters, etc.
|
||||
%python_clone %{buildroot}%{_bindir}/esptool.py
|
||||
%python_clone %{buildroot}%{_bindir}/espsecure.py
|
||||
%python_clone %{buildroot}%{_bindir}/espefuse.py
|
||||
%python_expand sed -i '/^#!/d' %{buildroot}%{$python_sitelib}/*.py
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%doc README.md flasher_stub/
|
||||
%{_bindir}/esptool.py-%{python_bin_suffix}
|
||||
%{_bindir}/espsecure.py-%{python_bin_suffix}
|
||||
%{_bindir}/espefuse.py-%{python_bin_suffix}
|
||||
|
||||
Reference in New Issue
Block a user