WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: Need some help about the build xen.efi

To: Jan Beulich <JBeulich@xxxxxxxx>
Subject: [Xen-devel] Re: Need some help about the build xen.efi
From: liang tang <liang.tang@xxxxxxxxxx>
Date: Thu, 03 Nov 2011 17:59:08 +0800
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Delivery-date: Thu, 03 Nov 2011 03:03:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4EB12AB6020000780005E679@xxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Oracle Corporation
References: <4EAEAC4B.4000004@xxxxxxxxxx> <4EB12AB6020000780005E679@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.23) Gecko/20110920 Thunderbird/3.1.15
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@xxxxxxxxxx>  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


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

<Prev in Thread] Current Thread [Next in Thread>