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

27th March 2005, 03:07 PM
|
 |
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
|

27th March 2005, 03:11 PM
|
 |
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
|

27th March 2005, 03:38 PM
|
 |
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"
|

27th March 2005, 03:48 PM
|
 |
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
|

27th March 2005, 03:51 PM
|
 |
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.
|

27th March 2005, 04:19 PM
|
|
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'
|

27th March 2005, 07:21 PM
|
 |
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
|

28th March 2005, 07:15 AM
|
 |
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
|

28th March 2005, 09:53 AM
|
 |
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"
|

28th March 2005, 11:07 AM
|
 |
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 01:58 (Thursday, 20-06-2013)
|
|
 |
 |
 |
 |
|
|