Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 18th July 2006, 07:57 PM
DigiCrime Offline
Registered User
 
Join Date: Aug 2004
Posts: 23
Non Modular Kernel RPM

Hi

Trying to build a new kernel but all the stuff I need is built in, no modules.. I forgot how to make an RPM out of it... when I do a make rpm it goes thru the entire process but at the end it errors


Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.67514
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd kernel-2.6.17.5
+ mkdir -p /var/tmp/kernel-2.6.17.5-root/boot /var/tmp/kernel-2.6.17.5-root/lib /var/tmp/kernel-2.6.17.5-root/lib/modules
+ INSTALL_MOD_PATH=/var/tmp/kernel-2.6.17.5-root
+ make modules_install

The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.

make[2]: *** [modules_install] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.67514 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.67514 (%install)
make[1]: *** [rpm] Error 1
make: *** [rpm] Error 2

root@partners [/usr/src/linux-2.6.17.5]# cat /var/tmp/rpm-tmp.67514
#!/bin/sh

RPM_SOURCE_DIR="/usr/src/linux-2.6.17.5/.."
RPM_BUILD_DIR="/usr/src/redhat/BUILD"
RPM_OPT_FLAGS="-O2 -g -march=i386 -mcpu=i686"
RPM_ARCH="i386"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="kernel"
RPM_PACKAGE_VERSION="2.6.17.5"
RPM_PACKAGE_RELEASE="1"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
RPM_BUILD_ROOT="/var/tmp/kernel-2.6.17.5-root"
export RPM_BUILD_ROOT


set -x
umask 022
cd /usr/src/redhat/BUILD
cd kernel-2.6.17.5
mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules
INSTALL_MOD_PATH=$RPM_BUILD_ROOT make modules_install
cp $KBUILD_IMAGE $RPM_BUILD_ROOT/boot/vmlinuz-2.6.17.5
cp System.map $RPM_BUILD_ROOT/boot/System.map-2.6.17.5
cp .config $RPM_BUILD_ROOT/boot/config-2.6.17.5
Reply With Quote
  #2  
Old 19th July 2006, 03:43 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909
Quote:
Originally Posted by DigiCrime
+ make modules_install

The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.

make[2]: *** [modules_install] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.67514 (%install)
Looks like you need to remove the make modules_install line from the spec file.
Reply With Quote
  #3  
Old 19th July 2006, 08:16 AM
DigiCrime Offline
Registered User
 
Join Date: Aug 2004
Posts: 23
The spec file is created after I "make rpm" not before, its an option now with the kernel just that im not building a modulated kernel.. so how would I remove it to make an rpm out of it
Reply With Quote
  #4  
Old 20th July 2006, 02:39 AM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909
There's either a .spec file in there somewhere you can edit or the Makefile defines the spec somehow.
Reply With Quote
  #5  
Old 20th July 2006, 03:14 AM
DigiCrime Offline
Registered User
 
Join Date: Aug 2004
Posts: 23
I edited the macro file for the make portion so it leaves out that part now I have an RPM made, trouble is I have no way to test it LOL I dont have any spare systems to test at the moment... someone else wants to feel free http://www.stlhosting.com/kernel-2.6.17.5-2.i386.rpm
Reply With Quote
Reply

Tags
kernel, modular, rpm

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
Extended Euclidean Algorithm Explanation Help and Modular Multiplicative Inverse Peter_APIIT Programming & Packaging 13 30th May 2009 01:25 AM
FC6 Kernel >= kernel-2.6.20-1.2962.fc6 = kernel panic Hlingler Using Fedora 3 1st August 2007 09:02 AM
Problem building xorg modular Hitmuri Using Fedora 2 2nd February 2007 08:01 AM


Current GMT-time: 10:37 (Wednesday, 22-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