linux-efi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unable to set efi boot variables on 3.10-rc3
@ 2013-05-28 18:40 Felix Braun
  2013-05-29  9:43 ` Matt Fleming
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Braun @ 2013-05-28 18:40 UTC (permalink / raw)
  To: linux-efi-u79uwXL29TY76Z2rM5mHXA

Hi there,

I'm unable to set efi boot variables using efibootmgr 0.6.0 using
kernels 3.9.x (x=0..4) and 3.10-rc3 on an ASUS E45M1-M PRO Board using
the most current firmware (1202). Things worked fine with kernels 3.7.x
(x=4..10). I have not been able to boot 3.8 for unrelated reasons.

When I try to write something to the efi boot variables, I get an kernel
error

# efibootmgr
BootCurrent: 0000
Timeout: 1 seconds
BootOrder: 0000,0002,0003
Boot0000* Linux
Boot0002* Hard Drive
Boot0003* CD/DVD Drive
# efibootmgr -n2
# tail /var/log/messages
 [Firmware Bug]: Broken EFI implementation is returning
MaxVariableSize=0

Mounting efivarfs I have been able to delete variables. I have not found
a way to store things in efivarfs because I can't figure out valid
names.

On boot up, I get a number of the following error messages:

e820: too many entries; ignoring [mem 0x01d8a000-0x01d8ffff]
e820: too many entries; ignoring [mem 0x01d90000-0x01d91fff]
...

is that maybe related?

Any pointers would be welcome. Please copy me to any mail as I am not
subscribed.

Thanks in adcance!
Felix

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

* Re: Unable to set efi boot variables on 3.10-rc3
  2013-05-28 18:40 Unable to set efi boot variables on 3.10-rc3 Felix Braun
@ 2013-05-29  9:43 ` Matt Fleming
       [not found]   ` <20130529094325.GA2004-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Fleming @ 2013-05-29  9:43 UTC (permalink / raw)
  To: Felix Braun
  Cc: linux-efi-u79uwXL29TY76Z2rM5mHXA, Ben Hutchings, Matthew Garrett,
	H. Peter Anvin

On Tue, 28 May, at 08:40:32PM, Felix Braun wrote:
> Hi there,
> 
> I'm unable to set efi boot variables using efibootmgr 0.6.0 using
> kernels 3.9.x (x=0..4) and 3.10-rc3 on an ASUS E45M1-M PRO Board using
> the most current firmware (1202). Things worked fine with kernels 3.7.x
> (x=4..10). I have not been able to boot 3.8 for unrelated reasons.
> 
> When I try to write something to the efi boot variables, I get an kernel
> error
> 
> # efibootmgr
> BootCurrent: 0000
> Timeout: 1 seconds
> BootOrder: 0000,0002,0003
> Boot0000* Linux
> Boot0002* Hard Drive
> Boot0003* CD/DVD Drive
> # efibootmgr -n2
> # tail /var/log/messages
>  [Firmware Bug]: Broken EFI implementation is returning
> MaxVariableSize=0
 
Yeah, this is a common bug on ASUS machines. The 'max' argument to
QueryVariableInfo() isn't filled out correctly.

It sounds like your machine isn't initiating garbage collection. Try
adding the efi_no_storage_paranoia kernel parameter to your kernel
cmdline. 

> On boot up, I get a number of the following error messages:
> 
> e820: too many entries; ignoring [mem 0x01d8a000-0x01d8ffff]
> e820: too many entries; ignoring [mem 0x01d90000-0x01d91fff]
> ...
> 
> is that maybe related?

I doubt that's related but it's certainly not good. Could you paste your
full dmesg? What boot loader are you using?

-- 
Matt Fleming, Intel Open Source Technology Center

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

* Re: Unable to set efi boot variables on 3.10-rc3
       [not found]   ` <20130529094325.GA2004-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
@ 2013-05-30 10:22     ` Felix Braun
  0 siblings, 0 replies; 3+ messages in thread
From: Felix Braun @ 2013-05-30 10:22 UTC (permalink / raw)
  To: Matt Fleming
  Cc: linux-efi-u79uwXL29TY76Z2rM5mHXA, Ben Hutchings, Matthew Garrett,
	H. Peter Anvin

[-- Attachment #1: Type: text/plain, Size: 1376 bytes --]

Hello Matt,

> On Tue, 28 May, at 08:40:32PM, Felix Braun wrote:
> > When I try to write something to the efi boot variables, I get an kernel
> > error
> > 
> > # efibootmgr
> > BootCurrent: 0000
> > Timeout: 1 seconds
> > BootOrder: 0000,0002,0003
> > Boot0000* Linux
> > Boot0002* Hard Drive
> > Boot0003* CD/DVD Drive
> > # efibootmgr -n2
> > # tail /var/log/messages
> >  [Firmware Bug]: Broken EFI implementation is returning
> > MaxVariableSize=0

> It sounds like your machine isn't initiating garbage collection. Try
> adding the efi_no_storage_paranoia kernel parameter to your kernel
> cmdline. 

That seems to have worked. With that parameter added, things work again.
Thank you! How can I prevent the efi storage from filling up? Is there a
way to initiate garbage collection manually?

> > On boot up, I get a number of the following error messages:
> > 
> > e820: too many entries; ignoring [mem 0x01d8a000-0x01d8ffff]
> > e820: too many entries; ignoring [mem 0x01d90000-0x01d91fff]
> > ...

> I doubt that's related but it's certainly not good. Could you paste your
> full dmesg? What boot loader are you using?

It does seem to be related as these error messages go away with
efi_no_storage_paranoia. I'm using EFISTUB to boot linux directly from
the EFI shell.

I'm attaching gzipped dmesg output (with efi_no_storage_paranoia).
Thanks again!

Regards
Felix

[-- Attachment #2: dmesg.gz --]
[-- Type: application/gzip, Size: 17091 bytes --]

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

end of thread, other threads:[~2013-05-30 10:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-28 18:40 Unable to set efi boot variables on 3.10-rc3 Felix Braun
2013-05-29  9:43 ` Matt Fleming
     [not found]   ` <20130529094325.GA2004-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
2013-05-30 10:22     ` Felix Braun

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).