WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Re: Problems building a xen0 kernel on Suse 9.3

To: Chris Epicier <seuchato@xxxxxxxx>
Subject: Re: [Xen-users] Re: Problems building a xen0 kernel on Suse 9.3
From: Robbie Dinn <robbie@xxxxxxxxxxxx>
Date: Thu, 26 May 2005 10:27:02 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 26 May 2005 09:26:25 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050526075950.27603.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <20050526075950.27603.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 0.8 (X11/20040913)
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