Chris Epicier
2005-May-26 07:59 UTC
Re: [Xen-users] Re: Problems building a xen0 kernel on Suse 9.3
Dear Robbie> Have you seen Gert Knorr''s reply to Xen-users?Yes, but I could not do anything with it, now I can!> >http://lists.xensource.com/archives/html/xen-users/2005-05/msg00443.html > > Thank you Gert! > > I think you are on the right track using KOTD, but > are you aware that > that you need two pieces to get sources that you can > build the SuSE > Xen kernel from?No I was not, so thanks alot!> >ftp://your.suse.mirror.here/pub/projects/kernel/kotd/i386/HEAD/kernel-xen-2.6.11.10-20050524103609.abuild-extra.tar.gz> >ftp://your.suse.mirror.here/pub/projects/kernel/kotd/i386/HEAD/kernel-source-2.6.11.10-20050524103609.src.rpm> > In fact I tried using the stuff in following place > instead: > >ftp://your.suse.mirror.here/pub/projects/kernel/kotd/9.3-i386/SL93_BRANCH/ 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 ...> i.e. not kernel-source-<version>.i586.rpm > but kernel-source-<version>.src.rpm > and kernel-xen-<version>.abuild-extra.tar.gz > > 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: 1. I only have /usr/src/packages/SOURCES/ ^ (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 You might see from this: I am no linux guru Any help on this?> Then either build using rpmbuild and the > kernel-xen.spec file > or manually with make ARCH=xen config ; make > ARCH=xen > > Remember to set CONFIG_BLK_DEV_MD=y > > I am busy compiling this at the moment :)I''d love to be too! greets chris and thanks for your and Gerd''s help so far ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Robbie Dinn
2005-May-26 09:27 UTC
Re: [Xen-users] Re: Problems building a xen0 kernel on Suse 9.3
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@lists.xensource.com http://lists.xensource.com/xen-users