Hi, I am using centos4 and am trying to build a source kernel dom0 with xen. I cloned a copy of the xen repository and did the following hg clone http://xenbits.xensource.com/xen-2.0.hg cd xen-2.0.hg/xen make dist cd linux-2.6.11-xen0 make ARCH=xen oldconfig make modules make modules_install make install After which point I get the following error : CC drivers/xen/balloon/balloon.o drivers/xen/balloon/balloon.c: In function `balloon_process'': drivers/xen/balloon/balloon.c:218: error: `phys_to_machine_mapping'' undeclared (first use in this function) drivers/xen/balloon/balloon.c:218: error: (Each undeclared identifier is reported only once drivers/xen/balloon/balloon.c:218: error: for each function it appears in.) drivers/xen/balloon/balloon.c:218: error: `INVALID_P2M_ENTRY'' undeclared (first use in this function) drivers/xen/balloon/balloon.c:261: warning: implicit declaration of function `scrub_pages'' drivers/xen/balloon/balloon.c:283: warning: implicit declaration of function `mfn_to_pfn'' make[3]: *** [drivers/xen/balloon/balloon.o] Error 1 make[2]: *** [drivers/xen/balloon] Error 2 make[1]: *** [drivers/xen] Error 2 make: *** [drivers] Error 2 Does anyone know what caused this error? I need to try and build this kernel and get it to boot, I think I also need to build an initrd image. I am doing this correctly or does anyone have any different instructions on how to do this? I am doing this as once I have this working I intend to patch this kernel with drbd and then patch a sub kernel with abi-sco to allow other program I use to work however, currently I am just trying to get the base system to work correctly. Thanks Mark Mark Olliver BSc (Hons) MBCS Thermeon Europe Ltd e-Card www.thermeoneurope.com/e-Card/mpo Email mpo@thermeoneurope.com Web www.thermeoneurope.com Support 0906 515 0908 Int. Support +44 1293 864 341 Support Email support@thermeoneurope.com Support Site www.thermeoneurope.com/rt Sales +44 1293 864 334 Sales Email sales@thermeoneurope.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
You need to run *all* the make commands in the Linux directory with ARCH=xen, not just the configure (the Linux build system doesn''t remember what arch you configured for - you get the same problem building UML with ARCH=um). Cheers, Mark On Monday 22 August 2005 16:50, Mark Olliver wrote:> Hi, > > I am using centos4 and am trying to build a source kernel dom0 with xen. > > I cloned a copy of the xen repository and did the following > hg clone http://xenbits.xensource.com/xen-2.0.hg > cd xen-2.0.hg/xen > make dist > cd linux-2.6.11-xen0 > make ARCH=xen oldconfig > make modules > make modules_install > make install > > After which point I get the following error : > CC drivers/xen/balloon/balloon.o > drivers/xen/balloon/balloon.c: In function `balloon_process'': > drivers/xen/balloon/balloon.c:218: error: `phys_to_machine_mapping'' > undeclared (first use in this function) > drivers/xen/balloon/balloon.c:218: error: (Each undeclared identifier is > reported only once > drivers/xen/balloon/balloon.c:218: error: for each function it appears in.) > drivers/xen/balloon/balloon.c:218: error: `INVALID_P2M_ENTRY'' undeclared > (first use in this function) > drivers/xen/balloon/balloon.c:261: warning: implicit declaration of > function `scrub_pages'' > drivers/xen/balloon/balloon.c:283: warning: implicit declaration of > function `mfn_to_pfn'' > make[3]: *** [drivers/xen/balloon/balloon.o] Error 1 > make[2]: *** [drivers/xen/balloon] Error 2 > make[1]: *** [drivers/xen] Error 2 > make: *** [drivers] Error 2 > > Does anyone know what caused this error? > > I need to try and build this kernel and get it to boot, I think I also need > to build an initrd image. I am doing this correctly or does anyone have any > different instructions on how to do this? > > I am doing this as once I have this working I intend to patch this kernel > with drbd and then patch a sub kernel with abi-sco to allow other program I > use to work however, currently I am just trying to get the base system to > work correctly. > > Thanks > > Mark > > Mark Olliver BSc (Hons) MBCS > Thermeon Europe Ltd > > > e-Card www.thermeoneurope.com/e-Card/mpo > > Email mpo@thermeoneurope.com > Web www.thermeoneurope.com > > Support 0906 515 0908 > Int. Support +44 1293 864 341 > Support Email support@thermeoneurope.com Support Site > www.thermeoneurope.com/rt > > Sales +44 1293 864 334 > Sales Email sales@thermeoneurope.com > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
At a rough guess, you might need to put "ARCH=xen" into each of those "make" statements. Otherwise I would imagine you are building the "regular" kernel modules, etc and not the Xen ones. I.e. make ARCH=xen oldconfig make ARCH=xen modules make ARCH=xen modules_install make ARCH=xen install Well hopefully that''s the problem! :) Cheers Mike> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Mark Olliver > Sent: Tuesday, 23 August 2005 3:51 a.m. > To: xen-users@lists.xensource.com > Subject: [Xen-users] Kernel build help > Sensitivity: Confidential > > > Hi, > > I am using centos4 and am trying to build a source kernel > dom0 with xen. > > I cloned a copy of the xen repository and did the following > hg clone http://xenbits.xensource.com/xen-2.0.hg > cd xen-2.0.hg/xen > make dist > cd linux-2.6.11-xen0 > make ARCH=xen oldconfig > make modules > make modules_install > make install > > After which point I get the following error : > CC drivers/xen/balloon/balloon.o > drivers/xen/balloon/balloon.c: In function `balloon_process'': > drivers/xen/balloon/balloon.c:218: error: > `phys_to_machine_mapping'' undeclared (first use in this function) > drivers/xen/balloon/balloon.c:218: error: (Each undeclared > identifier is reported only once > drivers/xen/balloon/balloon.c:218: error: for each function > it appears in.) > drivers/xen/balloon/balloon.c:218: error: `INVALID_P2M_ENTRY'' > undeclared (first use in this function) > drivers/xen/balloon/balloon.c:261: warning: implicit > declaration of function `scrub_pages'' > drivers/xen/balloon/balloon.c:283: warning: implicit > declaration of function `mfn_to_pfn'' > make[3]: *** [drivers/xen/balloon/balloon.o] Error 1 > make[2]: *** [drivers/xen/balloon] Error 2 > make[1]: *** [drivers/xen] Error 2 > make: *** [drivers] Error 2 > > Does anyone know what caused this error? > > I need to try and build this kernel and get it to boot, I > think I also need to build an initrd image. I am doing this > correctly or does anyone have any different instructions on > how to do this? > > I am doing this as once I have this working I intend to patch > this kernel with drbd and then patch a sub kernel with > abi-sco to allow other program I use to work however, > currently I am just trying to get the base system to work correctly. > > Thanks > > Mark > > Mark Olliver BSc (Hons) MBCS > Thermeon Europe Ltd > > > e-Card www.thermeoneurope.com/e-Card/mpo > > Email mpo@thermeoneurope.com > Web www.thermeoneurope.com > > Support 0906 515 0908 > Int. Support +44 1293 864 341 > Support Email support@thermeoneurope.com Support Site > www.thermeoneurope.com/rt > > Sales +44 1293 864 334 > Sales Email sales@thermeoneurope.com > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ok I am a muppet. Mark W already replied to this... I need to clean my glasses....!> -----Original Message----- > From: xen-users-bounces@lists.xensource.com > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of > Mike Tierney > Sent: Tuesday, 23 August 2005 9:25 a.m. > To: ''Mark Olliver''; xen-users@lists.xensource.com > Subject: RE: [Xen-users] Kernel build help > Sensitivity: Confidential > > At a rough guess, you might need to put "ARCH=xen" into each > of those "make" > statements. Otherwise I would imagine you are building the > "regular" kernel modules, etc and not the Xen ones. > > I.e. > make ARCH=xen oldconfig > make ARCH=xen modules > make ARCH=xen modules_install > make ARCH=xen install > > Well hopefully that''s the problem! :) > > Cheers > Mike > > > -----Original Message----- > > From: xen-users-bounces@lists.xensource.com > > [mailto:xen-users-bounces@lists.xensource.com] On Behalf Of Mark > > Olliver > > Sent: Tuesday, 23 August 2005 3:51 a.m. > > To: xen-users@lists.xensource.com > > Subject: [Xen-users] Kernel build help > > Sensitivity: Confidential > > > > > > Hi, > > > > I am using centos4 and am trying to build a source kernel dom0 with > > xen. > > > > I cloned a copy of the xen repository and did the following > hg clone > > http://xenbits.xensource.com/xen-2.0.hg > > cd xen-2.0.hg/xen > > make dist > > cd linux-2.6.11-xen0 > > make ARCH=xen oldconfig > > make modules > > make modules_install > > make install > > > > After which point I get the following error : > > CC drivers/xen/balloon/balloon.o > > drivers/xen/balloon/balloon.c: In function `balloon_process'': > > drivers/xen/balloon/balloon.c:218: error: > > `phys_to_machine_mapping'' undeclared (first use in this function) > > drivers/xen/balloon/balloon.c:218: error: (Each undeclared > identifier > > is reported only once > > drivers/xen/balloon/balloon.c:218: error: for each function > it appears > > in.) > > drivers/xen/balloon/balloon.c:218: error: `INVALID_P2M_ENTRY'' > > undeclared (first use in this function) > > drivers/xen/balloon/balloon.c:261: warning: implicit declaration of > > function `scrub_pages'' > > drivers/xen/balloon/balloon.c:283: warning: implicit declaration of > > function `mfn_to_pfn'' > > make[3]: *** [drivers/xen/balloon/balloon.o] Error 1 > > make[2]: *** [drivers/xen/balloon] Error 2 > > make[1]: *** [drivers/xen] Error 2 > > make: *** [drivers] Error 2 > > > > Does anyone know what caused this error? > > > > I need to try and build this kernel and get it to boot, I > think I also > > need to build an initrd image. I am doing this correctly or does > > anyone have any different instructions on how to do this? > > > > I am doing this as once I have this working I intend to patch this > > kernel with drbd and then patch a sub kernel with abi-sco to allow > > other program I use to work however, currently I am just > trying to get > > the base system to work correctly. > > > > Thanks > > > > Mark > > > > Mark Olliver BSc (Hons) MBCS > > Thermeon Europe Ltd > > > > > > e-Card www.thermeoneurope.com/e-Card/mpo > > > > Email mpo@thermeoneurope.com > > Web www.thermeoneurope.com > > > > Support 0906 515 0908 > > Int. Support +44 1293 864 341 > > Support Email support@thermeoneurope.com Support Site > > www.thermeoneurope.com/rt > > > > Sales +44 1293 864 334 > > Sales Email sales@thermeoneurope.com > > > > > > > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I am trying to netboot Xen onto an HP DL145. I am running xen-2.0.7 and a 2.6.11.12 based kernel for xen0. Most of the time, what happens is the PXE comes up gets it DHCP address and loads xen.gz and the xen0 kernel just fine. when the xen0 kernel tries to perform DHCP, it times out. From time to time, we get past this point, but then the connection to the NFS server tends to time out. I have run these same bits on other hardware and it seems to work just fine. For some reason, once the xen0 kernel loads, it seems that the ethernet (i have tried both broadcom and intel) device in this box becomes flakey. Any ideas? Any thoughts on where to go from here? _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users