Fedora Linux Support Community & Resources Center
  #1  
Old 9th January 2011, 05:06 PM
echo6 Offline
Registered User
 
Join Date: Nov 2010
Posts: 8
linuxfedorafirefox
Kernel recompile - selecting .config

I'm following the Building a Custom Kernel guide from the wiki, http://fedoraproject.org/wiki/Building_a_custom_kernel for FC14.

Even though I specify rpmbuild --target=i686 the build process picks out the PAE version. This has been tripping me up because I have been patching the kernel with Spock's fbcondecor patch which requires post .config changes to support console decorations.

I'm not familiar enough with rpmbuild and SPECS to troubleshoot at this stage so some pointers would be greatly appreciated regarding suitable guides which will give me an understanding of how rpmbuild does things.

Previously I've done kernel recompiles under Gentoo and Debian/Ubuntu but have a need to use Fedora, I miss my console decorations :-) I'm hoping I can get some of the rpm packages from http://home.arcor.de/helmut.schlattl/gensplash/ to help get his setup!
Reply With Quote
  #2  
Old 9th January 2011, 05:34 PM
AndrewSerk Offline
Registered User
 
Join Date: Oct 2010
Posts: 888
linuxfedorafirefox
Re: Kernel recompile - selecting .config

Hello echo6,

I have been using --target=`uname -m` and it builds PAE and none PAE kernel versions when rebuilding from a src.rpm .

I have been using something similar the following rebuild command:
Code:
rpmbuild --rebuild --with baseonly  --without debuginfo --target=`uname -m` kernel-2.6.37-2.fc15.src.rpm
Hope this helps,
Andrew

Last edited by AndrewSerk; 9th January 2011 at 05:39 PM.
Reply With Quote
  #3  
Old 9th January 2011, 05:41 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,769
linuxfedorafirefox
Re: Kernel recompile - selecting .config

Have you tried adding the --without <option> parameter to the rpmbuild command?

rpmbuild --without pae --target=i686
Reply With Quote
  #4  
Old 9th January 2011, 09:24 PM
echo6 Offline
Registered User
 
Join Date: Nov 2010
Posts: 8
linuxfedorafirefox
Re: Kernel recompile - selecting .config

Actually it does build both pae versions and generic i686 version, however it doesn't appear to be using the config file.

e.g.
Code:
[echo6@toshiba:~/rpmbuild]$ ls -l RPMS/i686/
total 55368
-rw-r--r--. 1 echo6 echo6 22066204 Jan  9 17:44 kernel-2.6.35.10-74.toshiba.fc14.i686.rpm
-rw-r--r--. 1 echo6 echo6  6903460 Jan  9 17:44 kernel-devel-2.6.35.10-74.toshiba.fc14.i686.rpm
-rw-r--r--. 1 echo6 echo6   924076 Jan  9 17:44 kernel-firmware-2.6.35.10-74.toshiba.fc14.i686.rpm
-rw-r--r--. 1 echo6 echo6   755180 Jan  9 17:44 kernel-headers-2.6.35.10-74.toshiba.fc14.i686.rpm
-rw-r--r--. 1 echo6 echo6 18840332 Jan  9 17:44 kernel-PAE-2.6.35.10-74.toshiba.fc14.i686.rpm
-rw-r--r--. 1 echo6 echo6  6848044 Jan  9 17:45 kernel-PAE-devel-2.6.35.10-74.toshiba.fc14.i686.rpm
-rw-r--r--. 1 echo6 echo6   346248 Jan  9 17:44 perf-2.6.35.10-74.toshiba.fc14.i686.rpm

[echo6@toshiba:~/rpmbuild]$ grep FB_CON SOURCES/config-i686
CONFIG_FB_CON_DECOR=y
[echo6@toshiba:~/rpmbuild]$ grep FB_CON /boot/config-2.6.35.10-74.toshiba.fc14.i686 
[echo6@toshiba:~/rpmbuild]$
Reply With Quote
  #5  
Old 16th January 2011, 11:53 AM
echo6 Offline
Registered User
 
Join Date: Nov 2010
Posts: 8
linuxfedorafirefox
Re: Kernel recompile - selecting .config

I've moved on from that guide because there is a lot going on that I can't follow. It seems overly complicated and I'm not really certain which directories are being used etc for the compile process. Also I can't seem to select the correct .config post fbcondecor patch to include the FB_CON_DECOR option.

I'm now following this guide http://blog.linuxing.org/2010/01/how...he-fedora-way/ am I right in thinking that mkinitrd in FC14 has been replaced with another tool?
Reply With Quote
  #6  
Old 16th January 2011, 11:59 AM
Gödel's Avatar
Gödel Offline
Registered User
 
Join Date: Jul 2009
Location: London,England
Posts: 1,098
linuxfedorafirefox
Re: Kernel recompile - selecting .config

it won't use the .config file unless you copy it (after making customisations) back to rpmbuild/SOURCES/ with the correct name (something like config-`uname -m` or config-`uname -m`-generic, look in the directory for the closest match).

You also must add "# i386" (or "# x86_64") to the top of the .config file manually.
Reply With Quote
  #7  
Old 16th January 2011, 12:19 PM
echo6 Offline
Registered User
 
Join Date: Nov 2010
Posts: 8
windows_7firefox
Re: Kernel recompile - selecting .config

Thanks for the response, yes I've done that step by following the fedoraproject.org guide.
I have a config file ~/rpmbuild/SOURCES/config-i686 the first line of which contains
# i386

Makes no difference.
Reply With Quote
  #8  
Old 16th January 2011, 01:59 PM
jbkt23 Offline
Registered User
 
Join Date: Mar 2006
Posts: 510
linuxfedorafirefox
Re: Kernel recompile - selecting .config

eho6
I went through a similar effort and ran out of energy before I could work out the final solution, but I was on the right track once I had followed Godel's advice. Take a look at the following link, post #15 is where the discussion becomes more relevant.

http://fedoraforum.org/forum/showthread.php?t=225820

Since you are just patching the kernel you should have more success than I because I was disabling every module I thought me system didn't need and I was over zealous in that respect.

Keep trying
__________________
jbkt23
Reply With Quote
  #9  
Old 16th January 2011, 03:59 PM
echo6 Offline
Registered User
 
Join Date: Nov 2010
Posts: 8
windows_7firefox
Re: Kernel recompile - selecting .config

I have a config from a Debian install that I have used succesfully on the laptop I'm trying to build the custom kernel for. Like you I am remove drivers etc that I don't need, in addition fbcondecor provides a new character device so you can put images on your framebuffer console. So I can't use a stock config file.

Perhaps I've overlooked a step somewhere, and atm if I have a fail to see where!
Reply With Quote
Reply

Tags
config, kernel, recompile, selecting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
selecting kernel to install redpark Installation and Live Media 4 28th February 2008 11:00 PM
Kernel Recompile From SRPM : How to change "new" config files?? Time2IPL Using Fedora 9 22nd February 2008 03:27 AM
why doesn't the kernel source installed by kernel-devel recompile? gary1975 Using Fedora 1 3rd November 2007 05:34 AM
after I recompile kernel using old config file and excluding it gets bigger? alphonsebrown Using Fedora 7 29th March 2005 06:16 AM
How to recompile kernel. vishnumrao Using Fedora 1 20th March 2005 02:01 AM


Current GMT-time: 01:46 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat