Skip to content

Connecting USB Devices to WSL on WIndows 11 when J-Link Error occurs #8

@HannesNowak

Description

@HannesNowak

Overview (link)

  1. install USBIP on Ubuntu
sudo apt install linux-tools-5.4.0-77-generic hwdata
sudo update-alternatives --install /usr/local/bin/usbip usbip /usr/lib/linux-tools/5.4.0-77-generic/usbip 20
  1. install USBIP on Windows. Download and install latest .msi from this repo
  2. start Windows Terminal as Administrator
  3. list available USB-devices
usbipd wsl list
  1. attach USB bus to WSL
usbipd wsl attach --busid <busid>
  1. check USB-devices in Ubuntu
lsusb

Update WSL

If the terminal wants you to update WSL

  1. update WSL
wsl --update
  1. stop WSL
wsl --shutdown
  1. start your distro
wsl -d <distro>

If it still throughs a J-Link Error try to use another USB Port on your Windows Computer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions