LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 12: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, 08: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, 08: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, 08:57 AM   #4
Daws
Member
 
Registered: May 2006
Location: UK
Distribution: Debian
Posts: 447

Rep: Reputation: 39
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, 09: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



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

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

All times are GMT -5. The time now is 03:30 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