yum install customized kernel headers errors

General support questions
Post Reply
harrywangca
Posts: 107
Joined: 2016/01/12 23:27:04
Location: Vista California

yum install customized kernel headers errors

Post by harrywangca » 2018/10/25 21:25:51

Hi All,

Please give me a hand, thanks in advance!

I loaded CentOS 6.3 and customized kernel 3.4.13 and have running kernel 3.4.13 for several years. So far I do have a driver needed to rebuilt based on kernel 3.4.13, I tried to yum install kernel devel or headers, but always failed like followings:

[root@harry003016 ~]# cat /etc/redhat-release
CentOS release 6.3 (Final)
[root@harry003016 ~]# uname -r
3.4.13
[root@harry003016 ~]# yum install kernel-headers-$(uname -r)
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.ndchost.com
* extras: mirror.keystealth.org
* updates: centos.mirror.ndchost.com
Setting up Install Process
No package kernel-headers-3.4.13 available.
Error: Nothing to do
[root@harry003016 ~]# yum install kernel-devel-$(uname -r)
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.mirror.ndchost.com
* extras: mirror.keystealth.org
* updates: centos.mirror.ndchost.com
Setting up Install Process
No package kernel-devel-3.4.13 available.
Error: Nothing to do
[root@harry003016 ~]#

Anyone knows how to have kernel heads for my driver built? TrevorH? please.
Thanks.
Harry

Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Re: yum install customized kernel headers errors

Post by Whoever » 2018/10/26 02:20:31

First: don't use that machine. It's horribly out of date and insecure.
Second: where did that kernel package come from? Was the kernel installed through a package? CentOS 6 uses 2.6.32. If the kernel was built from source, it won't be associated with a package and all the headers will be present somewhere in /usr/src

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: yum install customized kernel headers errors

Post by TrevorH » 2018/10/26 09:14:31

CentOS 6.3 is from the middle of 2012 so is now 6 years out of date and riddled with security exposures. You should update to the latest 6.x which is currently 6.10 by running yum update.

Your custom linux kernel 3.4.13 is also similiarly completely out of date and comes from about the same time period. It too will be riddled with security vulnerabilities and needs fixing. If you had been using the distro kernel and had been running yum update on a regular basis then those problems would not exist. The latest and last kernel in the 3.4 series was 3.4.113 and dates from 2016 so that would "only" be 2 years out of date (and still horribly insecure).

If you build your 3.4 kernel from source then there will be no packages for it.

Why did you think you needed a custom kernel in the first place?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

harrywangca
Posts: 107
Joined: 2016/01/12 23:27:04
Location: Vista California

Re: yum install customized kernel headers errors

Post by harrywangca » 2018/10/29 21:17:34

Thank you TrevorH and Whoever's reply.

This is our released products many years ago. We don't even connected our release with network and just used for local work and won't worry about security.
The thing is we flashed CentOS 6.3 onto mother board and we have to use specific kernel like 3.4.13 for some drivers working. This kernel we customized and downloaded from www.kernel.org
Now we are trying to upgrade drivers but we can not find the headers corresponding this version of kernel.

any more idea?

Another thing is I downloaded kernel source code 3.4.13 from www.kernel.org and build the driver but I got errors from insmod: error inserting 'pdi_ps3_drv_scanner.ko': -1 Invalid module format
from dmesg I found : no symbol version for module_layout

It does not make sense. ANy idea?

Post Reply