-
Notifications
You must be signed in to change notification settings - Fork 713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Unknown device type #362
Comments
Hi as you started with your question here : #46 (comment) I once build my own WSL2 kernel too to get the CAN support working. But I'm pretty sure that there was no module loading support and the kernel was a single file. So I enabled the CAN stuff by setting the selections to Y instead of M, so that the entire CAN support (including vcan) was built inside the kernel. Or did you just build modules without building (and installing) the kernel? |
I built and installed a kernel as far as I know... I went into the menuconfig and enabled can and vcan
I have vcan in the system (I cant seem to remember the command to show it but its there) |
Hm, maybe the What does And does Maybe your Then you should install the |
Good looks that was the command I used... but unfortunately it shows both also looks like I already have iproute2 installed...
|
I also installed debian (distro?) (from Microsoft store) to double-check that I did anything and it also shows the same output for
|
would giving up on using the wsl and just booting linux solve this issue? At this point I'm ready to quit windows all together... make a boot USB and plug into my laptop? |
Excellent choice! I'm using Xubuntu or Debian - installs within 10 minutes :-D |
screw it ill see you on the other side // hopefully this clears up the issue |
The fact that On Debian |
This is the problem with the module installation (and you need to run depmod -a after install). That's why I built a WSL2 based Linux kernel without modules but with the CAN subsystem built-in. |
On the other side with linux mint... its not great so far, but I guess I just need to download everything for debian I meant to say that I didn't add or install anything and was using it to test that the output was different from the ubuntu which I did change (I did the whole kernal nonsense including Im going with Linux Mint from here on out... If this is a terrible mistake let me know (It was recommend over anything else and I didn't want to have to spend 4 hours figuring it out... I ended up spending 5 hours) |
Once loaded this |
once i run |
You have to compile your kernel with |
after going through this (https://www.reddit.com/r/CarHacking/comments/ot3gjf/socketcancanutils_on_windows/) guide on reddit
I am able to run sudo modprobe vcan
but ip link add dev vcan0 type vcan
returns an error: unknown device type...
I am using linux on wsl2 for the first time so hopefully it is some basic issue?
any help is appreciated
The text was updated successfully, but these errors were encountered: