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 27th March 2005, 03:07 PM
alphonsebrown's Avatar
alphonsebrown Offline
Registered User
 
Join Date: Feb 2005
Location: Sofia, Bulgaria
Age: 29
Posts: 791
kernel make clean and backup

su root
uname -rm
make oldconfig
make all
drink coffee
make modules_install
make install # you may need to backup something now
# make clean
reboot

>> what do I have to backup actually?
__________________
Windows doesn't just crash - it opens a dialog box and lets you press OK first. Powered by RedHat since I know my self ;) Fedora 12 #379190
Reply With Quote
  #2  
Old 27th March 2005, 03:11 PM
alphonsebrown's Avatar
alphonsebrown Offline
Registered User
 
Join Date: Feb 2005
Location: Sofia, Bulgaria
Age: 29
Posts: 791
make rpm maybe? but what kind of .rpmmacros do I need?
__________________
Windows doesn't just crash - it opens a dialog box and lets you press OK first. Powered by RedHat since I know my self ;) Fedora 12 #379190
Reply With Quote
  #3  
Old 27th March 2005, 03:38 PM
dorian's Avatar
dorian Offline
Registered User
 
Join Date: Oct 2004
Location: Essen, Germany
Age: 41
Posts: 82
Hi,

if you do a "make clean" after each "make install" you have to backup the headers for your new kernel. As i usually have enough diskspace , i don't do a "make clean" after kernel installation (with "make install"), but i must admit, that this wasts some harddiskspace. And i suggest that you don't do a make clean until your new kernel is up and runing and perefctly tuned for you. Each reconfiguration will take much, MUCH more time if you allways clean up after installation!

Hope that helps.

Dorian
__________________
FC3 + 2.6.11.4 on TablettPC HP TC1100 (incl. wacom pen, swsupend2) & FC3 on AMD64 3000 Desktop.
"You make me feel so old inside..." Morrissey "viva hate-Magret on the Guillotine"
Reply With Quote
  #4  
Old 27th March 2005, 03:48 PM
alphonsebrown's Avatar
alphonsebrown Offline
Registered User
 
Join Date: Feb 2005
Location: Sofia, Bulgaria
Age: 29
Posts: 791
by the way: make rpm showed some errors... also first line of output was "make clean" ...
__________________
Windows doesn't just crash - it opens a dialog box and lets you press OK first. Powered by RedHat since I know my self ;) Fedora 12 #379190
Reply With Quote
  #5  
Old 27th March 2005, 03:51 PM
dorian's Avatar
dorian Offline
Registered User
 
Join Date: Oct 2004
Location: Essen, Germany
Age: 41
Posts: 82
Ah, if you "cleaned" your sources before the "make rpm" there should be nothing left to make the rpm from. Hence you should get errors.

Dorian
Note: It depends on the rpm-script, which is run for building the rpm for the kernel. Right now it seems -to my own surprise-, that by typing "make rpm" in vanilla kerenel-2.6.11.4 everything is redone. Therefore the "make clean" does not break the rpm building. I recall this not being the case with some prior kernels, but cant prove it right now.
__________________
FC3 + 2.6.11.4 on TablettPC HP TC1100 (incl. wacom pen, swsupend2) & FC3 on AMD64 3000 Desktop.
"You make me feel so old inside..." Morrissey "viva hate-Magret on the Guillotine"

Last edited by dorian; 27th March 2005 at 04:10 PM.
Reply With Quote
  #6  
Old 27th March 2005, 04:19 PM
Lenard Offline
Registered User
 
Join Date: Jun 2004
Posts: 161
But all may not be lost depending on how the kernel was built (CONFIG_IKCONFIG=y and CONFIG_IKCONFIG_PROC=y), check for the existance of the /proc/config.gz file. If this file exists while running the kernel you want to create an rpm for simply copy the expanded file (config) and rename the file to .config in the source directory and then use 'make rpm'
Reply With Quote
  #7  
Old 27th March 2005, 07:21 PM
alphonsebrown's Avatar
alphonsebrown Offline
Registered User
 
Join Date: Feb 2005
Location: Sofia, Bulgaria
Age: 29
Posts: 791
i didn't make clean just make rpm and not working :
[root@fbi alphonsebrown]# cd /usr/src/linux
[root@fbi linux]# make rpm
make clean
set -e; cd ..; ln -sf /usr/src/redhat/BUILD/kernel-2.6.10/linux-2.6.10 kernel-2.6.10precompiled
set -e; cd ..; tar -cz -f kernel-2.6.10precompiled.tar.gz kernel-2.6.10precompiled/.
set -e; cd ..; rm kernel-2.6.10precompiled
set -e; \
/bin/sh /usr/src/redhat/BUILD/kernel-2.6.10/linux-2.6.10/scripts/mkversion > /usr/src/redhat/BUILD/kernel-2.6.10/linux-2.6.10/.tmp_version
set -e; \
mv -f /usr/src/redhat/BUILD/kernel-2.6.10/linux-2.6.10/.tmp_version /usr/src/redhat/BUILD/kernel-2.6.10/linux-2.6.10/.version
rpmbuild --target i386 -ta ../kernel-2.6.10precompiled.tar.gz
Building target platforms: i386
Building for target i386
error: File ../kernel-2.6.10precompiled.tar.gz: No such file or directory
sh: ../kernel-2.6.10precompiled.tar.gz: No such file or directory
error: Failed to rename /root/redhat/specs/rpm-spec.OtMaw9 to /root/redhat/specs/rpm-spec.OtMaw9: No such file or directory: No such file or directory
make[1]: *** [rpm] Error 1
make: *** [rpm] Error 2
[root@fbi linux]#
__________________
Windows doesn't just crash - it opens a dialog box and lets you press OK first. Powered by RedHat since I know my self ;) Fedora 12 #379190
Reply With Quote
  #8  
Old 28th March 2005, 07:15 AM
alphonsebrown's Avatar
alphonsebrown Offline
Registered User
 
Join Date: Feb 2005
Location: Sofia, Bulgaria
Age: 29
Posts: 791
what to do ? to make rpm from new kernel build?
__________________
Windows doesn't just crash - it opens a dialog box and lets you press OK first. Powered by RedHat since I know my self ;) Fedora 12 #379190
Reply With Quote
  #9  
Old 28th March 2005, 09:53 AM
dorian's Avatar
dorian Offline
Registered User
 
Join Date: Oct 2004
Location: Essen, Germany
Age: 41
Posts: 82
Hi,

you kernel can be build using "make", or not? I don't build rpms for my kernel, so i am not of much help here. For me, as soon as "make" worked, "make rpm" worked too (as far as i tested it). I am not sure, but i was wondering why you use the i386 architecture, when your sig states that you have a athlon based system. Could that be the problem? Are you trying to build a kernel for an other computer on an athlon?

Dorian
__________________
FC3 + 2.6.11.4 on TablettPC HP TC1100 (incl. wacom pen, swsupend2) & FC3 on AMD64 3000 Desktop.
"You make me feel so old inside..." Morrissey "viva hate-Magret on the Guillotine"
Reply With Quote
  #10  
Old 28th March 2005, 11:07 AM
alphonsebrown's Avatar
alphonsebrown Offline
Registered User
 
Join Date: Feb 2005
Location: Sofia, Bulgaria
Age: 29
Posts: 791
Quote:
Originally Posted by dorian
Hi,

you kernel can be build using "make", or not? I don't build rpms for my kernel, so i am not of much help here. For me, as soon as "make" worked, "make rpm" worked too (as far as i tested it). I am not sure, but i was wondering why you use the i386 architecture, when your sig states that you have a athlon based system. Could that be the problem? Are you trying to build a kernel for an other computer on an athlon?

Dorian
no I', building for my machine anfd it's currently i686 arch but I was wondering if it's applicable to make in target=athlon>? and propably will have then the rpms in athlon subfolder?
__________________
Windows doesn't just crash - it opens a dialog box and lets you press OK first. Powered by RedHat since I know my self ;) Fedora 12 #379190
Reply With Quote
Reply

Tags
backup, clean, kernel, make

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
how to make a backup horacle Using Fedora 2 17th December 2008 01:29 AM
how to make a custom backup io2k7 Using Fedora 1 20th November 2008 05:27 PM
make: *** No rule to make target 'clean'. Stop. JonnyBravo Using Fedora 6 18th October 2008 10:38 AM
problem with clean make in C++ Amon Programming & Packaging 1 19th August 2007 02:09 PM
RPM vs MAKE (keeping system clean) woosting Using Fedora 20 5th August 2005 03:09 PM


Current GMT-time: 01:58 (Thursday, 20-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