All of lore.kernel.org
 help / color / mirror / Atom feed
* Need some help about the build xen.efi
@ 2011-10-31 14:10 liang tang
  2011-10-31 16:15 ` Konrad Rzeszutek Wilk
  2011-11-02 10:34 ` Jan Beulich
  0 siblings, 2 replies; 5+ messages in thread
From: liang tang @ 2011-10-31 14:10 UTC (permalink / raw)
  To: Jan Beulich, xen-devel, Konrad Rzeszutek Wilk


[-- Attachment #1.1: Type: text/plain, Size: 719 bytes --]

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.


[-- Attachment #1.2: Type: text/html, Size: 1746 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need some help about the build xen.efi
  2011-10-31 14:10 Need some help about the build xen.efi liang tang
@ 2011-10-31 16:15 ` Konrad Rzeszutek Wilk
  2011-11-02 10:34 ` Jan Beulich
  1 sibling, 0 replies; 5+ messages in thread
From: Konrad Rzeszutek Wilk @ 2011-10-31 16:15 UTC (permalink / raw)
  To: liang tang; +Cc: xen-devel, Jan Beulich

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need some help about the build xen.efi
  2011-10-31 14:10 Need some help about the build xen.efi liang tang
  2011-10-31 16:15 ` Konrad Rzeszutek Wilk
@ 2011-11-02 10:34 ` Jan Beulich
  2011-11-03  9:59   ` liang tang
  1 sibling, 1 reply; 5+ messages in thread
From: Jan Beulich @ 2011-11-02 10:34 UTC (permalink / raw)
  To: liang tang; +Cc: xen-devel, Konrad Rzeszutek Wilk

>>> On 31.10.11 at 15:10, liang tang <liang.tang@oracle.com> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need some help about the build xen.efi
  2011-11-02 10:34 ` Jan Beulich
@ 2011-11-03  9:59   ` liang tang
  2011-11-03 10:06     ` Jan Beulich
  0 siblings, 1 reply; 5+ messages in thread
From: liang tang @ 2011-11-03  9:59 UTC (permalink / raw)
  To: Jan Beulich; +Cc: xen-devel, Konrad Rzeszutek Wilk

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<liang.tang@oracle.com>  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
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Need some help about the build xen.efi
  2011-11-03  9:59   ` liang tang
@ 2011-11-03 10:06     ` Jan Beulich
  0 siblings, 0 replies; 5+ messages in thread
From: Jan Beulich @ 2011-11-03 10:06 UTC (permalink / raw)
  To: liang tang; +Cc: xen-devel, Konrad Rzeszutek Wilk

>>> On 03.11.11 at 10:59, liang tang <liang.tang@oracle.com> wrote:
> 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");

You can't PrintStr() anymore after ExitBootServices().

> if I mark //status = efi_bs->ExitBootServices(ImageHandle, map_key); xen 
> will halt in here load the domain 0.

And you also can't just arbitrarily remove code and expect things to
still work.

> 
>      if ( (rc = bzimage_parse(image_base, &image_start, &image_len)) != 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-11-03 10:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-31 14:10 Need some help about the build xen.efi liang tang
2011-10-31 16:15 ` Konrad Rzeszutek Wilk
2011-11-02 10:34 ` Jan Beulich
2011-11-03  9:59   ` liang tang
2011-11-03 10:06     ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.