* Xen support for native EFI boot
@ 2012-03-01 20:40 Cihula, Joseph
2012-03-02 8:06 ` Jan Beulich
0 siblings, 1 reply; 8+ messages in thread
From: Cihula, Joseph @ 2012-03-01 20:40 UTC (permalink / raw)
To: Xen-devel, Jan Beulich; +Cc: Keir Fraser (keir@xen.org), Wei, Gang
Can someone provide instructions and the necessary environment/toolchain support needed to get Xen to build and boot on a native EFI system (i.e. with no CSM/legacy support)?
Joe
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Xen support for native EFI boot
2012-03-01 20:40 Xen support for native EFI boot Cihula, Joseph
@ 2012-03-02 8:06 ` Jan Beulich
2012-03-02 8:22 ` Keir Fraser
0 siblings, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2012-03-02 8:06 UTC (permalink / raw)
To: Joseph Cihula; +Cc: Keir Fraser (keir@xen.org), Gang Wei, xen-devel
[-- Attachment #1: Type: text/plain, Size: 1067 bytes --]
>>> On 01.03.12 at 21:40, "Cihula, Joseph" <joseph.cihula@intel.com> wrote:
> Can someone provide instructions and the necessary environment/toolchain
> support needed to get Xen to build and boot on a native EFI system (i.e. with
> no CSM/legacy support)?
gcc must be 4.5.x or newer (I'd recommend not trying anything below
4.6.x, as I'm unaware of anyone ever having tried that, and I can't
exclude that there are bugs in the relevant code that was newly added
in 4.5.0).
ld must support linking native 64-bit EFI applications, which so far no
released binutils version does. The single relevant change that's
necessary for this to work in 2.21 can be taken from
http://www.sourceware.org/ml/binutils/2011-05/msg00131.html (but
there's at least one other non-essential adjustment in case you want
to do anything with the generated binary that involves its symbol
table).
Next, a suitably enabled Dom0 kernel is needed.
Finally, a config file needs to be placed alongside the xen*.efi
binary; I'm attaching a simplistic example.
Jan
[-- Attachment #2: xen.cfg --]
[-- Type: application/octet-stream, Size: 193 bytes --]
[global]
default=sle11sp2
[sle11sp2]
options=console=vga,com1 com1=57600 loglvl=all noreboot
kernel=vmlinuz-2.6.32.43-0.4-xen ignore_loglevel #earlyprintk=xen
ramdisk=initrd-2.6.32.43-0.4-xen
[-- Attachment #3: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Xen support for native EFI boot
2012-03-02 8:06 ` Jan Beulich
@ 2012-03-02 8:22 ` Keir Fraser
2012-03-02 8:48 ` Jan Beulich
0 siblings, 1 reply; 8+ messages in thread
From: Keir Fraser @ 2012-03-02 8:22 UTC (permalink / raw)
To: Jan Beulich, Joseph Cihula; +Cc: Gang Wei, xen-devel
On 02/03/2012 08:06, "Jan Beulich" <JBeulich@suse.com> wrote:
>>>> On 01.03.12 at 21:40, "Cihula, Joseph" <joseph.cihula@intel.com> wrote:
>> Can someone provide instructions and the necessary environment/toolchain
>> support needed to get Xen to build and boot on a native EFI system (i.e. with
>> no CSM/legacy support)?
>
> gcc must be 4.5.x or newer (I'd recommend not trying anything below
> 4.6.x, as I'm unaware of anyone ever having tried that, and I can't
> exclude that there are bugs in the relevant code that was newly added
> in 4.5.0).
>
> ld must support linking native 64-bit EFI applications, which so far no
> released binutils version does. The single relevant change that's
> necessary for this to work in 2.21 can be taken from
> http://www.sourceware.org/ml/binutils/2011-05/msg00131.html (but
> there's at least one other non-essential adjustment in case you want
> to do anything with the generated binary that involves its symbol
> table).
Has that patch been picked up by the maintainers?
-- Keir
> Next, a suitably enabled Dom0 kernel is needed.
>
> Finally, a config file needs to be placed alongside the xen*.efi
> binary; I'm attaching a simplistic example.
>
> Jan
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Xen support for native EFI boot
2012-03-02 8:22 ` Keir Fraser
@ 2012-03-02 8:48 ` Jan Beulich
2012-03-02 8:57 ` Keir Fraser
0 siblings, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2012-03-02 8:48 UTC (permalink / raw)
To: Keir Fraser, Joseph Cihula; +Cc: Gang Wei, xen-devel
>>> On 02.03.12 at 09:22, Keir Fraser <keir.xen@gmail.com> wrote:
> On 02/03/2012 08:06, "Jan Beulich" <JBeulich@suse.com> wrote:
>
>>>>> On 01.03.12 at 21:40, "Cihula, Joseph" <joseph.cihula@intel.com> wrote:
>>> Can someone provide instructions and the necessary environment/toolchain
>>> support needed to get Xen to build and boot on a native EFI system (i.e.
> with
>>> no CSM/legacy support)?
>>
>> gcc must be 4.5.x or newer (I'd recommend not trying anything below
>> 4.6.x, as I'm unaware of anyone ever having tried that, and I can't
>> exclude that there are bugs in the relevant code that was newly added
>> in 4.5.0).
>>
>> ld must support linking native 64-bit EFI applications, which so far no
>> released binutils version does. The single relevant change that's
>> necessary for this to work in 2.21 can be taken from
>> http://www.sourceware.org/ml/binutils/2011-05/msg00131.html (but
>> there's at least one other non-essential adjustment in case you want
>> to do anything with the generated binary that involves its symbol
>> table).
>
> Has that patch been picked up by the maintainers?
Oh, yes, I committed it a few days after sending (the mail thread above
even includes the approval).
Jan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Xen support for native EFI boot
2012-03-02 8:48 ` Jan Beulich
@ 2012-03-02 8:57 ` Keir Fraser
2012-03-02 9:06 ` Jan Beulich
0 siblings, 1 reply; 8+ messages in thread
From: Keir Fraser @ 2012-03-02 8:57 UTC (permalink / raw)
To: Jan Beulich, Joseph Cihula; +Cc: Gang Wei, xen-devel
On 02/03/2012 08:48, "Jan Beulich" <JBeulich@suse.com> wrote:
>>>> On 02.03.12 at 09:22, Keir Fraser <keir.xen@gmail.com> wrote:
>> On 02/03/2012 08:06, "Jan Beulich" <JBeulich@suse.com> wrote:
>>
>>>>>> On 01.03.12 at 21:40, "Cihula, Joseph" <joseph.cihula@intel.com> wrote:
>>>> Can someone provide instructions and the necessary environment/toolchain
>>>> support needed to get Xen to build and boot on a native EFI system (i.e.
>> with
>>>> no CSM/legacy support)?
>>>
>>> gcc must be 4.5.x or newer (I'd recommend not trying anything below
>>> 4.6.x, as I'm unaware of anyone ever having tried that, and I can't
>>> exclude that there are bugs in the relevant code that was newly added
>>> in 4.5.0).
>>>
>>> ld must support linking native 64-bit EFI applications, which so far no
>>> released binutils version does. The single relevant change that's
>>> necessary for this to work in 2.21 can be taken from
>>> http://www.sourceware.org/ml/binutils/2011-05/msg00131.html (but
>>> there's at least one other non-essential adjustment in case you want
>>> to do anything with the generated binary that involves its symbol
>>> table).
>>
>> Has that patch been picked up by the maintainers?
>
> Oh, yes, I committed it a few days after sending (the mail thread above
> even includes the approval).
Ah, so I see. I didn't know you had commit rights to binutils. :-)
Looks like a binutils release must be about due, and that would include it?
-- Keir
> Jan
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Xen support for native EFI boot
2012-03-02 8:57 ` Keir Fraser
@ 2012-03-02 9:06 ` Jan Beulich
2012-03-02 10:57 ` Keir Fraser
0 siblings, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2012-03-02 9:06 UTC (permalink / raw)
To: Keir Fraser, Joseph Cihula; +Cc: Gang Wei, xen-devel
>>> On 02.03.12 at 09:57, Keir Fraser <keir.xen@gmail.com> wrote:
> On 02/03/2012 08:48, "Jan Beulich" <JBeulich@suse.com> wrote:
>
>>>>> On 02.03.12 at 09:22, Keir Fraser <keir.xen@gmail.com> wrote:
>>> On 02/03/2012 08:06, "Jan Beulich" <JBeulich@suse.com> wrote:
>>>
>>>>>>> On 01.03.12 at 21:40, "Cihula, Joseph" <joseph.cihula@intel.com> wrote:
>>>>> Can someone provide instructions and the necessary environment/toolchain
>>>>> support needed to get Xen to build and boot on a native EFI system (i.e.
>>> with
>>>>> no CSM/legacy support)?
>>>>
>>>> gcc must be 4.5.x or newer (I'd recommend not trying anything below
>>>> 4.6.x, as I'm unaware of anyone ever having tried that, and I can't
>>>> exclude that there are bugs in the relevant code that was newly added
>>>> in 4.5.0).
>>>>
>>>> ld must support linking native 64-bit EFI applications, which so far no
>>>> released binutils version does. The single relevant change that's
>>>> necessary for this to work in 2.21 can be taken from
>>>> http://www.sourceware.org/ml/binutils/2011-05/msg00131.html (but
>>>> there's at least one other non-essential adjustment in case you want
>>>> to do anything with the generated binary that involves its symbol
>>>> table).
>>>
>>> Has that patch been picked up by the maintainers?
>>
>> Oh, yes, I committed it a few days after sending (the mail thread above
>> even includes the approval).
>
> Ah, so I see. I didn't know you had commit rights to binutils. :-)
>
> Looks like a binutils release must be about due, and that would include it?
See my later second reply - I forgot that there already was one.
Jan
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Xen support for native EFI boot
2012-03-02 9:06 ` Jan Beulich
@ 2012-03-02 10:57 ` Keir Fraser
0 siblings, 0 replies; 8+ messages in thread
From: Keir Fraser @ 2012-03-02 10:57 UTC (permalink / raw)
To: Jan Beulich, Keir Fraser, Joseph Cihula; +Cc: Gang Wei, xen-devel
On 02/03/2012 09:06, "Jan Beulich" <JBeulich@suse.com> wrote:
>>>> Has that patch been picked up by the maintainers?
>>>
>>> Oh, yes, I committed it a few days after sending (the mail thread above
>>> even includes the approval).
>>
>> Ah, so I see. I didn't know you had commit rights to binutils. :-)
>>
>> Looks like a binutils release must be about due, and that would include it?
>
> See my later second reply - I forgot that there already was one.
Ah, I did wonder. That's good news.
-- Keir
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Xen support for native EFI boot
@ 2012-03-02 8:56 Jan Beulich
0 siblings, 0 replies; 8+ messages in thread
From: Jan Beulich @ 2012-03-02 8:56 UTC (permalink / raw)
To: Keir Fraser, Joseph Cihula; +Cc: Gang Wei, xen-devel
>>> On 02.03.12 at 09:22, Keir Fraser <keir.xen@gmail.com> wrote:
> On 02/03/2012 08:06, "Jan Beulich" <JBeulich@suse.com> wrote:
>
>>>>> On 01.03.12 at 21:40, "Cihula, Joseph" <joseph.cihula@intel.com> wrote:
>>> Can someone provide instructions and the necessary environment/toolchain
>>> support needed to get Xen to build and boot on a native EFI system (i.e.
> with
>>> no CSM/legacy support)?
>>
>> gcc must be 4.5.x or newer (I'd recommend not trying anything below
>> 4.6.x, as I'm unaware of anyone ever having tried that, and I can't
>> exclude that there are bugs in the relevant code that was newly added
>> in 4.5.0).
>>
>> ld must support linking native 64-bit EFI applications, which so far no
>> released binutils version does. The single relevant change that's
>> necessary for this to work in 2.21 can be taken from
>> http://www.sourceware.org/ml/binutils/2011-05/msg00131.html (but
>> there's at least one other non-essential adjustment in case you want
>> to do anything with the generated binary that involves its symbol
>> table).
>
> Has that patch been picked up by the maintainers?
Wait - I was actually wrong: The patch pre-dates 2.22, and hence no
change is needed when using this (newest) binutils version.
Jan
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-03-02 10:57 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-01 20:40 Xen support for native EFI boot Cihula, Joseph
2012-03-02 8:06 ` Jan Beulich
2012-03-02 8:22 ` Keir Fraser
2012-03-02 8:48 ` Jan Beulich
2012-03-02 8:57 ` Keir Fraser
2012-03-02 9:06 ` Jan Beulich
2012-03-02 10:57 ` Keir Fraser
-- strict thread matches above, loose matches on Subject: below --
2012-03-02 8:56 Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).