I posted to xen-users I was having problems, but looking through list archives looks like xen-devel is a more appropriate place. After patching my kernel, and running make menuconfig ARCH=xen, everything seems fine. When I run make ARCH=xen, it compiles fine till here: CC arch/xen/kernel/skbuff.o arch/xen/kernel/skbuff.c:28: error: redefinition of `__dev_alloc_skb'' include/linux/skbuff.h:940: error: `__dev_alloc_skb'' previously defined here arch/xen/kernel/skbuff.c: In function `__dev_alloc_skb'': arch/xen/kernel/skbuff.c:30: warning: implicit declaration of function `alloc_skb_from_cache'' arch/xen/kernel/skbuff.c:30: warning: assignment makes pointer from integer without a cast is there anything I should be doing different/workaround? Thanks a lot for any help Andrew Mathes _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 25 Apr 2005, at 19:56, andrew mathes wrote:> I posted to xen-users I was having problems, but looking through list > archives looks like xen-devel is a more appropriate place. > > After patching my kernel, and running make menuconfig ARCH=xen, > everything seems fine. When I run make ARCH=xen, it compiles fine > till here: > CC arch/xen/kernel/skbuff.o > arch/xen/kernel/skbuff.c:28: error: redefinition of `__dev_alloc_skb'' > include/linux/skbuff.h:940: error: `__dev_alloc_skb'' previously > defined here > arch/xen/kernel/skbuff.c: In function `__dev_alloc_skb'': > arch/xen/kernel/skbuff.c:30: warning: implicit declaration of function > `alloc_skb_from_cache'' > arch/xen/kernel/skbuff.c:30: warning: assignment makes pointer from > integer without a cast > > is there anything I should be doing different/workaround?Take a look in your .config file. There should be a line near the start, at the end of the ''XEN'' subsection, that says ''CONFIG_HAVE_ARCH_DEV_ALLOC_SKB=y''. If you''re missing that, and/or the entire xen subsection, then you''ve somehow configured for native i386 by mistake. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
this is the top of my .config ... will it help if I post the whole thing? # # Automatically generated make config: don''t edit # Linux kernel version: 2.6.10 # Mon Apr 25 14:44:29 2005 # CONFIG_XEN=y CONFIG_ARCH_XEN=y CONFIG_NO_IDLE_HZ=y # # XEN # # CONFIG_XEN_PRIVILEGED_GUEST is not set # CONFIG_XEN_PHYSDEV_ACCESS is not set # CONFIG_XEN_BLKDEV_BACKEND is not set # CONFIG_XEN_NETDEV_BACKEND is not set CONFIG_XEN_BLKDEV_FRONTEND=y CONFIG_XEN_NETDEV_FRONTEND=y # CONFIG_XEN_NETDEV_FRONTEND_PIPELINED_TRANSMITTER is not set CONFIG_XEN_WRITABLE_PAGETABLES=y CONFIG_XEN_SCRUB_PAGES=y CONFIG_HAVE_ARCH_DEV_ALLOC_SKB=y CONFIG_X86=y # CONFIG_X86_64 is not set # # Code maturity level options # CONFIG_EXPERIMENTAL=y CONFIG_CLEAN_COMPILE=y CONFIG_BROKEN_ON_SMP=y On Mon, 25 Apr 2005, Keir Fraser wrote:> > On 25 Apr 2005, at 19:56, andrew mathes wrote: > >> I posted to xen-users I was having problems, but looking through list >> archives looks like xen-devel is a more appropriate place. >> >> After patching my kernel, and running make menuconfig ARCH=xen, everything >> seems fine. When I run make ARCH=xen, it compiles fine till here: >> CC arch/xen/kernel/skbuff.o >> arch/xen/kernel/skbuff.c:28: error: redefinition of `__dev_alloc_skb'' >> include/linux/skbuff.h:940: error: `__dev_alloc_skb'' previously defined >> here >> arch/xen/kernel/skbuff.c: In function `__dev_alloc_skb'': >> arch/xen/kernel/skbuff.c:30: warning: implicit declaration of function >> `alloc_skb_from_cache'' >> arch/xen/kernel/skbuff.c:30: warning: assignment makes pointer from >> integer without a cast >> >> is there anything I should be doing different/workaround? > > Take a look in your .config file. There should be a line near the start, at > the end of the ''XEN'' subsection, that says > ''CONFIG_HAVE_ARCH_DEV_ALLOC_SKB=y''. > > If you''re missing that, and/or the entire xen subsection, then you''ve somehow > configured for native i386 by mistake. > > -- Keir > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 25 Apr 2005, at 23:13, andrew mathes wrote:> this is the top of my .config ... will it help if I post the whole > thing?The .config looks good, so the error you are getting is weird. If you look in include/linux/skbuff.h you should find that the definition of __dev_alloc_skb is wrapped in #ifndef CONFIG_HAVE_ARCH_DEV_ALLOC_SKB If you have no such line in your skbuff.h file then your patching has gone wrong. I notice you are using 2.6.10 still -- have you tried downloading a more up to date repository or snapshot tarball? -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
to use a more up to date repository ... where would i find more updated patches for the kernel? I only saw the two from the download site ... are they in the xen source tarball somewhere? then i assume i just patch them to the latest 2.6.11 kernel thanks a lot again- On Mon, 25 Apr 2005, Keir Fraser wrote:> > On 25 Apr 2005, at 23:13, andrew mathes wrote: > >> this is the top of my .config ... will it help if I post the whole thing? > > The .config looks good, so the error you are getting is weird. If you look in > include/linux/skbuff.h you should find that the definition of __dev_alloc_skb > is wrapped in > #ifndef CONFIG_HAVE_ARCH_DEV_ALLOC_SKB > > If you have no such line in your skbuff.h file then your patching has gone > wrong. I notice you are using 2.6.10 still -- have you tried downloading a > more up to date repository or snapshot tarball? > > -- Keir > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
ok, at this point i''ve tried - 2.6.11 and 2.6.10 ... patched with arch-xen.patch and drivers-xen.patch, and also tried with just copying the linux-2.6.11-xen-sparse folder to the kernel directory then make menuconfig ARCH=xen (seems fine, brings up xen options) then make ARCH=xen ... always has errors. the two places it seems to error are "rmap.h" and "skbuff.c" depending how I patch the kernels/which i use ... am I still going about this wrong? is there somewhere to get the "latest" arch-xen.patch/drivers-xen.patch? thanks again for any help On Tue, 26 Apr 2005, andrew mathes wrote:> to use a more up to date repository ... > > where would i find more updated patches for the kernel? I only saw the two > from the download site ... are they in the xen source tarball somewhere? > > then i assume i just patch them to the latest 2.6.11 kernel > > thanks a lot again- > > On Mon, 25 Apr 2005, Keir Fraser wrote: > >> >> On 25 Apr 2005, at 23:13, andrew mathes wrote: >> >> > this is the top of my .config ... will it help if I post the whole >> > thing? >> >> The .config looks good, so the error you are getting is weird. If you look >> in include/linux/skbuff.h you should find that the definition of >> __dev_alloc_skb is wrapped in >> #ifndef CONFIG_HAVE_ARCH_DEV_ALLOC_SKB >> >> If you have no such line in your skbuff.h file then your patching has gone >> wrong. I notice you are using 2.6.10 still -- have you tried downloading a >> more up to date repository or snapshot tarball? >> >> -- Keir >> >> > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel