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
yum install customized kernel headers errors
-
- Posts: 107
- Joined: 2016/01/12 23:27:04
- Location: Vista California
Re: yum install customized kernel headers errors
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
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
Re: yum install customized kernel headers errors
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?
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
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
-
- Posts: 107
- Joined: 2016/01/12 23:27:04
- Location: Vista California
Re: yum install customized kernel headers errors
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?
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?