Fedora Linux Support Community & Resources Center
  #1  
Old 6th January 2010, 08:35 PM
adkohler's Avatar
adkohler Offline
Registered User
 
Join Date: Jan 2010
Posts: 3
windows_xp_2003firefox
F11 BIGPHYSAREA custom build

Greetings all. I'm a UNIX/RTOS programmer with limited linux experience and no experience with rpmbuild, and I hope someone can help me out with what may be a simple question for those more seasoned in Fedora kernel development.

Basic facts: x86_64, F11, linux 2.6.29, PC has no net access.

I used the Fedora kernel howto on the wiki here, in conjunction with some vendor instructions that aren't written assuming Fedora or RPM build.

I need to install the BIGPPHYSAREA patch into our F11 kernel. I am using a patch updated by a vendor to support the 2.6.20 kernel. Our F11 machine uses kernel 2.6.29; I had to do some of the entries manually when applying the patch to the .new source tree as described in the Fedora kernel howto and successfully created my own patch version.

Now I went to create the kernel. The vendor instructions specify installing the patch, then doing make xconfig, picking the bigphysarea support, and compiling.

Now the problem here is that using following the howto, rpmbuild wants to take charge of doing all the patching. Since the patch isn't installed in mm/Kconfig (where it wants to put bigphysarea), it doesn't show in the xconfig options. So I'm in a bit of a chicken-and-the-egg sort of situation.

Now I assumed I might be able to to an initial build to get the Kconfig's patched, go back and pick the patch from xconfig, and rebuild.

But no joy. I do that, rpmbuild craps out with (approximate transcription)...

Code:
+make ARCH=x86_64 nonint_oldconfig
(some fixdep warnings)
CONFIG_BIGPHYS_AREA
make [1]: ***[nonint_oldconfig] Error 1
make: *** [nonint_oldconfig] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.TQH8g (%prep)

RPM build errors:
   Bad exit status from /var/tmp/rpm-tmp.TQH8g (%prep)
I went back to the kernel.spec file and commented out my patch and recompiled to make sure it wasn't some package missing, but without my patch, it compiles fine.

What I think I need to do is put the patch in the compiling source tree by hand... but that doesn't seem like the right way to do it, and I'm not sure that this won't give rpmbuild some other sort of fits.

Any insight here? TIA.
Reply With Quote
  #2  
Old 11th January 2010, 01:10 AM
zaitcev Offline
Registered User
 
Join Date: Mar 2009
Posts: 31
linuxfedorafirefox
First of all, you should not be using Bigphysarea in the first place. It was obsoleted by the bootmem allocator years and years ago, back before Fedora even existed, IIRC. For crying out loud, Pauline wrote Bigphysarea for a kernel 2.2. That's Red Hat Linux 6.2.

That said, nonint_oldconfig's way to express its displeasure is not optimal. Blame Arjan for that. What it's trying to tell you is that the config has to have something for the option. You cannot just leave it unfilled (like you would for the normal oldconfig). So, go to your SOURCES directory and edit kernel-2.6.27.5-x86_64.config or equivalent and add CONFIG_BIGPHYSAREA=y.

-- Pete
Reply With Quote
  #3  
Old 11th January 2010, 01:21 AM
bob's Avatar
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 67
Posts: 21,214
linuxfedorafirefox
(moved to Fedora Spins & Remixes)
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Reply With Quote
  #4  
Old 11th January 2010, 01:08 PM
adkohler's Avatar
adkohler Offline
Registered User
 
Join Date: Jan 2010
Posts: 3
windows_xp_2003firefox
Quote:
Originally Posted by zaitcev View Post
First of all, you should not be using Bigphysarea in the first place. It was obsoleted by the bootmem allocator years and years ago, back before Fedora even existed, IIRC. For crying out loud, Pauline wrote Bigphysarea for a kernel 2.2. That's Red Hat Linux 6.2.
Actually, the vendor of the product whose driver I am trying to install has a 2.6 update of the bigphysarea patch. That's the one I am trying to install, so no worries there.

(Unfortunately, I did talk to the vendor, and they don't seem too Fedora/Redhat-wise; I asked here because I figured that it was more of a Fedora/rpmbuild question. It really could have been any patch that is crapping out like this...)

Quote:
That said, nonint_oldconfig's way to express its displeasure is not optimal. Blame Arjan for that. What it's trying to tell you is that the config has to have something for the option. You cannot just leave it unfilled (like you would for the normal oldconfig).
Ah, that may be the missing link between the vendor document and the kernel config howto.

Quote:
So, go to your SOURCES directory and edit kernel-2.6.27.5-x86_64.config or equivalent and add CONFIG_BIGPHYSAREA=y.
Alright, thanks, I'll take a look!
Reply With Quote
  #5  
Old 11th January 2010, 06:11 PM
zaitcev Offline
Registered User
 
Join Date: Mar 2009
Posts: 31
linuxfedorafirefox
Quote:
Originally Posted by adkohler View Post
Actually, the vendor of the product whose driver I am trying to install has a 2.6 update of the bigphysarea patch. That's the one I am trying to install, so no worries there.
You mentioned that they supported 2.6.20 in the original post, so I noticed it. But still it's unusual (if not outright wrong). Perhaps they want to manage a shared area between modules or something weird like that. Is there a code I can look at? Who are the vendor?
-- Pete
Reply With Quote
  #6  
Old 11th January 2010, 08:13 PM
adkohler's Avatar
adkohler Offline
Registered User
 
Join Date: Jan 2010
Posts: 3
windows_xp_2003firefox
Quote:
Originally Posted by zaitcev View Post
You mentioned that they supported 2.6.20 in the original post, so I noticed it. But still it's unusual (if not outright wrong). Perhaps they want to manage a shared area between modules or something weird like that. Is there a code I can look at? Who are the vendor?
The Vendor is Pentek, who makes data up/down conversion products.

You can get to their kernel patches by ftp here:
ftp://ftp.pentek.com/pub/linux/kernel_patches/

I grabbed the 2.6.20 patch, and had to enter some info by hand due to some changed context, and (as per the fedora custom kernel howto) created my own patch.

Last edited by adkohler; 11th January 2010 at 08:18 PM.
Reply With Quote
Reply

Tags
bigphysarea, build, custom, f11

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
Using git to build custom kernel AndyW Using Fedora 0 16th October 2009 11:28 AM
yum updates after custom kernel build russellr Using Fedora 1 6th July 2009 01:18 AM
How do I build a custom FC6 kernel? mwette Using Fedora 0 13th November 2006 03:08 PM
How to build my custom kernel feiticeir0 Using Fedora 1 20th July 2005 06:00 PM


Current GMT-time: 06:58 (Monday, 20-05-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