Closed heero-yuy closed 4 years ago
Hi,
What is the branch you are using? You may probably want to switch to a proper back port branch, like backport_4.8_to_4.11 in your case. And please also check if kernel header package is installed.
Thanks, Kelvin
Hi Kelvin,
I use the download from https://github.com/Microsemi/switchtec-kernel/archive/v1.2-rc3.tar.gz
Thanks!
The release package is not for 3.10 kernel. Please git clone the repo and checkout to proper backport branch.
Thanks, Kelvin
Hi Kelvin,
After use the backports-3.10 Branch, I can complie the Kernel module, many thanks!
Hi,
After checked that download the switchtec kernel with tag "1.2-rc3", found the complied problem with following message:
make -C /lib/modules/3.10.0-1062.el7.x86_64/build M=$PWD modules make[1]: Entering directory `/usr/src/kernels/3.10.0-1062.el7.x86_64' CC [M] /root/switchtec-kernel-1.2-rc3/switchtec.o /root/switchtec-kernel-1.2-rc3/switchtec.c:27: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]: [/root/switchtec-kernel-1.2-rc3/switchtec.o] Error 1 make[1]: [module/root/switchtec-kernel-1.2-rc3] Error 2 make[1]: Leaving directory `/usr/src/kernels/3.10.0-1062.el7.x86_64' make: *** [modules] Error 2
The "io-64-nonatomic-lo-hi.h" seems not have on RHEL/CentOS, where can I have this?