Maintain kernel-2.6.37-0.(x).rc(x).git(y).xendom0.fc14.src.rpm in sync with tip of mainline development tree 2.6.37

Download from http://koji.fedoraproject.org/koji/taskinfo?taskID=2581021
file kernel-6.37-0.1.rc1.git0.xendom0.fc15.src.rpm been built by Michael Young and install it.
In mean time following patches :-
patch-2.6.37-rc1.bz2
patch-2.6.37-rc1-git5.bz2
should be downloaded from http://kernel.org and copied to /root/rpmbuild/SOURCES folder
Update /root/rpmbuild/SPECS/kernel.spec correspondently

--- kernel.spec.orig	2010-11-07 18:22:25.965480016 +0300
+++ kernel.spec	2010-11-07 17:23:50.546673325 +0300
@@ -85,7 +85,7 @@
 # The rc snapshot level
 %define rcrev 1
 # The git snapshot level
-%define gitrev 0
+%define gitrev 5
 # Set rpm version accordingly
 %define rpmversion 2.6.%{upstream_sublevel}
 %endif

At this point you should be able to build new kernel RPMS

# rpmbuild -bb ./kernel.spec
. . . . .
Wrote: /root/rpmbuild/RPMS/x86_64/kernel-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/kernel-headers-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/kernel-debuginfo-common-x86_64-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/perf-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/kernel-devel-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/kernel-debuginfo-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.vzYwPP
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd kernel-2.6.36.fc14
+ rm -rf /root/rpmbuild/BUILDROOT/kernel-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64
+ exit 0

Install new kernel :-

yum install kernel-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64.rpm \
kernel-debuginfo-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64.rpm \
kernel-debuginfo-common-x86_64-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64.rpm \
kernel-devel-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64.rpm \
kernel-headers-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64.rpm \
perf-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64.rpm

Dependencies Resolved

====================================================================================
Package Arch Version Repository Size
====================================================================================
Installing:
kernel x86_64 2.6.37-0.1.rc1.git5.xendom0.fc14 /kernel-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64 107 M
kernel-devel x86_64 2.6.37-0.1.rc1.git5.xendom0.fc14 /kerneldevel-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64 24 M
Updating:
kernel-debuginfo x86_64 2.6.37-0.1.rc1.git5.xendom0.fc14 /kernel-debuginfo-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64 1.5 G
kernel-debuginfo-common x86_64 x86_64 2.6.37-0.1.rc1.git5.xendom0.fc14 /kernel-debuginfo-common-x86_64-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64 196 M
kernel-headers x86_64 2.6.37-0.1.rc1.git5.xendom0.fc14 /kernel-headers-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64 2.4 M
perf x86_64 2.6.37-0.1.rc1.git5.xendom0.fc14 /perf-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64 747 k

Removing:
kernel x86_64 2.6.37-0.1.rc0.git13.xendom0.fc14 @/kernel-2.6.37-0.1.rc0.git13.xendom0.fc14.x86_64 100 M

kernel-devel x86_64 2.6.37-0.1.rc0.git13.xendom0.fc14 @/kernel- devel-2.6.37-0.1.rc0.git13.xendom0.fc14.x86_64 24 M

Transaction Summary
===================================================================================
Install 2 Package(s)
Upgrade 4 Package(s)
Remove 2 Package(s)
Total size: 1.8 G
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : kernel-debuginfo-common-x86_64-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64 1/12
Updating : perf-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64 2/12
Installing : kernel-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64 3/12
Updating : kernel-debuginfo-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64 4/12
Installing : kernel-devel-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64 5/12
Updating : kernel-headers-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64 6/12
Cleanup : kernel-debuginfo-2.6.37-0.1.rc1.git0.xendom0.fc14.x86_64 7/12
Cleanup : perf-2.6.37-0.1.rc1.git0.xendom0.fc14.x86_64 8/12
Cleanup : kernel-debuginfo-common-x86_64-2.6.37-0.1.rc1.git0.xendom0.fc14.x86_64 9/12
Cleanup : kernel-devel-2.6.37-0.1.rc0.git13.xendom0.fc14.x86_64 10/12
Cleanup : kernel-headers-2.6.37-0.1.rc1.git0.xendom0.fc14.x86_64 11/12
Cleanup : kernel-2.6.37-0.1.rc0.git13.xendom0.fc14.x86_64 12/12
Removed:
kernel.x86_64 0:2.6.37-0.1.rc0.git13.xendom0.fc14 kernel-devel.x86_64 0:2.6.37-0.1.rc0.git13.xendom0.fc14
Installed:
kernel.x86_64 0:2.6.37-0.1.rc1.git5.xendom0.fc14 kernel-devel.x86_64 0:2.6.37-0.1.rc1.git5.xendom0.fc14
Updated:
kernel-debuginfo.x86_640:2.6.37-0.1.rc1.git5.xendom0.fc14
kernel-debuginfo-common-x86_64.x86_64 0:2.6.37-0.1.rc1.git5.xendom0.fc14
kernel-headers.x86_64 0:2.6.37-0.1.rc1.git5.xendom0.fc14
perf.x86_64 0:2.6.37-0.1.rc1.git5.xendom0.fc14
Complete!

Create grub entry

title Xen 4.0.1 Fedora 14 (vmlinuz-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64)
root (hd0,8)
kernel /xen.gz dom0_mem=1024M
module /vmlinuz-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64 ro root=/dev/mapper/vg_fedora14-lv_root LANG=US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us
module /initramfs-2.6.37-0.1.rc1.git5.xendom0.fc14.x86_64.img

Set initdefault to 3 via /etc/inittab and boot system into new kernel under Xen 4.0.1 :-





****************************
UPDATE on 11/11/2010
****************************
I have to notice that for rc1 git revision 7 and 8 patch linux-2.6-crash-driver.patch should be disabled
like this:-
# ApplyPatch linux-2.6-crash-driver.patch
in kernel.spec.
****************************
UPDATE on 11/14/2010
****************************
To build fedora kernel via the most recent MY’s http://koji.fedoraproject.org/koji/taskinfo?taskID=2598434 src.rpm for rcrev=1 and gitrev=11 without applying upstream patch i had to patch the kernel.spec as follows

--- kernel.spec.orig	2010-11-13 01:19:22.000000000 +0300
+++ kernel.spec	2010-11-14 19:46:45.613917250 +0300
@@ -85,7 +85,7 @@
 # The rc snapshot level
 %define rcrev 1
 # The git snapshot level
-%define gitrev 8
+%define gitrev 11
 # Set rpm version accordingly
 %define rpmversion 2.6.%{upstream_sublevel}
 %endif
@@ -378,6 +378,9 @@
 
 # Should make listnewconfig fail if there's config options
 # printed out?
+
+%define nopatches 1
+
 %if %{nopatches}%{using_upstream_branch}
 %define listnewconfig_fail 0
 %else
@@ -1301,7 +1304,7 @@
 ApplyPatch dmar-disable-when-ricoh-multifunction.patch
 
 # Xen patches
-ApplyPatch xen.next-2.6.37.patch
+# ApplyPatch xen.next-2.6.37.patch
 #ApplyPatch xen.upstream.core.patch
 #ApplyPatch xen.pcifront.fixes.patch
 #ApplyPatch xen.pvhvm.fixes.patch

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: