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

kernel path not fixed #73

Closed
UncleJ4ck opened this issue Jun 26, 2021 · 2 comments
Closed

kernel path not fixed #73

UncleJ4ck opened this issue Jun 26, 2021 · 2 comments

Comments

@UncleJ4ck
Copy link

when i try to compile the kernel driver it gives those errors :

make -C /usr/src/kernels/`uname -r` M= modules
make[1]: *** /usr/src/kernels/5.8.0-59-generic: No such file or directory.  Stop.
make: *** [Makefile:41: all] Error 2

could you please fix it ?

@LucasFidelis
Copy link

LucasFidelis commented Jun 29, 2021

Hello @DriPlu.
Change from /usr/src/kernels/5.8.0-59-generic to /usr/src/5.8.0-59-generic at the file Makefile.
I hope that help you.

Another suggestion:
At my machine (Ubuntu 20.04), before folder Kernel, I have the prefix linux-headers-(Kernel version) -> (linux-headers-5.8.0-59-generic).
That also should to be change at Makefile.
To see that prefix, use the following command: ls /usr/src/

@UncleJ4ck
Copy link
Author

Hello @DriPlu.
Change from /usr/src/kernels/5.8.0-59-generic to /usr/src/5.8.0-59-generic at the file Makefile.
I hope that help you.

Another suggestion:
At my machine (Ubuntu 20.04), before folder Kernel, I have the prefix linux-headers-(Kernel version) -> (linux-headers-5.8.0-59-generic).
That also should to be change at Makefile.
To see that prefix, use the following command: ls /usr/src/

Thanks it works now

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