microsoft / microsoft/WSL

CAN Bus/USBCAN(canable) support

Open
#11,994 3 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

Please enable the CAN bus support in the WSL2 kernel config, also enable the CANable USB->CAN adapter support. So I can attach this USB2CAN adapter to WSL2.

It is supported default in Ubuntu's kernel.

The following Kconfig should be enabled:
```
CONFIG_CAN=y
CONFIG_CAN_8DEV_USB=y
CONFIG_CAN_EMS_USB=y
CONFIG_CAN_ESD_USB2=y
CONFIG_CAN_GS_USB=y
CONFIG_CAN_KVASER_USB=y
CONFIG_CAN_MCBA_USB=y
CONFIG_CAN_UCAN=y
CONFIG_CAN_VCAN=y
CONFIG_CAN_VXCAN=y
```

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the WSL2 kernel configuration and compare it with Ubuntu's kernel settings for the listed CAN symbols. Enable the requested CONFIG_CAN and USB CAN options, then build and boot the kernel and verify that a CANable USB-to-CAN adapter can be attached and used from WSL2.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.