unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Libreboot error: /boot/grub/i386-coreboot files not found
@ 2015-03-13 11:20 白い熊@相撲道
  2015-03-13 22:27 ` Mark H Weaver
  0 siblings, 1 reply; 3+ messages in thread
From: 白い熊@相撲道 @ 2015-03-13 11:20 UTC (permalink / raw)
  To: guix-devel

I've installed and am running GuixSD on the Gluglug X200.

On boot, Libreboot comes up with its GRUB-like menu, where I select 
"Search for GRUB configuration on internal storage". It then finds the 
GuixSD partition with /boot/grub and you can boot it usinr "Load Config 
from (ahci0,msdosX)".

This then however always reports:

error: file `/boot/grub/i386-coreboot/vbe.mod' not found.
error: file `/boot/grub/i386-coreboot/vga.mod' not found.
error: file `/boot/grub/i386-coreboot/gfxterm.mod' not found.
Press any key to continue...

You can then hit a key and it continues normally, loads the GRUB menu 
and you can boot. So it's more of a nuisance than a crippling error. I'd 
like to get rid of it however.

Of course, there is no i386-coreboot in /boot/grub/, however symlinking 
i386-pc to it, or copying the dir i386-pc to i386-coreboot, has no 
effect. The error still comes up.

How can this be fixed?
-- 
白い熊@相撲道

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

* Re: Libreboot error: /boot/grub/i386-coreboot files not found
  2015-03-13 11:20 Libreboot error: /boot/grub/i386-coreboot files not found 白い熊@相撲道
@ 2015-03-13 22:27 ` Mark H Weaver
  2015-03-13 22:34   ` Mark H Weaver
  0 siblings, 1 reply; 3+ messages in thread
From: Mark H Weaver @ 2015-03-13 22:27 UTC (permalink / raw)
  To: 白い熊@相撲道; +Cc: guix-devel

白い熊@相撲道 <guix-devel_gnu.org@sumou.com> writes:

> I've installed and am running GuixSD on the Gluglug X200.

Excellent!  I'm running GuixSD on a Gluglug X60 :)

> On boot, Libreboot comes up with its GRUB-like menu, where I select
> "Search for GRUB configuration on internal storage". It then finds the
> GuixSD partition with /boot/grub and you can boot it usinr "Load
> Config from (ahci0,msdosX)".
>
> This then however always reports:
>
> error: file `/boot/grub/i386-coreboot/vbe.mod' not found.
> error: file `/boot/grub/i386-coreboot/vga.mod' not found.
> error: file `/boot/grub/i386-coreboot/gfxterm.mod' not found.
> Press any key to continue...
>
> You can then hit a key and it continues normally, loads the GRUB menu
> and you can boot. So it's more of a nuisance than a crippling
> error. I'd like to get rid of it however.
>
> Of course, there is no i386-coreboot in /boot/grub/, however
> symlinking i386-pc to it, or copying the dir i386-pc to i386-coreboot,
> has no effect. The error still comes up.
>
> How can this be fixed?

The plan is to modify Guix to create a /boot/grub/libreboot_grub.cfg
(alongside grub.cfg) that omits everything except for the menu entries
and perhaps also the "set default=0" and "set timeout=1".

With /boot/grub/libreboot_grub.cfg in place, the default GRUB menu entry
in Libreboot will automatically boot GuixSD as long as it's located on
one of the first few partitions of the first disk.

On my own system, I simply made /boot/grub/libreboot_grub.cfg a symlink
to grub.cfg, and ignore the warnings :)

The place to fix this properly is in gnu/system/grub.scm and
gnu/system.scm.  I guess we should add a keyword argument to
'grub-configuration-file' that specifies whether or not to include
#$sugar in the output, and then modify system.scm to create both files.

For now, an easy hack for Libreboot users would be to simply remove the
line in 'grub-configuration-file' that reads "#$sugar", and to create
the /boot/grub/libreboot_grub.cfg --> grub.cfg symlink.

      Mark

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

* Re: Libreboot error: /boot/grub/i386-coreboot files not found
  2015-03-13 22:27 ` Mark H Weaver
@ 2015-03-13 22:34   ` Mark H Weaver
  0 siblings, 0 replies; 3+ messages in thread
From: Mark H Weaver @ 2015-03-13 22:34 UTC (permalink / raw)
  To: 白い熊@相撲道; +Cc: guix-devel

Mark H Weaver <mhw@netris.org> writes:

> 白い熊@相撲道 <guix-devel_gnu.org@sumou.com> writes:
>
>> I've installed and am running GuixSD on the Gluglug X200.
>
> Excellent!  I'm running GuixSD on a Gluglug X60 :)
>
>> On boot, Libreboot comes up with its GRUB-like menu, where I select
>> "Search for GRUB configuration on internal storage". It then finds the
>> GuixSD partition with /boot/grub and you can boot it usinr "Load
>> Config from (ahci0,msdosX)".
>>
>> This then however always reports:
>>
>> error: file `/boot/grub/i386-coreboot/vbe.mod' not found.
>> error: file `/boot/grub/i386-coreboot/vga.mod' not found.
>> error: file `/boot/grub/i386-coreboot/gfxterm.mod' not found.
>> Press any key to continue...
>>
>> You can then hit a key and it continues normally, loads the GRUB menu
>> and you can boot. So it's more of a nuisance than a crippling
>> error. I'd like to get rid of it however.
>>
>> Of course, there is no i386-coreboot in /boot/grub/, however
>> symlinking i386-pc to it, or copying the dir i386-pc to i386-coreboot,
>> has no effect. The error still comes up.
>>
>> How can this be fixed?
>
> The plan is to modify Guix to create a /boot/grub/libreboot_grub.cfg
> (alongside grub.cfg) that omits everything except for the menu entries
> and perhaps also the "set default=0" and "set timeout=1".

Another approach would be to build a version of GRUB that's built to run
under coreboot, and then to create a /boot/grub/libreboot_grub.cfg that
chainloads our own grub.  This approach has some advantages, most
notably that we wouldn't need to assume that the GRUB included in
Libreboot includes all of the modules we need.

       Mark

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

end of thread, other threads:[~2015-03-13 22:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-13 11:20 Libreboot error: /boot/grub/i386-coreboot files not found 白い熊@相撲道
2015-03-13 22:27 ` Mark H Weaver
2015-03-13 22:34   ` Mark H Weaver

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).