Chris Epicier wrote:
I just downloaded
kernel-source-2.6.11.4-SL93_BRANCH_20050525084504.src.rpm
kernel-xen-2.6.11.4-SL93_BRANCH_20050525084504.abuild-extra.tar.gz
...
[snip]
Robbie Dinn wrote:
you need to do
rpm -i kernel-source-<version>.src.rpm
cat kernel-xen-<version>.abuild-extra.tar.gz | \
(cd /usr/src/packages/SOURCE/ && tar xf - )
here I am stuck:
Ah sorry, my fault, I gave crap advice.
If you are not desperate to compile a customised
kernel, it might be easier to follow Gerd's advice
and wait for the kernel binary to appear in the place
he described in the sibling thread. It might be
quicker too, it takes several hours to build a kernel
with all the CONFIG options tunred on!
1. I only have /usr/src/packages/SOURCES/
^ (typo?)
yes typo.
2. the cat ... command line bails out:
cat kernel-xen-....abuild-extra.tar.gz | (cd
/usr/src/packages/SOURCES/ && tar xf - )
tar: Archive is compressed. Use -z option
tar: Error is not recoverable: exiting now
Ah, it's a gzip'ed tar file and I forgot to
tell you to uncompress it. I should have said
either to use zcat or specified 'tar zxf'
You might see from this: I am no linux guru
Any help on this?
Ok, trying to avoid more errors, here is the command
line again
rpm -i kernel-source-<version>.src.rpm
cat kernel-xen-<version>.abuild-extra.tar.gz | \
(cd /usr/src/packages/SOURCES/ && tar zxf - )
Now you need to learn a little bit about building
rpm files. When you get time, do 'man rpmbuild' and
read up on rpm. Maybe look at a few '.spec' files
which contain the build instruction for making an
rpm binary file.
The spec file we are interested is in
/usr/src/packages/SOURCES/kernel-xen.spec
There are lots of other spec files in the same
directory, although the more usual place to find
them is in /usr/src/packages/SPECS/
Here is a command line that will do a partial
build (called %prep stage) of the rpm build.
rpmbuild -bp /usr/src/packages/SOURCES/kernel-xen.spec
This will unpack the sources, apply any patches that
have been specified and leave a kernel source tree in
/usr/src/packages/BUILD/kernel-xen-2.6.11.4/linux-2.6.11
There will also be a kernel config file in
/usr/src/packages/BUILD/kernel-xen-2.6.11.4/config/i386/xen
you need to copy this config file to the .config file in
the base of the kernel source tree. Then do
make ARCH=xen oldconfig
make ARCH=xen menuconfig
# edit CONFIG variables as you wish
make ARCH=xen
I hope these instructions contain fewer errors that my last
attempt.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|