Size: a a a

2020 April 20

S

Sergey in Accel-PPP
источник

S

Sergey in Accel-PPP
Hi Erik, Thank you so much for your help so far. I'm in a more complex situation: our kernel module will need to support different version and distribution of Linux. At beginning, we have the compiler operation: #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,30) to define what we do with genl_register_family..., and it is would be logical to add a && (LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0)). But the recent Kernel update /RHEL update make this changed from 7.4 (3.10.0-693) and 7.5 (3.10.0-862). How can I check the kernel build number (-693 v.s. -862) with pre-compile operation? – Weishan Yang May 14 '18 at 7:54
Hi Erik, just to update you in short, the information you've provided is what I'm looking for, and has resolved my problem. For the moment, I use the RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(7,5) to deal with the mass of versioning, and it would work for now. Thank you so much for your help! – Weishan Yang May 14 '18 at 11:13
источник

S

Sergey in Accel-PPP
if you really need to make it workable on 3.10-rh kernel, you can change related #ifdefs in the code
источник

RF

Rodrigo Fialho in Accel-PPP
Dimka88
Try to install modern kernel and kernel headers from elrepo
I've installed on a VM with kernel 5 from elrepo but it didn't work.
источник

S

Sergey in Accel-PPP
Rodrigo Fialho
I've installed on a VM with kernel 5 from elrepo but it didn't work.
did you install related kernel headers?
источник

RF

Rodrigo Fialho in Accel-PPP
Sergey
did you install related kernel headers?
I did.
источник

D

Dimka88 in Accel-PPP
Rodrigo Fialho
I did.
Which exactly kernel version was installed?
источник

RF

Rodrigo Fialho in Accel-PPP
I installed it.
источник

RF

Rodrigo Fialho in Accel-PPP
Thnaks for supporting
источник

RF

Rodrigo Fialho in Accel-PPP
My trouble was kernel headers
источник

S

Sergey in Accel-PPP
great. btw, centos8 is available for a long time so if it's a new installation, centos8 will be better
источник

D

Dimka88 in Accel-PPP
And modules building with default kernel on centos 8
источник

RF

Rodrigo Fialho in Accel-PPP
I installed the 4.4.219-1.el7.elrepo.x86_64 kernel version from kernel-lt
источник

RF

Rodrigo Fialho in Accel-PPP
Dimka88
And modules building with default kernel on centos 8
That installation is new. Maybe it's better do I install on centos 8?
источник

S

Sergey in Accel-PPP
yes, centos8 is preferable
источник

RF

Rodrigo Fialho in Accel-PPP
Let me ask you another question. Which distro would be recommended for installation either debian or centos?
источник

S

Sergey in Accel-PPP
most community members use debian
источник

S

Sergey in Accel-PPP
it's more popular due to centos delays
источник

S

Sergey in Accel-PPP
(rhel - centos delays I mean)
источник

S

Sergey in Accel-PPP
debian has shorter support period
источник