[Bug 278716] uslcom serial driver: communcation problem with FBSD > 13.2-RELENG

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 03 May 2024 11:09:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278716

            Bug ID: 278716
           Summary: uslcom serial driver: communcation problem with FBSD >
                    13.2-RELENG
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: ohartmann@walstatt.org

uslcom(4) driver in 14-STABLE onward does have serious problems with several
USB subsystems. I can not give specific details, but I can provide some
experiences.

I'd like to use FreeBSD as the base system for some MCU development, mainly
ESP32 based, also some USB UART I2C targets (Amtel) are in focus.

I have a couple of hardware platforms (Lenovo T560, T570, 460, 470 notebooks,
oldish IvyBridge based Intel host, Fujitsu Esprimo D538, Fujitsu Celsius M740,
Pine64).

ESP32 is WROOM32, some oldish ESP32 dev boards and ESP32 D1 mini with a more
recent chip. All in common is a CP210X UART (mostly CP2102).
Another  toy is an  Amtel88 based I2C busmaster with Silicon Labs CP2102 UART.

All hardware platforms running FreeBSD > 13.3 in common is:

comms/py-esptool (Python 3.9)  -> fails to communicate with any ESP32 I have on
any computer running FreeBSD > 13.3
devel/arduino18 -> fails to communicate with any ESP32 I have, same as esptool.

py-esptool reports:
ohartmann@hebe:~ $ esptool.py --chip esp32 --baud 115200 --port /dev/cuaU0
read_mac
esptool.py v4.7.0
Serial port /dev/cuaU0
Connecting........

A serial exception error occurred: device reports readiness to read but
returned no data (device disconnected or multiple access on port?)
Note: This error originates from pySerial. It is likely not a problem with
esptool, but with the hardware connection or drivers.
For troubleshooting steps visit:
https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html


The ONLY HOST operating with the very same hardware and ANY OS up to recent
14-STABLE (as of compiled today) is the mentioned Fujitsu Celsius M740 and the
PINE64.

The other hardware mentioned above (Fujitsu Esprimo, Lenovo Notebooks) do well
with FreeBSD 13.2, 13.3, but fail with 14-STABLE and CURRENT.


The Amtel88 bases I2C busmaster is supposed to act as development toy for
sensors we use fpr meteorological purpeses, it can be equipted with several I2C
sensors, the usage is a bit cryptic, but it works and delivers measurement
results with FBSD < 14, but stays silent (LED flickers, indicating traffic, but
no output is emmited - same with ESP32's with bus indicator LED).

From my perspective, this insicates a serious problem either with the USB
subsystem/uslcom driver in recent FreeBSD or a serious probelm with my
understanding of FreeBSD/FreeBSD's setup.

Using a recent Xubuntu 24.04-LTS on the very same hardware indicates NO
PROBLEMS!

-- 
You are receiving this mail because:
You are the assignee for the bug.