All of lore.kernel.org
 help / color / mirror / Atom feed
From: liang tang <liang.tang@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: Need some help about the build xen.efi
Date: Thu, 03 Nov 2011 17:59:08 +0800	[thread overview]
Message-ID: <4EB265EC.2050702@oracle.com> (raw)
In-Reply-To: <4EB12AB6020000780005E679@nat28.tlf.novell.com>

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
>

  reply	other threads:[~2011-11-03  9:59 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2011-11-03 10:06     ` Jan Beulich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EB265EC.2050702@oracle.com \
    --to=liang.tang@oracle.com \
    --cc=JBeulich@suse.com \
    --cc=konrad.wilk@oracle.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.