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

Not able to compile switchtec-kernel on Centos7.9 with 3.10.0-1160.102 Kernel #121

Open
ashek093 opened this issue Apr 23, 2024 · 1 comment

Comments

@ashek093
Copy link

Hi ,

I have downloaded the master branch of switchtec-kernel & tried to compile it on my Centos7.9 Machine, got below error.

make -C /lib/modules/3.10.0-1160.102.1.el7.x86_64/build M=$PWD modules
make[1]: Entering directory /usr/src/kernels/3.10.0-1160.102.1.el7.x86_64' CC [M] /home/Abhi/Switchtec/switchtec-kernel-master/switchtec.o /home/Abhi/Switchtec/switchtec-kernel-master/switchtec.c:25:41: fatal error: linux/io-64-nonatomic-lo-hi.h: No such file or directory #include <linux/io-64-nonatomic-lo-hi.h> ^ compilation terminated. make[2]: *** [/home/Abhi/Switchtec/switchtec-kernel-master/switchtec.o] Error 1 make[1]: *** [_module_/home/Abhi/Switchtec/switchtec-kernel-master] Error 2 make[1]: Leaving directory /usr/src/kernels/3.10.0-1160.102.1.el7.x86_64'
make: *** [modules] Error 2

Can anyone please help me on this to resolve & install it on my Centos Machine?

@lsgunth
Copy link
Collaborator

lsgunth commented Apr 24, 2024

This repo has a backport_3.10 branch which was intended for use in the old kernel you are running. Ensure you are checking out that branch.

However, that branch is 4 years old and hasn't been maintained. RHEL kernels also have a tendency of not being the same as the upstream kernels which, I believe, that branch was built for. So I would not be surprised if that doesn't work as well.

To be frank, if you need this driver to work on a kernel that is more than a decade old now, you are probably on your own.

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