Kernel building and naming - Suse
This is a discussion on Kernel building and naming - Suse ; I am starting to look at building my own kernel. As I never have done
such a thing, I thought that it might be interesting to do at least
once. I found the page
http://snake1990.wordpress.com/2008/...-for-opensuse/
Instead of downloading a kernel, ...
-
Kernel building and naming
I am starting to look at building my own kernel. As I never have done
such a thing, I thought that it might be interesting to do at least
once. I found the page
http://snake1990.wordpress.com/2008/...-for-opensuse/
Instead of downloading a kernel, I would like to work with what is
provided by openSUSE
When I look at what I am running, `uname -r` gives me 2.6.25.11-0.1-pae.
When I look in /usr/src, I get the following:
lrwxrwxrwx 1 root root 19 2008-08-31 09:03 linux ->
linux-2.6.25.11-0.1
drwxr-xr-x 22 root root 4096 2008-09-08 11:06 linux-2.6.25.11-0.1
drwxr-xr-x 3 root root 4096 2008-08-31 09:01 linux-2.6.25.11-0.1-obj
drwxr-xr-x 4 root root 4096 2008-08-31 09:04 linux-2.6.25.9-2
drwxr-xr-x 3 root root 4096 2008-08-31 09:04 linux-2.6.25.9-2-obj
lrwxrwxrwx 1 root root 23 2008-08-31 09:03 linux-obj -> linux-2.6.25.11-0.1-obj
drwxr-xr-x 7 root root 4096 2008-06-20 23:51 packages
Should I not see something like linux-2.6.25.11-0.1-pae ?
houghi
--
>>>> Run the following from the bashprompt if you have the kernel sources
for I in `find /usr/src/linux/ -name *.c`; \
do A=`grep -i -A 1 -B 1 **** $I`;if [ "$A" != "" ]; \
then printf "$I \n$A \n\n"; fi ;done|less
-
Re: Kernel building and naming
houghi wrote:
> I am starting to look at building my own kernel. As I never have done
> such a thing, I thought that it might be interesting to do at least
> once. I found the page
>
http://snake1990.wordpress.com/2008/...-for-opensuse/
> Instead of downloading a kernel, I would like to work with what is
> provided by openSUSE
>
> When I look at what I am running, `uname -r` gives me 2.6.25.11-0.1-pae.
> When I look in /usr/src, I get the following:
>
> lrwxrwxrwx 1 root root 19 2008-08-31 09:03 linux ->
> linux-2.6.25.11-0.1
> drwxr-xr-x 22 root root 4096 2008-09-08 11:06 linux-2.6.25.11-0.1
> drwxr-xr-x 3 root root 4096 2008-08-31 09:01 linux-2.6.25.11-0.1-obj
> drwxr-xr-x 4 root root 4096 2008-08-31 09:04 linux-2.6.25.9-2
> drwxr-xr-x 3 root root 4096 2008-08-31 09:04 linux-2.6.25.9-2-obj
> lrwxrwxrwx 1 root root 23 2008-08-31 09:03 linux-obj ->
> linux-2.6.25.11-0.1-obj
> drwxr-xr-x 7 root root 4096 2008-06-20 23:51 packages
>
> Should I not see something like linux-2.6.25.11-0.1-pae ?
>
> houghi
No, you should not.
Your kernel has enabled PAE (is able to address more than 4GB under 32bit).
This is just an option in the processor section of kernel config.
If you do not have >4GB, switch that option *off* because it causes a
speedloss of about 10% in the kernel.
--
Linux: Because rebooting is for adding new hardware
-
Re: Kernel building and naming
Le Mon, 08 Sep 2008 12:57:52 +0200, houghi a
écrit:
> I am starting to look at building my own kernel. As I never have done
> such a thing, I thought that it might be interesting to do at least
> once. I found the page
> http://snake1990.wordpress.com/2008/...-for-opensuse/
> Instead of downloading a kernel, I would like to work with what is
> provided by openSUSE
>
> When I look at what I am running, `uname -r` gives me 2.6.25.11-0.1-pae.
> When I look in /usr/src, I get the following:
>
> lrwxrwxrwx 1 root root 19 2008-08-31 09:03 linux ->
> linux-2.6.25.11-0.1
> drwxr-xr-x 22 root root 4096 2008-09-08 11:06 linux-2.6.25.11-0.1
> drwxr-xr-x 3 root root 4096 2008-08-31 09:01 linux-2.6.25.11-0.1-obj
> drwxr-xr-x 4 root root 4096 2008-08-31 09:04 linux-2.6.25.9-2
> drwxr-xr-x 3 root root 4096 2008-08-31 09:04 linux-2.6.25.9-2-obj
> lrwxrwxrwx 1 root root 23 2008-08-31 09:03 linux-obj ->
> linux-2.6.25.11-0.1-obj
> drwxr-xr-x 7 root root 4096 2008-06-20 23:51 packages
>
> Should I not see something like linux-2.6.25.11-0.1-pae ?
>
> houghi
In /usr/src/linux you should have a .config file that directs options. In
that file
the CONFIG_LOCALVERSION string is appended to the kernel 'real' version to
give uname.
I think you just have "-pae" in this parameter. This is just for you..
--
JB
-
Re: Kernel building and naming
Peter Köhlmann wrote:
> No, you should not.
> Your kernel has enabled PAE (is able to address more than 4GB under 32bit).
> This is just an option in the processor section of kernel config.
> If you do not have >4GB, switch that option *off* because it causes a
> speedloss of about 10% in the kernel.
Thanks both. As the `make` is just finished, I give you some extra info.
My 3G 1GB 32 bit took 81 minutes to do the `make`
My 2.8 8GB 64 bit took 35 minutes to do the `make`
This without any changes or configuration on anything.
I will be using my 32 bit as a testbed and will be doing a reboot
remotely. If it comes up, great. If not, no problem.
houghi
--
>>>> Run the following from the bashprompt if you have the kernel sources
for I in `find /usr/src/linux/ -name *.c`; \
do A=`grep -i -A 1 -B 1 **** $I`;if [ "$A" != "" ]; \
then printf "$I \n$A \n\n"; fi ;done|less
-
Re: Kernel building and naming
houghi wrote:
> Thanks both. As the `make` is just finished, I give you some extra info.
> My 3G 1GB 32 bit took 81 minutes to do the `make`
> My 2.8 8GB 64 bit took 35 minutes to do the `make`
> This without any changes or configuration on anything.
OK. I give up. (I know, not realy a serious attempt, now was it?)
root@penne : make modules
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
Building modules, stage 2.
MODPOST 2131 modules
WARNING: modpost: Found 15 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
I have no need for a new kernel and I do not want to waste my time with
it. I will concentrate on other things (betatesting the new storeBackup)
that I will be using.
Once that is done, I will be looking at 11.1 and test the hell out of
that. Oh well.
houghi
--
>>>> Run the following from the bashprompt if you have the kernel sources
for I in `find /usr/src/linux/ -name *.c`; \
do A=`grep -i -A 1 -B 1 **** $I`;if [ "$A" != "" ]; \
then printf "$I \n$A \n\n"; fi ;done|less
-
Re: Kernel building and naming
Le Mon, 08 Sep 2008 15:13:28 +0200, houghi a
écrit:
> houghi wrote:
>> Thanks both. As the `make` is just finished, I give you some extra info.
>> My 3G 1GB 32 bit took 81 minutes to do the `make`
>> My 2.8 8GB 64 bit took 35 minutes to do the `make`
>> This without any changes or configuration on anything.
>
> OK. I give up. (I know, not realy a serious attempt, now was it?)
>
> root@penne : make modules
> CHK include/linux/version.h
> CHK include/linux/utsrelease.h
> CALL scripts/checksyscalls.sh
> Building modules, stage 2.
> MODPOST 2131 modules
> WARNING: modpost: Found 15 section mismatch(es).
> To see full details build your kernel with:
> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
>
> I have no need for a new kernel and I do not want to waste my time with
> it. I will concentrate on other things (betatesting the new storeBackup)
> that I will be using.
>
> Once that is done, I will be looking at 11.1 and test the hell out of
> that. Oh well.
>
> houghi
Abstract of what we do to compile kernel (sorry 9.3) to get abi patch
working
patch NOT included)
make cloneconfig
make menuconfig
#in menuconfig:general/setup/local/version: replace '-smp'by '-abi' #(this
your -pae)
make #(LONG)
make bzImage
make modules
make modules_install
--
JB
-
Re: Kernel building and naming
On Mon, 8 Sep 2008 12:57:52 +0200, houghi
wrote:
>I am starting to look at building my own kernel. As I never have done
>such a thing, I thought that it might be interesting to do at least
>once.
Good on ya. I found the following book very helpful. But it guides you
toward making a generic kernel and installing it the generic way - not the
SUSE way or the Debian way. Well worth the time to download and read, all
nice and legally.
-----start quote -----
"If you want to know how to build, configure, and install a custom Linux
kernel on your machine, buy this book. It is written by someone who
spends every day building, configuring, and installing custom kernels as
part of the development process of this fun, collaborative project
called Linux.
I'm especially proud of the chapter on how to figure out how to
configure a custom kernel based on the hardware running on your machine.
This is an essential task for anyone wanting to wring out the best
possible speed and control of your hardware."
This book is available under the terms of the Creative Commons
Attribution-ShareAlike 2.5 license. That means that you are free to
download and redistribute it. The development of the book was made
possible, however, by those who purchase a copy from O'Reilly or
elsewhere.
-----end quote-----
-
Re: Kernel building and naming
vince wrote:
>>I am starting to look at building my own kernel. As I never have done
>>such a thing, I thought that it might be interesting to do at least
>>once.
>
> Good on ya. I found the following book very helpful. But it guides you
> toward making a generic kernel and installing it the generic way - not the
> SUSE way or the Debian way. Well worth the time to download and read, all
> nice and legally.
As you have read, I already gave up.
houghi
--
>>>> Run the following from the bashprompt if you have the kernel sources
for I in `find /usr/src/linux/ -name *.c`; \
do A=`grep -i -A 1 -B 1 **** $I`;if [ "$A" != "" ]; \
then printf "$I \n$A \n\n"; fi ;done|less
-
Re: Kernel building and naming
On Mon, 8 Sep 2008 22:04:51 +0200, houghi
wrote:
>As you have read, I already gave up.
Read it, but didn't believe it. You'll come back to building your own
kernel when you get bored with everything else. The thirst for knowledge
and tinkering is endless.
-
Re: Kernel building and naming
vince wrote:
>>As you have read, I already gave up.
>
> Read it, but didn't believe it. You'll come back to building your own
> kernel when you get bored with everything else. The thirst for knowledge
> and tinkering is endless.
Will be a while before I know all the rest.
houghi
--
________________________ Open your eyes, open your mind
| proud like a god don't pretend to be blind
| trapped in yourself, break out instead
http://openSUSE.org | beat the machine that works in your head