From nobody Sun Nov 17 16:04:36 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XrwYw2yVvz5d4Xx for ; Sun, 17 Nov 2024 16:04:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XrwYw0cQ2z4YGW for ; Sun, 17 Nov 2024 16:04:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731859476; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4hyCCmaryIjgvr2oauJhyNNyix3tljgmJgxISJJoVrk=; b=PSJrLM56yNKvNL7v6E0Tms7Dkg5R2/kp8tkuYaIUGY6SJwZtO3WuRmFIo4kjZWA95bscOE h1D2d5mv3uzINuANKsjF3EG3x1aHIChqlWlcrdTbdY/GM1wHbxqXmpgDkn8YpEvBwVPMAt CjIeePbveIRv99o3VR63uTkN+FqD6G6MQZJTYoHqhWOUCN6rLfIQdRH5wMHPPV22AwUEXV 2fRG9HlJaj/FT8Xt3a5b1XZ4X/aWXfFXOBH6UZhM+K/vvbzlEwtaJfA9TXdBB0WKkv/vR/ GhvjMUJIFLsOTCZj0jvU+Vf+QGjp2+q4ol6Ryvti+EKShIsUAXbr3hrrZRdwwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731859476; a=rsa-sha256; cv=none; b=b24NtM+vSBKd54yga91OuZOyoVWo7L7dCJ163X4nVuESM13OnAkeq5Inmt7CJ5VuK43TU+ yfOQY69eLcPZOHXGLml8PSh2Msvj0PYCQGdt9r5kVMangFklqXizD/zY7s+QCgRTdaCqkD Rx/G7x2jQtCZb61nKTz9HVxYbru2SBCA6KsJYAPFnTVQyerqQffREVni/Asp2vbPawanwK Hw6l0lOPeI490K38SRNvZRnISLWoUpsiV30uahFPYz/tNFDufqnpL8Bo5z2mfmaYFplQe8 Rlj4ZiZGZ1WZxf5TknuEgU8akc7WSUdN3JtkTq1nAUpPCEQuQEvByjVN6y8gvg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XrwYw0DJCzyVJ for ; Sun, 17 Nov 2024 16:04:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4AHG4Zqt018280 for ; Sun, 17 Nov 2024 16:04:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4AHG4ZMl018279 for ports-bugs@FreeBSD.org; Sun, 17 Nov 2024 16:04:35 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 282814] comms/py-esptool: 4.8.1: A fatal error occurred: Failed to write to target Flash after seq 0 (result was 01050000: Requested resource not found) Date: Sun, 17 Nov 2024 16:04:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ohartmann@walstatt.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: loader@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282814 Bug ID: 282814 Summary: comms/py-esptool: 4.8.1: A fatal error occurred: Failed to write to target Flash after seq 0 (result was 01050000: Requested resource not found) Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: loader@FreeBSD.org Reporter: ohartmann@walstatt.org Assignee: loader@FreeBSD.org Flags: maintainer-feedback?(loader@FreeBSD.org) Host is recent CURRENT (FreeBSD 15.0-CURRENT #26 main-n273671-f334c0b8b3cb:= Sat Nov 16 20:19:46 CET 2024 amd64) and also tried latest 14.1-RELEASE-p6 and 14-STABLE. Problem: trying to flash a ESP32-S3 WROOM-1 N16R8 with a binary image of any kind fails with with the error > A fatal error occurred: Failed to write to target Flash after seq 0 (resu= lt was 01050000: Requested resource not found) The ESP32-S3 development kit device is plugged in with USB-C cable via its right-hand USB designated USB-C port (left hand is designated UART and not working that way). FreeBSD recognizes the device then as (the device is supposed to have a CP2102 UART-USB-bridge): [... dmesg ...] ugen0.4: at usbus0 umodem0 on uhub3 umodem0: on usbus0 umodem0: data interface 1, has no CM over data, has no break [...] #: sudo usbconfig -d ugen0.4 dump_device_desc ugen0.4: at usbus0, cfg=3D0 md=3DHOST spd= =3DFULL (12Mbps) pwr=3DON (138mA) bLength =3D 0x0012=20 bDescriptorType =3D 0x0001=20 bcdUSB =3D 0x0110=20 bDeviceClass =3D 0x0002 bDeviceSubClass =3D 0x0000=20 bDeviceProtocol =3D 0x0000=20 bMaxPacketSize0 =3D 0x0008=20 idVendor =3D 0x1a86=20 idProduct =3D 0x55d3=20 bcdDevice =3D 0x0445=20 iManufacturer =3D 0x0000 iProduct =3D 0x0002 iSerialNumber =3D 0x0003 <5896038723> bNumConfigurations =3D 0x0001=20 [...] When the device is plugged to the connector designated as USB, comms/py-esp= tool fails to query the device when the option "--no-stub" is ommited: esptool.py --port /dev/cuaU1 --chip esp32-s3 --baud 460800 get_security_info esptool.py v4.8.1 Serial port /dev/cuaU1 Connecting......... Chip is ESP32-S3 (QFN56) (revision v0.2) Features: WiFi, BLE, Embedded PSRAM 8MB (AP_3v3) Crystal is 40MHz MAC: XX:XX:XX:XX:XX:XX Uploading stub... A fatal error occurred: Failed to write to target RAM (result was 01070000: Operation timed out) [...] but if this option is provided, the result seems good: #: esptool.py --port /dev/cuaU1 --chip esp32-s3 --baud 460800 --no-stub get_security_info esptool.py v4.8.1 Serial port /dev/cuaU1 Connecting......... Chip is ESP32-S3 (QFN56) (revision v0.2) Features: WiFi, BLE, Embedded PSRAM 8MB (AP_3v3) Crystal is 40MHz MAC: XX:XX:XX:XX:XX:XX Changing baud rate to 460800 Changed. Enabling default SPI flash mode... Security Information: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Flags: 0x00000000 (0b0) Key Purposes: (0, 0, 0, 0, 0, 0, 12) BLOCK_KEY0 - USER/EMPTY BLOCK_KEY1 - USER/EMPTY BLOCK_KEY2 - USER/EMPTY BLOCK_KEY3 - USER/EMPTY BLOCK_KEY4 - USER/EMPTY BLOCK_KEY5 - USER/EMPTY Chip ID: 9 API Version: 0 Secure Boot: Disabled Flash Encryption: Disabled SPI Boot Crypt Count (SPI_BOOT_CRYPT_CNT): 0x0 Hard resetting via RTS pin... [...] I tried different FreeBSD versions on different hardware, I tried three different ESP32-S3, two of them came from the same distributor, another on = from an unknown Chinese source. I also tried different USB Hubs, different USB cables and also direct connecting the cable to the computer (avoiding a HUB= ). On FreeBSD it is always the same result, errors see above. I tried also with Fedora Linux 41 on the very same hardware I tried with 14-STABLE. On Linux I can ommit "--no-stub" in all scenarios to get success= fuly results and I'm also able to flash the very same binary images FreeBSD's comms/py-esptool rejects to flash. Info on comms/py-esptool: #: pkg info comms/py-esptool py311-esptool-4.8.1 Name : py311-esptool Version : 4.8.1 Installed on : Wed Oct 16 07:10:19 2024 CEST Origin : comms/py-esptool Architecture : FreeBSD:15:* Prefix : /usr/local Categories : python comms Licenses : GPLv2 Maintainer : loader@FreeBSD.org WWW : https://github.com/espressif/esptool Comment : Utility to communicate with Espressif ESP8266 & ESP32 chips Annotations : flavor : py311 Flat size : 8.70MiB Description : A Python-based, open source, platform independent, utility to communicate with the ROM bootloader in Espressif ESP8266 & ESP32 chips. --=20 You are receiving this mail because: You are the assignee for the bug.=