LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 11-30-2015, 08:51 PM   #1
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Rep: Reputation: 23
Centos: compile new kernel image


Hello,

under CENTOS 6.3 (64) I ran:
yum install kernel-devel
yum install kernel-headers

Then:
/usr/src/kernels/2.6.32-279.el6.x86_64
make ARCH=x86_64

I got:
make[1]: Nothing to be done for `all'.
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
make[1]: *** No rule to make target `missing-syscalls'. Stop.
make: *** [prepare0] Error 2

What am I doing wrong ?
I want to compile the kernel with no changes and then add few components.

Thank you,
Z.V
 
Old 12-01-2015, 05:47 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"kernel-headers" : Provides /usr/include/{ asm/*.h, linux/*.h, etc. etc.}.
See $ rpm -ql kernel-headers
"kernel-headers" : Are the headers that were used for compiling glibc.
Purpose : Used for compiling programs, not kernel.

"kernel-devel" : Are headers, used for compiling a single 3rd party module.

Updating the kernel to "Update level CentOS 6.7" : 10-Nov-2015 ...
# yum install kernel ( Or # yum udate kernel )
... which will also include goodies from later kernel versions, see `Changelog'.


Compiling a new kernel ( Not advisable ) : Use the kernel-source ...
kernel-2.6.32-573.8.1.el6.src.rpm , 10-Nov-2015
http://vault.centos.org/6.7/updates/Source/SPackages/


-

Last edited by knudfl; 12-01-2015 at 05:55 AM.
 
Old 12-02-2015, 09:11 PM   #3
zvivered
Member
 
Registered: Sep 2007
Posts: 294

Original Poster
Rep: Reputation: 23
Hello,

Thank you for your help.

According to the ltt-ng guide I have to add few components to the kernel.

The output of "more /proc/version" is:
Linux version 2.6.32-279.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) )
#1 SMP Fri Jun 22 12:19:21 UTC 2012

The link:
http://vault.centos.org/6.3/updates/Source/SPackages/ contains few files:
kernel-2.6.32-279.1.?.el6.src.rpm

which of them I should use ?

I also tried "yum install kernel-source" but got: No Package.
Thank you,
Z.V
 
Old 12-03-2015, 08:40 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #3.

Why not use the latest update ?

kernel-2.6.32-573.8.1.el6.src.rpm , 10-Nov-2015
http://vault.centos.org/6.7/updates/....1.el6.src.rpm
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel 82578DM Driver compile INTO CentOS kernel stuart23 Linux - Hardware 6 05-21-2012 08:50 PM
Emergency recovery kernel for CentOS 5 / boot image slinx Linux - General 1 11-11-2010 05:18 PM
What would be the most up-to-date kernel version I could compile for CentOS 5.3? neocookie Linux - Kernel 3 02-22-2010 01:43 PM
compile kernel stuck at building image....help sirpelidor Linux - Software 1 12-07-2003 02:36 PM
Kernel Compile: Image Cannot Be Found katana Linux - General 1 11-20-2002 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 01:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration