Hi all, I follow instructions(http://wiki.xensource.com/xenwiki/XenParavirtOps) to build XEN and dom0 kernel. Building XEN has no problem, but there is an error which I cannot solve to build dom0 kernel. The brief instructions for building dom0 are get linux-2.6-xen code from git and make ARCH=x86_64 menuconfig, finally generate kernel.deb. (I did every step exactly as the web page says) First, compiling linux-2.6-xen is ok. (One error is drivers/char/apg/intel-agp.c, which is solved by replacing a new version of intel-agp.c) Then when executing (in order to generate .deb) sudo fakeroot make-kpkg --initrd --append-to-version=-pv kernel-image kernel-headers an error occurs: Errpr: Kernel: arch/x86/boot/bzImage is ready (#1) Building modules, stage 2. MODPOST 1477 modules *ERROR: "xen_pcpu_index" [drivers/acpi/processor.ko] undefined!* WARNING: modpost: Found 1 section mismatch(es). To see full details build your kernel with: ''make CONFIG_DEBUG_SECTION_MISMATCH=y'' make[1]: *** [__modpost] Error 1 make: *** [modules] Error 2 I also tried make ARCH=x86 menuconfig, but it did not work. There are a few threads of the same problem, which did not find the actual answer. My machine is Ubuntu8 32-bit(2.6.24-19), i5 processor, XEN-4.0.2. I got stuck for several days:( I really appreciate your help :_) Best, Liu _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Tue, Jul 5, 2011 at 10:06 PM, Joh Liu <bradevuu@gmail.com> wrote:> Hi all, > > I follow instructions(http://wiki.xensource.com/xenwiki/XenParavirtOps) to > build XEN and dom0 kernel. Building XEN has no problem, but there is an > error which I cannot solve to build dom0 kernel. The brief instructions for > building dom0 are get linux-2.6-xen code from git and make ARCH=x86_64 > menuconfig, finally generate kernel.deb. (I did every step exactly as the > web page says) >So you are pulling from this tree? git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git There are several references to "xen_pcpu_index" http://xen.markmail.org/search/?q=xen_pcpu_index#query:xen_pcpu_index+page:1+mid:vts33haap3utumue+state:results http://xen.markmail.org/search/?q=xen_pcpu_index#query:xen_pcpu_index+page:1+mid:x6m2gyjm3qtnttsc+state:results etc. It seems that it has gone unresolved a few times. I''m not sure if this a known issue or what type of problem it is. Can you provide more details about your hardware or any other information that may be relevant? You may want to review http://wiki.xensource.com/xenwiki/AskingXenDevelQuestions as there may be developers that would be able to shed some light on this issue. Maybe with the information in the other threads you will gain some insights about the problem. Thanks, Todd> > First, compiling linux-2.6-xen is ok. > (One error is drivers/char/apg/intel-agp.c, which is solved by replacing a > new version of intel-agp.c) > > Then when executing (in order to generate .deb) > > sudo fakeroot make-kpkg --initrd --append-to-version=-pv kernel-image > kernel-headers > > an error occurs: > > Errpr: Kernel: arch/x86/boot/bzImage is ready (#1) > Building modules, stage 2. > MODPOST 1477 modules > ERROR: "xen_pcpu_index" [drivers/acpi/processor.ko] undefined! > WARNING: modpost: Found 1 section mismatch(es). > To see full details build your kernel with: > ''make CONFIG_DEBUG_SECTION_MISMATCH=y'' > make[1]: *** [__modpost] Error 1 > make: *** [modules] Error 2 > > I also tried make ARCH=x86 menuconfig, but it did not work. There are a few > threads of the same problem, which did not find the actual answer. My > machine is Ubuntu8 32-bit(2.6.24-19), i5 processor, XEN-4.0.2. I got stuck > for several days:( > > I really appreciate your help :_) > > Best, > Liu > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html http://runningxen.com/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi Todd, I will compile dom0 using other Linux distributions(e.g, Fedora) to see if it works. I referenced those threads you mentioned, but seems no final solution. One possible cause related to hardware is I use a new type of DELL OPTIPLEX 790. It''s very weird that when installing Ubuntu9 and 10, the screen is totally messed up so that I can only install Ubuntu8(11.04 is too new). Also the error of intel-agp.c is common which can be seen in dozens of threads, and I''m not sure replacing it with another intel-agp.c is a standard way. Best, Liu 2011/7/5 Todd Deshane <todd.deshane@xen.org>> On Tue, Jul 5, 2011 at 10:06 PM, Joh Liu <bradevuu@gmail.com> wrote: > > Hi all, > > > > I follow instructions(http://wiki.xensource.com/xenwiki/XenParavirtOps) > to > > build XEN and dom0 kernel. Building XEN has no problem, but there is an > > error which I cannot solve to build dom0 kernel. The brief instructions > for > > building dom0 are get linux-2.6-xen code from git and make ARCH=x86_64 > > menuconfig, finally generate kernel.deb. (I did every step exactly as the > > web page says) > > > > So you are pulling from this tree? > > git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git > > There are several references to "xen_pcpu_index" > > http://xen.markmail.org/search/?q=xen_pcpu_index#query:xen_pcpu_index+page:1+mid:vts33haap3utumue+state:results > > http://xen.markmail.org/search/?q=xen_pcpu_index#query:xen_pcpu_index+page:1+mid:x6m2gyjm3qtnttsc+state:results > etc. > > It seems that it has gone unresolved a few times. I''m not sure if this > a known issue or what type of problem it is. Can you provide more > details about your hardware or any other information that may be > relevant? > > You may want to review > http://wiki.xensource.com/xenwiki/AskingXenDevelQuestions as there may > be developers that would be able to shed some light on this issue. > Maybe with the information in the other threads you will gain some > insights about the problem. > > Thanks, > Todd > > > > > First, compiling linux-2.6-xen is ok. > > (One error is drivers/char/apg/intel-agp.c, which is solved by replacing > a > > new version of intel-agp.c) > > > > Then when executing (in order to generate .deb) > > > > sudo fakeroot make-kpkg --initrd --append-to-version=-pv kernel-image > > kernel-headers > > > > an error occurs: > > > > Errpr: Kernel: arch/x86/boot/bzImage is ready (#1) > > Building modules, stage 2. > > MODPOST 1477 modules > > ERROR: "xen_pcpu_index" [drivers/acpi/processor.ko] undefined! > > WARNING: modpost: Found 1 section mismatch(es). > > To see full details build your kernel with: > > ''make CONFIG_DEBUG_SECTION_MISMATCH=y'' > > make[1]: *** [__modpost] Error 1 > > make: *** [modules] Error 2 > > > > I also tried make ARCH=x86 menuconfig, but it did not work. There are a > few > > threads of the same problem, which did not find the actual answer. My > > machine is Ubuntu8 32-bit(2.6.24-19), i5 processor, XEN-4.0.2. I got > stuck > > for several days:( > > > > I really appreciate your help :_) > > > > Best, > > Liu > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > > > -- > Todd Deshane > http://www.linkedin.com/in/deshantm > http://www.xen.org/products/cloudxen.html > http://runningxen.com/ >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Jul 6, 2011 at 9:07 PM, John Liu <bradevuu@gmail.com> wrote:> Hi Todd, > > I will compile dom0 using other Linux distributions(e.g, Fedora) to see if > it works. I referenced those threads you mentioned, but seems no final > solution. One possible cause related to hardware is I use a new type of DELL > OPTIPLEX 790. It''s very weird that when installing Ubuntu9 and 10, the > screen is totally messed up so that I can only install Ubuntu8(11.04 is too > new). > > Also the error of intel-agp.c is common which can be seen in dozens of > threads, and I''m not sure replacing it with another intel-agp.c is a > standard way.Which kernel did you use? I just tried with http://git.kernel.org/?p=linux/kernel/git/jeremy/xen.git , xen/stable-2.6.32.x, with some additional patches*, and it works for me, so you should be able to try that. -- Fajar *The additional patch is basically a diff between kernel 2.6.32.41 and kernel 2.6.32.42, which you can create yourself, or see http://pastebin.com/306FFfhT . It should not matter for intel-agp.c problem as the patch doesn''t change it, and I was able to build it successfully (I use CONFIG_AGP_INTEL=y). _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed, Jul 6, 2011 at 9:45 PM, Fajar A. Nugraha <list@fajar.net> wrote:> I just tried with > http://git.kernel.org/?p=linux/kernel/git/jeremy/xen.git , > xen/stable-2.6.32.x, with some additional patches*, and it works for > me, so you should be able to try that.... and here''s my .config for additional reference: http://pastebin.com/NAV1iUG3 No errors, build successful. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Adding xen-users back to the CC On Wed, Jul 6, 2011 at 1:05 PM, John Liu <bradevuu@gmail.com> wrote:> Sorry I forget to attach the file.. > > 2011/7/6 John Liu <bradevuu@gmail.com>: >> Hi, >> >> I think I may figure out the problem of ''undefined reference to >> xen_pcpu_index''. >> >> According to the patch from >> http://www.gossamer-threads.com/lists/xen/devel/182063 , >> xen_pcpu_index function is added in processor_xen.c. However, the >> git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git >> xen/stable-2.6.32.x does not do that patch (but pcpu.h is patched). I >> attach the original processor_xen.c for reference. >> >> >> -- >> Liu >> >> 2011/7/5 Todd Deshane <todd.deshane@xen.org>: >>> On Tue, Jul 5, 2011 at 10:06 PM, Joh Liu <bradevuu@gmail.com> wrote: >>>> Hi all, >>>> >>>> I follow instructions(http://wiki.xensource.com/xenwiki/XenParavirtOps) to >>>> build XEN and dom0 kernel. Building XEN has no problem, but there is an >>>> error which I cannot solve to build dom0 kernel. The brief instructions for >>>> building dom0 are get linux-2.6-xen code from git and make ARCH=x86_64 >>>> menuconfig, finally generate kernel.deb. (I did every step exactly as the >>>> web page says) >>>> >>> >>> So you are pulling from this tree? >>> >>> git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git >>> >>> There are several references to "xen_pcpu_index" >>> http://xen.markmail.org/search/?q=xen_pcpu_index#query:xen_pcpu_index+page:1+mid:vts33haap3utumue+state:results >>> http://xen.markmail.org/search/?q=xen_pcpu_index#query:xen_pcpu_index+page:1+mid:x6m2gyjm3qtnttsc+state:results >>> etc. >>> >>> It seems that it has gone unresolved a few times. I''m not sure if this >>> a known issue or what type of problem it is. Can you provide more >>> details about your hardware or any other information that may be >>> relevant? >>> >>> You may want to review >>> http://wiki.xensource.com/xenwiki/AskingXenDevelQuestions as there may >>> be developers that would be able to shed some light on this issue. >>> Maybe with the information in the other threads you will gain some >>> insights about the problem. >>> >>> Thanks, >>> Todd >>> >>>> >>>> First, compiling linux-2.6-xen is ok. >>>> (One error is drivers/char/apg/intel-agp.c, which is solved by replacing a >>>> new version of intel-agp.c) >>>> >>>> Then when executing (in order to generate .deb) >>>> >>>> sudo fakeroot make-kpkg --initrd --append-to-version=-pv kernel-image >>>> kernel-headers >>>> >>>> an error occurs: >>>> >>>> Errpr: Kernel: arch/x86/boot/bzImage is ready (#1) >>>> Building modules, stage 2. >>>> MODPOST 1477 modules >>>> ERROR: "xen_pcpu_index" [drivers/acpi/processor.ko] undefined! >>>> WARNING: modpost: Found 1 section mismatch(es). >>>> To see full details build your kernel with: >>>> ''make CONFIG_DEBUG_SECTION_MISMATCH=y'' >>>> make[1]: *** [__modpost] Error 1 >>>> make: *** [modules] Error 2 >>>> >>>> I also tried make ARCH=x86 menuconfig, but it did not work. There are a few >>>> threads of the same problem, which did not find the actual answer. My >>>> machine is Ubuntu8 32-bit(2.6.24-19), i5 processor, XEN-4.0.2. I got stuck >>>> for several days:( >>>> >>>> I really appreciate your help :_) >>>> >>>> Best, >>>> Liu >>>> >>>> _______________________________________________ >>>> Xen-users mailing list >>>> Xen-users@lists.xensource.com >>>> http://lists.xensource.com/xen-users >>>> >>> >>> >>> >>> -- >>> Todd Deshane >>> http://www.linkedin.com/in/deshantm >>> http://www.xen.org/products/cloudxen.html >>> http://runningxen.com/ >>> >> >> >> >> -- >> Liu >> > > > > -- > Liu >-- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html http://runningxen.com/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users