Skip to content
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

Build for ubuntu 22.04 #45

Open
sam-tj opened this issue Aug 21, 2023 · 4 comments
Open

Build for ubuntu 22.04 #45

sam-tj opened this issue Aug 21, 2023 · 4 comments

Comments

@sam-tj
Copy link

sam-tj commented Aug 21, 2023

Hi,
I am trying to build this for ubuntu 22.04 but the master branch gives me the following error:
make -C /lib/modules/6.2.0-26-generic/build/ M=/home/tester/Downloads/usb-can-master(1)/usb-can-master/src/module modules /bin/sh: 1: Syntax error: "(" unexpected make: *** [Makefile:11: all] Error 2 Building userpace tools make: Nothing to be done for 'all'.

When trying to use usb-can-native-kernel-driver, gives the following error
fatal error: module/hlcan.h: No such file or directory 47 | #include "module/hlcan.h"

Please can you help me with this.

@alexmohr
Copy link
Owner

Most likely the same issue as in #44

Make sure you've installed the kernel modules for your kernel.
It's also likely that 6.2 is not even supported anymore as the serial interface of the kernel got a major overhaul leading to incompatibility of this module.
It will require a complete rewrite of this and I did not have the time to do so.

@sam-tj
Copy link
Author

sam-tj commented Aug 21, 2023

This driver works to get values on serial monitor, https://github.com/kobolt/usb-can

But I am more interested in next step, i.e., using can0 interface

@alexmohr
Copy link
Owner

That's because the kobolt version is a standalone application and not a driver. It does not depend on kernel interfaces but runs entirely in userspace.

I started rewriting this into a native kernel driver which does not depend on the slcan Interface anymore but it's not working yet.
So if you can't get it to run after installing the kernel header you won't be able to use this for the time being.

I am interested in getting this to work again but don't expect this to be implemented any time soon. Sorry ...

@sam-tj
Copy link
Author

sam-tj commented Aug 21, 2023

Ok, no problem.

I have the kernel installed. It is 6.x, which, in my case, is already installed on Ubuntu 22.04

@alexmohr alexmohr mentioned this issue Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants