LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   binary kernel package == source package ? (https://www.linuxquestions.org/questions/ubuntu-63/binary-kernel-package-%3D%3D-source-package-573092/)

narc 07-29-2007 12:32 AM

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.

blackhole54 07-29-2007 08:18 AM

Your /boot directory should contain config files with the options used for each of the kernels in /boot.

narc 07-29-2007 08:43 AM

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


Daws 07-29-2007 08:57 AM

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

:eek:

narc 07-29-2007 09:28 AM

Holy sh*t.

:-)

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

Thanks a lot.


All times are GMT -5. The time now is 06:14 PM.