LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 07-29-2007, 01:32 AM   #1
narc
Member
 
Registered: Aug 2004
Location: Montréal
Distribution: Linux from scratch
Posts: 68

Rep: Reputation: 15
binary kernel package == source package ?


I wanted to compile a kernel from the source package to change a few options.

Is the .config file in Ubuntu 7.04's kernel source package the same as the default .config used by the maintainers when they create the binary distribution ?

I've compiled kernels before but it happened to me that the distro's acting kernel was way different than what is selected in the .config file of the source package. The distro's kernel recognizes many of my devices and lsmod tells me my machine has 105 modules loaded. I don't want to start everything from scratch and check if every option in the .config file is identical to the current state of my box.

Any insight on subject ?

Many thanks.
 
Old 07-29-2007, 09:18 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Your /boot directory should contain config files with the options used for each of the kernels in /boot.
 
Old 07-29-2007, 09:43 AM   #3
narc
Member
 
Registered: Aug 2004
Location: Montréal
Distribution: Linux from scratch
Posts: 68

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by blackhole54
Your /boot directory should contain config files with the options used for each of the kernels in /boot.
Actually, no.

Code:
root@ubuntu:/boot# ls -la
total 26712
drwxr-xr-x  3 root root    4096 2007-07-19 20:46 .
drwxr-xr-x 21 root root    4096 2007-07-19 20:46 ..
-rw-r--r--  1 root root  414210 2007-04-15 04:07 abi-2.6.20-15-generic
-rw-r--r--  1 root root  414274 2007-06-07 16:58 abi-2.6.20-16-generic
-rw-r--r--  1 root root   83234 2007-04-15 01:33 config-2.6.20-15-generic
-rw-r--r--  1 root root   83217 2007-06-07 14:16 config-2.6.20-16-generic
drwxr-xr-x  2 root root    4096 2007-07-19 20:46 grub
-rw-r--r--  1 root root 7174284 2007-07-19 16:17 initrd.img-2.6.20-15-generic
-rw-r--r--  1 root root 6911184 2007-04-17 01:25 initrd.img-2.6.20-15-generic.bak
-rw-r--r--  1 root root 6947020 2007-07-19 20:46 initrd.img-2.6.20-16-generic
-rw-r--r--  1 root root   94600 2006-10-20 07:44 memtest86+.bin
-rw-r--r--  1 root root  806942 2007-04-15 04:08 System.map-2.6.20-15-generic
-rw-r--r--  1 root root  806992 2007-06-07 17:00 System.map-2.6.20-16-generic
-rw-r--r--  1 root root 1745100 2007-04-15 04:07 vmlinuz-2.6.20-15-generic
-rw-r--r--  1 root root 1746636 2007-06-07 16:58 vmlinuz-2.6.20-16-generic
 
Old 07-29-2007, 09:57 AM   #4
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian, Linux From Scratch
Posts: 416
Blog Entries: 1

Rep: Reputation: 32
Code:
root@ubuntu:/boot# ls -la
total 26712
drwxr-xr-x  3 root root    4096 2007-07-19 20:46 .
drwxr-xr-x 21 root root    4096 2007-07-19 20:46 ..
-rw-r--r--  1 root root  414210 2007-04-15 04:07 abi-2.6.20-15-generic
-rw-r--r--  1 root root  414274 2007-06-07 16:58 abi-2.6.20-16-generic
-rw-r--r--  1 root root   83234 2007-04-15 01:33 config-2.6.20-15-generic
-rw-r--r--  1 root root   83217 2007-06-07 14:16 config-2.6.20-16-generic
drwxr-xr-x  2 root root    4096 2007-07-19 20:46 grub
-rw-r--r--  1 root root 7174284 2007-07-19 16:17 initrd.img-2.6.20-15-generic
-rw-r--r--  1 root root 6911184 2007-04-17 01:25 initrd.img-2.6.20-15-generic.bak
-rw-r--r--  1 root root 6947020 2007-07-19 20:46 initrd.img-2.6.20-16-generic
-rw-r--r--  1 root root   94600 2006-10-20 07:44 memtest86+.bin
-rw-r--r--  1 root root  806942 2007-04-15 04:08 System.map-2.6.20-15-generic
-rw-r--r--  1 root root  806992 2007-06-07 17:00 System.map-2.6.20-16-generic
 
Old 07-29-2007, 10:28 AM   #5
narc
Member
 
Registered: Aug 2004
Location: Montréal
Distribution: Linux from scratch
Posts: 68

Original Poster
Rep: Reputation: 15
Holy sh*t.

:-)

I was, evidently, looking for a .config file.

Thanks a lot.
 
  


Reply

Tags
compiling, kernel, ubuntu


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
kernel-source package Agorex Debian 1 10-10-2006 02:11 PM
How to check if a package(eg. gdebi)will be available in 'Etch' as binary package? Akhran Debian 4 08-28-2006 12:53 PM
kernel-source package houston1981 DamnSmallLinux 0 12-01-2004 05:50 AM
what is this kernel source package? vrdhananjay Linux - Newbie 3 09-22-2004 01:37 AM
How to differentiate between binary, source and package/installer? subaruwrx Linux - Software 19 06-21-2004 11:12 AM


All times are GMT -5. The time now is 07:27 PM.

Main Menu
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