Skip to content

usbsdmux-configure make USB-SD-MUX Fast i2c errors #95

Open
@sascgc

Description

@sascgc

Hi,

I just received new USB-SD-MUX fast boards. Revision: usb_sd_mux-S03-R02-V01-C00.

Seems that after using usbsdmux-configure with the USB-SD-MUX, and then doing usbsdmux /dev/usb-sd-mux/id-test01 host, it provokes i2c errors:

Traceback (most recent call last):
  File "/usr/bin/usbsdmux", line 10, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3/dist-packages/usbsdmux/__main__.py", line 105, in main
    print(ctl.get_mode())
          ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/usbsdmux/usbsdmux.py", line 166, in get_mode
    val = self._pca.get_input_values()
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/usbsdmux/i2c_gpio.py", line 90, in get_input_values
    return self._read_register(self._register_inputPort)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/usbsdmux/i2c_gpio.py", line 56, in _read_register
    return self._usb.write_read_to(self._I2cAddr, [addr], 1)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/usbsdmux/usb2642.py", line 419, in write_read_to
    raise I2cTransactionFailed(
usbsdmux.usb2642.I2cTransactionFailed: SCSI-Transaction ended with status 2. I2C-Transaction has probably failed.

I tried with another USB-SD-MUX FASTwithout usbsdmux-configure and I can set the SD mux on host or dut.

Usbsdmux package: 24.01-1 and tried with the Main branch of usbsdmux either.
Distribution: 24.04.02 LTS
SD card: Using various, from U3, U1 and lower speed SD card used on old USB-SD-MUX (classic)
USB Cable: Less than 2m usb-c cable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions