From mboxrd@z Thu Jan 1 00:00:00 1970 From: liang tang Subject: Need some help about the build xen.efi Date: Mon, 31 Oct 2011 22:10:19 +0800 Message-ID: <4EAEAC4B.4000004@oracle.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1200059316==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , "xen-devel@lists.xensource.com" , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============1200059316== Content-Type: multipart/alternative; boundary="------------070605000207030700010909" This is a multi-part message in MIME format. --------------070605000207030700010909 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi,Jan I have download xen unstable tree which include your efi patch,and try to build xen.efi ,but there only have xen.gz ,don't have xen.efi .I find the file xen\arch\x86\efi\disable have report some error : ld don't support -m i386pep. my gcc version is 4.6.1. if modify the i386pep to elf_x86_64 ,the build can continue ,and report other error --subsystem=10 and --image-base=0xffff82c480000000 unrecognized. do you have any suggestion about that? thank you very much! the detail is follow. ld: unrecognized option '--image-base=0xffff82c480000000' In the xen/arch/x86/efi/disabled ld: unrecognized emulation mode: i386pep Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om liang. --------------070605000207030700010909 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi,Jan
I have download xen unstable tree which include your efi patch,and try to build xen.efi ,but there only have xen.gz ,don't have xen.efi .I find the file xen\arch\x86\efi\disable have report some error : ld don't  support -m i386pep.  my gcc version is 4.6.1.
if modify the i386pep to elf_x86_64 ,the build can continue ,and report other error --subsystem=10 and --image-base=0xffff82c480000000 unrecognized.
do you have any suggestion about that?  thank you very much!

the detail is follow.
ld: unrecognized option '--image-base=0xffff82c480000000'

In the xen/arch/x86/efi/disabled
ld: unrecognized emulation mode: i386pep
Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om

liang.

--------------070605000207030700010909-- --===============1200059316== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1200059316==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: Need some help about the build xen.efi Date: Mon, 31 Oct 2011 12:15:47 -0400 Message-ID: <20111031161547.GA12475@phenom.dumpdata.com> References: <4EAEAC4B.4000004@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <4EAEAC4B.4000004@oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: liang tang Cc: "xen-devel@lists.xensource.com" , Jan Beulich List-Id: xen-devel@lists.xenproject.org On Mon, Oct 31, 2011 at 10:10:19PM +0800, liang tang wrote: > Hi,Jan > I have download xen unstable tree which include your efi patch,and > try to build xen.efi ,but there only have xen.gz ,don't have xen.efi > .I find the file xen\arch\x86\efi\disable have report some error : > ld don't support -m i386pep. my gcc version is 4.6.1. > if modify the i386pep to elf_x86_64 ,the build can continue ,and Right, but that is not correct. The i386pep defines what type of executable the binary will be. You do not want an x86_64 ELF, you want an i386 Portable Executable Program (I think that is what PEP stands for). Google should have some details on how build/install an cross compiler for i386pep. > report other error --subsystem=10 and > --image-base=0xffff82c480000000 unrecognized. > do you have any suggestion about that? thank you very much! > > the detail is follow. > ld: unrecognized option '--image-base=0xffff82c480000000' > > In the xen/arch/x86/efi/disabled > ld: unrecognized emulation mode: i386pep > Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om > > liang. > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: Need some help about the build xen.efi Date: Wed, 02 Nov 2011 10:34:14 +0000 Message-ID: <4EB12AB6020000780005E679@nat28.tlf.novell.com> References: <4EAEAC4B.4000004@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4EAEAC4B.4000004@oracle.com> 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: liang tang Cc: "xen-devel@lists.xensource.com" , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org >>> On 31.10.11 at 15:10, liang tang wrote: > Hi,Jan > I have download xen unstable tree which include your efi patch,and = try=20 > to build xen.efi ,but there only have xen.gz ,don't have xen.efi .I = find=20 > the file xen\arch\x86\efi\disable have report some error : ld don't =20 > support -m i386pep. my gcc version is 4.6.1. Apart from an up-to-date compiler you also need an up-to-date (and properly configured) static linker (binutils 2.22 will be the first = upstream version to have the necessary support). > if modify the i386pep to elf_x86_64 ,the build can continue ,and = report=20 > other error --subsystem=3D10 and --image-base=3D0xffff82c480000000 = unrecognized. > do you have any suggestion about that? thank you very much! >=20 > the detail is follow. > ld: unrecognized option '--image-base=3D0xffff82c480000000' Quite obviously, as it's wrong.. You want an EFI binary, not an ELF one. > In the xen/arch/x86/efi/disabled > ld: unrecognized emulation mode: i386pep > Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux = elf_l1om That just points out what I said above about the ld to use. Jan From mboxrd@z Thu Jan 1 00:00:00 1970 From: liang tang Subject: Re: Need some help about the build xen.efi Date: Thu, 03 Nov 2011 17:59:08 +0800 Message-ID: <4EB265EC.2050702@oracle.com> References: <4EAEAC4B.4000004@oracle.com> <4EB12AB6020000780005E679@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4EB12AB6020000780005E679@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: "xen-devel@lists.xensource.com" , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org Hi,konrad,Jan Thank you very much for your help, now i can build xen.efi and i use basevideo and cfg file kernel=vmlinuz-3.0.0+ ramdisk=initramfs-3.0.0+.img after run xen.efi I got debug message "tangl debug xen loader debug 1" don't got the "tangl debug xen loader debug 2" . PrintStr(L"tangl debug xen loader debug 1\n"); status = efi_bs->ExitBootServices(ImageHandle, map_key); if ( EFI_ERROR(status) ) PrintErrMesg(L"Cannot exit boot services", status); PrintStr(L"tangl debug xen loader debug 2\n"); if I mark //status = efi_bs->ExitBootServices(ImageHandle, map_key); xen will halt in here load the domain 0. if ( (rc = bzimage_parse(image_base, &image_start, &image_len)) != 0 ) return rc; is configure file ok? any idea about that? thank you very much! On 2011-11-2 18:34, Jan Beulich wrote: >>>> On 31.10.11 at 15:10, liang tang wrote: >> Hi,Jan >> I have download xen unstable tree which include your efi patch,and try >> to build xen.efi ,but there only have xen.gz ,don't have xen.efi .I find >> the file xen\arch\x86\efi\disable have report some error : ld don't >> support -m i386pep. my gcc version is 4.6.1. > Apart from an up-to-date compiler you also need an up-to-date (and > properly configured) static linker (binutils 2.22 will be the first upstream > version to have the necessary support). > >> if modify the i386pep to elf_x86_64 ,the build can continue ,and report >> other error --subsystem=10 and --image-base=0xffff82c480000000 unrecognized. >> do you have any suggestion about that? thank you very much! >> >> the detail is follow. >> ld: unrecognized option '--image-base=0xffff82c480000000' > Quite obviously, as it's wrong.. You want an EFI binary, not an ELF > one. > >> In the xen/arch/x86/efi/disabled >> ld: unrecognized emulation mode: i386pep >> Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om > That just points out what I said above about the ld to use. > > Jan > From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: Need some help about the build xen.efi Date: Thu, 03 Nov 2011 10:06:24 +0000 Message-ID: <4EB275B0020000780005EABE@nat28.tlf.novell.com> References: <4EAEAC4B.4000004@oracle.com> <4EB12AB6020000780005E679@nat28.tlf.novell.com> <4EB265EC.2050702@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4EB265EC.2050702@oracle.com> 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: liang tang Cc: "xen-devel@lists.xensource.com" , Konrad Rzeszutek Wilk List-Id: xen-devel@lists.xenproject.org >>> On 03.11.11 at 10:59, liang tang wrote: > Hi,konrad,Jan > Thank you very much for your help, now i can build xen.efi and i use=20 > basevideo and cfg file > kernel=3Dvmlinuz-3.0.0+ > ramdisk=3Dinitramfs-3.0.0+.img >=20 > after run xen.efi I got debug message "tangl debug xen loader debug = 1"=20 > don't got the "tangl debug xen loader debug 2" . > PrintStr(L"tangl debug xen loader debug 1\n"); > status =3D efi_bs->ExitBootServices(ImageHandle, map_key); > if ( EFI_ERROR(status) ) > PrintErrMesg(L"Cannot exit boot services", status); >=20 > PrintStr(L"tangl debug xen loader debug 2\n"); You can't PrintStr() anymore after ExitBootServices(). > if I mark //status =3D efi_bs->ExitBootServices(ImageHandle, map_key); = xen=20 > will halt in here load the domain 0. And you also can't just arbitrarily remove code and expect things to still work. >=20 > if ( (rc =3D bzimage_parse(image_base, &image_start, &image_len)) = !=3D 0 ) > return rc; > is configure file ok? Looks like it is (otherwise you would see some sort of error message). > any idea about that? If you're having real problems, the may be connected to the EFI implementation on your system and/or the EFI version being too old (no minimum version was established so far, but it may well be that some things aren't working as expected in older versions). I take it that native Linux boots okay on that system? Jan