From: Mark Williamson Subject: Re: Is is possible to use the latest changeset and old linux kernel? Date: Wed, 30 May 2007 02:59:09 +0100 Message-ID: <200705300259.10151.mark.williamson@cl.cam.ac.uk> References: <465C79A1.6070405@eecs.umich.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <465C79A1.6070405@eecs.umich.edu> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Xin Zhao List-Id: xen-devel@lists.xenproject.org > I tried to use the latest changeset of xen-unstable with an old linux > kernel (2.6.16.33), because some of my codes are developed based on that > Linux version. It seems that 2.6.18 changes quite a bit interfaces from > 2.6.16.33. > > I set the "LINUX_VER =3D 2.6.16.33" in the file > "buildconfigs/mk.linux-2.6-xen". When I did "make world", the xen > builder did download 2.6.16.33 tarball. But the compiling procedure > failed with the following error message: > > /****************************************************/ > include2/asm/i387.h: In function =E2__save_init_fpu=E2: > include2/asm/i387.h:63: error: expected expression before =E2[=E2 token > include2/asm/i387.h:63: error: =E2fx=E2 undeclared (first use in this fun= ction) > include2/asm/i387.h:63: error: (Each undeclared identifier is reported > only once > include2/asm/i387.h:63: error: for each function it appears in.) > include2/asm/i387.h:73: error: expected expression before =E2[=E2 token > include2/asm/i387.h:73: error: =E2addr=E2 undeclared (first use in this > function) > /tmp/xen-unstable.hg/linux-2.6.16.33-xen/arch/i386/kernel/asm-offsets.c: > In function =E2foo=E2: > /tmp/xen-unstable.hg/linux-2.6.16.33-xen/arch/i386/kernel/asm-offsets.c:5= 8: > error: =E2struct thread_info=E2 has no member named =E2sysenter_return=E2 > /tmp/xen-unstable.hg/linux-2.6.16.33-xen/arch/i386/kernel/asm-offsets.c:7= 9: > error: =E2VDSO_PRELINK=E2 undeclared (first use in this function) > /tmp/xen-unstable.hg/linux-2.6.16.33-xen/arch/i386/kernel/asm-offsets.c:8= 1: > error: =E2struct crypto_tfm=E2 has no member named =E2__crt_ctx=E2 > make[7]: *** [arch/i386/kernel/asm-offsets.s] Error 1 > make[6]: *** [prepare0] Error 2 > make[5]: *** [modules] Error 2 > make[4]: *** [modules] Error 2 > /****************************************************/ > > So my question is how to use the latest Xen changeset with old Linux > kernel? You can't just build it in the xen-unstable sparse tree, because of the=20 conflicts you've just seen. The happy news is that you don't need to do=20 this. I assume you're dealing with dom0 here? Otherwise, binary compatibility fo= r=20 old changeset ought always to be maintained. Since at least 3.0.4, the dom= 0=20 kernel binary interfaces are stabilised too, so you can use an older dom0=20 kernel with a newer Xen. (nb. possibly you lose a few features this way,=20 e.g. 32-on-64 support). Are you using 3.0.4 already? If so, just build dom0 Linux in the tree you= =20 already have, then use that kernel with the latest changesets of Xen. You= =20 just have to make sure you match the dom0 toolset with the Xen you're=20 running. Does this make sense? Hope this helps, Cheers, Mark =2D-=20 Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel!