LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices



Reply
 
Search this Thread
Old 01-03-2013, 04:09 AM   #1
Gr2600
LQ Newbie
 
Registered: Oct 2012
Posts: 15

Rep: Reputation: Disabled
Question Kernel 3.8-rc1 on CentsOS 6


Hello All,

Just wanted to ask you if you could advice on the following issue:

I tried to compile the last kernel 3.8-rc1 on my CentOS. Problem when using dracut to create the kernel image.



Steps used:

-download kernel arhive.
-extract file
-make menuconfig
-make -j5
-make modules_install
-cp the bzimage to /boot/vmlinuz
-cp system.map to /boot/system.map
-cp config to /boot/config
-and dracut issued that it cannot find the /lib/modules/3.8.0/. The directory is empty and I would like to ask from where exactely I should make the link to this directory in order make is work. Or maybe I did a mistake?

Thank you in advance.
 
Old 01-03-2013, 07:50 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Quote:
- and dracut issued that it cannot find the /lib/modules/3.8.0/. The directory is empty and I would like to ask from where exactely I should make the link to this directory in order make is work.
If make finished without errors, the directory created by make modules_install should be /lib/modules/3.8.0-rc1

Regards
 
Old 01-03-2013, 08:06 AM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 2,336

Rep: Reputation: 594Reputation: 594Reputation: 594Reputation: 594Reputation: 594Reputation: 594
I believe there is a "make install" step missing (follows the make modules_install).

In the README file it is shown as "sudo make O=/home/name/build/kernel modules_install install" (but the O=/home/name/build/kernel part is optional).

This should create all the directories needed and copy the files into /boot for you.
 
Old 01-03-2013, 08:18 AM   #4
Gr2600
LQ Newbie
 
Registered: Oct 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Thank you for the quick replies. I will check it right after I get home.
 
Old 01-04-2013, 04:56 AM   #5
Gr2600
LQ Newbie
 
Registered: Oct 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Same issue after testing:

[root@localhost modules]# dracut --force /boot/initramfs-3.0.8.img 3.0.8-rc1
find: `/lib/modules/3.0.8-rc1/': No such file or directory
find: `/lib/modules/3.0.8-rc1/': No such file or directory
find: `/lib/modules/3.0.8-rc1/': No such file or directory
find: `/lib/modules/3.0.8-rc1/': No such file or directory
find: `/lib/modules/3.0.8-rc1/': No such file or directory
find: `/lib/modules/3.0.8-rc1/': No such file or directory

Content of /lib/modules/3.0.8-rc1

[root@localhost 3.8.0-rc1]# ls -la
total 248
drwxr-xr-x. 3 root root 4096 Jan 2 03:06 .
drwxr-xr-x. 7 root root 4096 Jan 2 04:00 ..
lrwxrwxrwx. 1 root root 18 Jan 2 03:06 build -> /tmp/linux-3.8-rc1
drwxr-xr-x. 10 root root 4096 Jan 2 03:06 kernel
-rw-r--r--. 1 root root 14908 Jan 2 03:06 modules.alias
-rw-r--r--. 1 root root 15914 Jan 2 03:06 modules.alias.bin
-rw-r--r--. 1 root root 5959 Jan 2 03:06 modules.builtin
-rw-r--r--. 1 root root 69 Jan 2 03:06 modules.ccwmap
-rw-r--r--. 1 root root 8073 Jan 2 03:06 modules.dep
-rw-r--r--. 1 root root 12981 Jan 2 03:06 modules.dep.bin
-rw-r--r--. 1 root root 73 Jan 2 03:06 modules.ieee1394map
-rw-r--r--. 1 root root 141 Jan 2 03:06 modules.inputmap
-rw-r--r--. 1 root root 235 Jan 2 03:06 modules.isapnpmap
-rw-r--r--. 1 root root 74 Jan 2 03:06 modules.ofmap
-rw-r--r--. 1 root root 3421 Jan 2 03:06 modules.order
-rw-r--r--. 1 root root 20119 Jan 2 03:06 modules.pcimap
-rw-r--r--. 1 root root 43 Jan 2 03:06 modules.seriomap
-rw-r--r--. 1 root root 53218 Jan 2 03:06 modules.symbols
-rw-r--r--. 1 root root 65605 Jan 2 03:06 modules.symbols.bin
-rw-r--r--. 1 root root 551 Jan 2 03:06 modules.usbmap
lrwxrwxrwx. 1 root root 18 Jan 2 03:06 source -> /tmp/linux-3.8-rc1

I am sure I'm missing something, but I don't know what..
 
Old 01-04-2013, 05:25 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Quote:
find: `/lib/modules/3.0.8-rc1/': No such file or directory
Once again. If you're compiling the linux-3.8-rc1 kernel, the directory created by "make modules_install" is /lib/modules/3.8.0-rc1.
Do a
Code:
ls -l /lib/modules
to verify it
 
Old 01-04-2013, 05:29 AM   #7
Gr2600
LQ Newbie
 
Registered: Oct 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
It's there:

[root@localhost /]# ls -l /lib/modules
total 16
drwxr-xr-x. 7 root root 4096 Dec 25 06:06 2.6.32-279.19.1.el6.x86_64
drwxr-xr-x. 7 root root 4096 Sep 8 08:40 2.6.32-279.5.2.el6.x86_64
drwxr-xr-x. 7 root root 4096 Aug 26 06:26 2.6.32-279.el6.x86_64
drwxr-xr-x. 3 root root 4096 Jan 2 03:06 3.8.0-rc1
[root@localhost /]#
 
Old 01-04-2013, 05:39 AM   #8
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Quote:
Originally Posted by Gr2600 View Post
It's there:

[root@localhost /]# ls -l /lib/modules
total 16
drwxr-xr-x. 7 root root 4096 Dec 25 06:06 2.6.32-279.19.1.el6.x86_64
drwxr-xr-x. 7 root root 4096 Sep 8 08:40 2.6.32-279.5.2.el6.x86_64
drwxr-xr-x. 7 root root 4096 Aug 26 06:26 2.6.32-279.el6.x86_64
drwxr-xr-x. 3 root root 4096 Jan 2 03:06 3.8.0-rc1
[root@localhost /]#
Sure it's there. But it's named 3.8.0-rc1 not 3.0.8-rc1 as the last argument in your dracut command.
 
Old 01-04-2013, 05:51 AM   #9
Gr2600
LQ Newbie
 
Registered: Oct 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
I deserver to be burned alive )) How could I miss this one ..

Will post once I finish with it, thanks!!
 
Old 01-04-2013, 06:05 AM   #10
Gr2600
LQ Newbie
 
Registered: Oct 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Done:

[root@localhost ~]# uname -r
3.8.0-rc1

Thank you again for the help. It's alwais fascinating how small things are keeping you from doing what you want.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] rtl8192se in kernel 3.0 rc1 Phorize Slackware 3 07-19-2011 05:11 AM
Dummy kernel in SUSE 11.1 RC1 riba43 Suse/Novell 3 12-14-2008 09:37 AM
Kernel default and kernel-source in SUSE 11.1 RC1 riba43 Suse/Novell 1 12-04-2008 03:11 PM
upgrade my kernel to 2.6.10-rc1 x2aws Linux - Newbie 3 11-04-2004 08:12 AM
I installed Kernel 2.6.1-rc1 john8675309 Linux - Software 2 01-05-2004 04:51 PM


All times are GMT -5. The time now is 08:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration