* efibootmgr not working on xen-unstable booted on uefi system @ 2012-05-29 11:39 Fantu 2012-05-29 12:03 ` Jan Beulich 0 siblings, 1 reply; 8+ messages in thread From: Fantu @ 2012-05-29 11:39 UTC (permalink / raw) To: xen-devel I have installed dom0 Wheezy 64 bit on Dell PowerEdge T310 with kernel from package and xen-unstable. System is in Uefi mode and booted with grub-efi-amd64. Booting without xen efibootmgr works, while with xen not, efivars kernel module is loaded but show this message: efibootmgr Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables. Try 'modprobe efivars' as root. If you need some additional info please notify me, thanks for any reply. -- View this message in context: http://xen.1045712.n5.nabble.com/efibootmgr-not-working-on-xen-unstable-booted-on-uefi-system-tp5709153.html Sent from the Xen - Dev mailing list archive at Nabble.com. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: efibootmgr not working on xen-unstable booted on uefi system 2012-05-29 11:39 efibootmgr not working on xen-unstable booted on uefi system Fantu @ 2012-05-29 12:03 ` Jan Beulich [not found] ` <4FC4CA9E.4030700@tiscali.it> 0 siblings, 1 reply; 8+ messages in thread From: Jan Beulich @ 2012-05-29 12:03 UTC (permalink / raw) To: Fantu; +Cc: xen-devel >>> On 29.05.12 at 13:39, Fantu <fantonifabio@tiscali.it> wrote: > I have installed dom0 Wheezy 64 bit on Dell PowerEdge T310 with kernel from > package and xen-unstable. System is in Uefi mode and booted with > grub-efi-amd64. In -unstable, you shouldn't use any boot manager (other than EFI's build in one) to boot Xen - neither GrUB or elilo are suitable, as for making use of EFI runtime services you need to boot xen.efi instead of xen.gz. > Booting without xen efibootmgr works, while with xen not, efivars kernel > module is loaded but show this message: > efibootmgr > Fatal: Couldn't open either sysfs or procfs directories for accessing EFI > variables. > Try 'modprobe efivars' as root. Presumably the module loads nevertheless, but without the necessary underlying infrastructure it won't be able to do any runtime calls, and hence wouldn't set up anything under /sys or /proc. Jan ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <4FC4CA9E.4030700@tiscali.it>]
* Re: efibootmgr not working on xen-unstable booted on uefi system [not found] ` <4FC4CA9E.4030700@tiscali.it> @ 2012-05-29 13:21 ` Jan Beulich [not found] ` <4FC4D0EB.50507@tiscali.it> 0 siblings, 1 reply; 8+ messages in thread From: Jan Beulich @ 2012-05-29 13:21 UTC (permalink / raw) To: fantonifabio; +Cc: xen-devel >>> On 29.05.12 at 15:09, Fabio Fantoni <fantonifabio@tiscali.it> wrote: > Thanks for reply, I don't have xen.efi in my test build, full xen build > log on attachment. > I see this on log: > EFI support disabled > But I not undestand why and where set it. This is dependent on your tool chain - binutils 2.22 (older versions only if properly patched) and gcc 4.5.x (4.6.x recommended, as 4.5.x was never tested afaict) are the minimum required to make that message go away. (You could have looked at the build logic that produces that message to see what the requirements are.) Jan PS: Please don't drop xen-devel from Cc on conversations like this. ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <4FC4D0EB.50507@tiscali.it>]
* Re: efibootmgr not working on xen-unstable booted on uefi system [not found] ` <4FC4D0EB.50507@tiscali.it> @ 2012-05-29 14:00 ` Jan Beulich 2012-05-30 8:03 ` Fabio Fantoni 0 siblings, 1 reply; 8+ messages in thread From: Jan Beulich @ 2012-05-29 14:00 UTC (permalink / raw) To: fantonifabio; +Cc: xen-devel >>> On 29.05.12 at 15:36, Fabio Fantoni <fantonifabio@tiscali.it> wrote: > Il 29/05/2012 15:21, Jan Beulich ha scritto: >> PS: Please don't drop xen-devel from Cc on conversations like >> this. You dropped xen-devel again. > Thanks for reply, I check binutils and gcc, are installed and right > version seems: >... > 2.22-6 GNU assembler, linker and binary And it also is configured properly (i.e. lists i386pep as supported emulation)? If building xen.efi doesn't work, the first thing to look at is (in the Xen build tree) xen/arch/x86/efi/disabled, which stores any error encountered while checking for the necessary features in compiler in linker). Jan ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: efibootmgr not working on xen-unstable booted on uefi system 2012-05-29 14:00 ` Jan Beulich @ 2012-05-30 8:03 ` Fabio Fantoni 2012-05-30 8:44 ` Jan Beulich 0 siblings, 1 reply; 8+ messages in thread From: Fabio Fantoni @ 2012-05-30 8:03 UTC (permalink / raw) To: Jan Beulich; +Cc: xen-devel [-- Attachment #1.1: Type: text/plain, Size: 1171 bytes --] Il 29/05/2012 16:00, Jan Beulich ha scritto: >>>> On 29.05.12 at 15:36, Fabio Fantoni<fantonifabio@tiscali.it> wrote: >> Il 29/05/2012 15:21, Jan Beulich ha scritto: >>> PS: Please don't drop xen-devel from Cc on conversations like >>> this. > You dropped xen-devel again. > >> Thanks for reply, I check binutils and gcc, are installed and right >> version seems: >> ... >> 2.22-6 GNU assembler, linker and binary > > And it also is configured properly (i.e. lists i386pep as supported > emulation)? If building xen.efi doesn't work, the first thing to look > at is (in the Xen build tree) xen/arch/x86/efi/disabled, which > stores any error encountered while checking for the necessary > features in compiler in linker). > > Jan > > > > ----- > Nessun virus nel messaggio. > Controllato da AVG - www.avg.com > Versione: 2012.0.1913 / Database dei virus: 2425/5030 - Data di rilascio: 29/05/2012 > > > The content of xen/arch/x86/efi/disabled is: ld: unrecognised emulation mode: i386pep Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux elf_l1om elf_k1om How can I do for fix this? [-- Attachment #1.2: Firma crittografica S/MIME --] [-- Type: application/pkcs7-signature, Size: 4497 bytes --] [-- Attachment #2: 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: efibootmgr not working on xen-unstable booted on uefi system 2012-05-30 8:03 ` Fabio Fantoni @ 2012-05-30 8:44 ` Jan Beulich 2012-05-31 9:41 ` Fabio Fantoni 0 siblings, 1 reply; 8+ messages in thread From: Jan Beulich @ 2012-05-30 8:44 UTC (permalink / raw) To: fantonifabio; +Cc: xen-devel >>> On 30.05.12 at 10:03, Fabio Fantoni <fantonifabio@tiscali.it> wrote: > The content of xen/arch/x86/efi/disabled is: > ld: unrecognised emulation mode: i386pep > Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux > elf_l1om elf_k1om > How can I do for fix this? If your distor doesn't offer a suitably configured binutils package, you'll have to build one yourself, I'm afraid. Jan ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: efibootmgr not working on xen-unstable booted on uefi system 2012-05-30 8:44 ` Jan Beulich @ 2012-05-31 9:41 ` Fabio Fantoni 2012-05-31 9:54 ` Jan Beulich 0 siblings, 1 reply; 8+ messages in thread From: Fabio Fantoni @ 2012-05-31 9:41 UTC (permalink / raw) To: Jan Beulich; +Cc: xen-devel [-- Attachment #1.1: Type: text/plain, Size: 1103 bytes --] Il 30/05/2012 10:44, Jan Beulich ha scritto: >>>> On 30.05.12 at 10:03, Fabio Fantoni<fantonifabio@tiscali.it> wrote: >> The content of xen/arch/x86/efi/disabled is: >> ld: unrecognised emulation mode: i386pep >> Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux >> elf_l1om elf_k1om >> How can I do for fix this? > If your distor doesn't offer a suitably configured binutils package, > you'll have to build one yourself, I'm afraid. > > Jan > > > > ----- > Nessun virus nel messaggio. > Controllato da AVG - www.avg.com > Versione: 2012.0.1913 / Database dei virus: 2425/5032 - Data di rilascio: 29/05/2012 > > > Currently I'm testing xen-unstable on Debian Wheezy, I installed binutils-mingw-w64 package that provide binutils with i386pep emulation, I tried to rebuild but I had same error on xen/arch/x86/efi/disabled. The ld binary provided with this package has a different name, what can I do to make xen use it instead of the default one? (/usr/bin/ld) I loocked for $(LD) definition used in makefile but I didn't found it. Thanks for any reply. [-- Attachment #1.2: Firma crittografica S/MIME --] [-- Type: application/pkcs7-signature, Size: 4497 bytes --] [-- Attachment #2: 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: efibootmgr not working on xen-unstable booted on uefi system 2012-05-31 9:41 ` Fabio Fantoni @ 2012-05-31 9:54 ` Jan Beulich 0 siblings, 0 replies; 8+ messages in thread From: Jan Beulich @ 2012-05-31 9:54 UTC (permalink / raw) To: fantonifabio; +Cc: xen-devel >>> On 31.05.12 at 11:41, Fabio Fantoni <fantonifabio@tiscali.it> wrote: > Il 30/05/2012 10:44, Jan Beulich ha scritto: >>>>> On 30.05.12 at 10:03, Fabio Fantoni<fantonifabio@tiscali.it> wrote: >>> The content of xen/arch/x86/efi/disabled is: >>> ld: unrecognised emulation mode: i386pep >>> Supported emulations: elf_x86_64 elf32_x86_64 elf_i386 i386linux >>> elf_l1om elf_k1om >>> How can I do for fix this? >> If your distor doesn't offer a suitably configured binutils package, >> you'll have to build one yourself, I'm afraid. >> >> Jan >> >> >> >> ----- >> Nessun virus nel messaggio. >> Controllato da AVG - www.avg.com >> Versione: 2012.0.1913 / Database dei virus: 2425/5032 - Data di rilascio: > 29/05/2012 >> >> >> > Currently I'm testing xen-unstable on Debian Wheezy, I installed > binutils-mingw-w64 package that provide binutils with i386pep emulation, > I tried to rebuild but I had same error on xen/arch/x86/efi/disabled. > The ld binary provided with this package has a different name, what can > I do to make xen use it instead of the default one? (/usr/bin/ld) > I loocked for $(LD) definition used in makefile but I didn't found it. > Thanks for any reply. Setting LD can be done on the make command line (you shouldn't modify any sources for this). I don't think, however, that using a mingw targeting binary will work, as the *same* ld will be used to link the normal ELF executable (ending up as xen.gz). You should use a Linux linker (i.e. defaulting to ELF) that *also* supports i386pep. (Building binutils is, btw, a pretty simple process, so I don't see why you're not just doing that - all customization you need is adding "--enable-targets=x86_64-pep" to the configure script invocation command line.) Jan ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-05-31 9:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-29 11:39 efibootmgr not working on xen-unstable booted on uefi system Fantu
2012-05-29 12:03 ` Jan Beulich
[not found] ` <4FC4CA9E.4030700@tiscali.it>
2012-05-29 13:21 ` Jan Beulich
[not found] ` <4FC4D0EB.50507@tiscali.it>
2012-05-29 14:00 ` Jan Beulich
2012-05-30 8:03 ` Fabio Fantoni
2012-05-30 8:44 ` Jan Beulich
2012-05-31 9:41 ` Fabio Fantoni
2012-05-31 9:54 ` 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.