Bug 282000 - comms/py-esptool: 4.7 produces invalid firmware images, fixed in 4.8.
Summary: comms/py-esptool: 4.7 produces invalid firmware images, fixed in 4.8.
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Fukang Chen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-11 01:07 UTC by Tomasz "CeDeROM" CEDRO
Modified: 2024-10-15 22:42 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (loader)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz "CeDeROM" CEDRO 2024-10-11 01:07:37 UTC
Hello world :-)

esptool 4.7.0 that we have in the ports as the latest version produces invalid firmware images [1] when used by elf2image with --ram-only-header. This is used by "simple boot" mode to redirect ESP32 BootROM to use hardware initialization routines from provided firmware image. This is used when producing final firmware image of an RTOS (i.e. NuttX or Zephyr) that performs hardware initialization on its own to have full control over the process. Problem is caused by overlapping regions in the resulting firmware image and fixed in version 4.8 [2].

As esptool 4.8.1 is already out [3] would it be possible to update port to the latest version? :-)

Thanks :-)
Tomek


[1] https://github.com/apache/nuttx/issues/13824
[2] https://github.com/espressif/esptool/issues/1018
[3] https://github.com/espressif/esptool/releases
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-10-15 06:40:48 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2af78a41c29e21d429cc00b99d7fa5415a1020cf

commit 2af78a41c29e21d429cc00b99d7fa5415a1020cf
Author:     Fukang Chen <loader@FreeBSD.org>
AuthorDate: 2024-10-15 04:02:59 +0000
Commit:     Fukang Chen <loader@FreeBSD.org>
CommitDate: 2024-10-15 06:23:02 +0000

    comms/py-esptool: Update to 4.8.1

    Changelog:

        https://github.com/espressif/esptool/releases/tag/v4.8.1
        https://github.com/espressif/esptool/releases/tag/v4.8.0

    PR:     282000

 comms/py-esptool/Makefile | 7 +++----
 comms/py-esptool/distinfo | 6 +++---
 2 files changed, 6 insertions(+), 7 deletions(-)
Comment 2 Fukang Chen freebsd_committer freebsd_triage 2024-10-15 06:55:14 UTC
Sorry for the delay.
Comment 3 Tomasz "CeDeROM" CEDRO 2024-10-15 22:42:24 UTC
TANK U :-)