GRUB2: Difference between revisions

From coreboot
Jump to navigation Jump to search
Line 5: Line 5:
== Status ==
== Status ==


Patrick Georgi has been working on GRUB2 for LinuxBIOS during the Google Summer of Code 2007.
Patrick Georgi has been working on GRUB2 for coreboot during the Google Summer of Code 2007. He made an [http://linuxbios.org/~oxygene/lbgrub2-20070820-1.tar.bz2 original code submission] on August 20th 2007.


Find his code here:
This work was subsequently rejected by the GRUB project, and was eventually re-implemented by Robert Millan, one of the GRUB project members. The re-implementation lacks a couple of fundamental features. As of the time of this writing, it can not be loaded in coreboot v2.  
* http://linuxbios.org/~oxygene/lbgrub2-20070820-1.tar.bz2


A significant amount of work has been put into GRUB2 in our [http://www.coreboot.org:8889/ GRUB2 monotone repository].


=== Todo ===
=== Todo ===
* Fix lbgrub2 for LinuxBIOS v2
** Mainstream GRUB2's grub-mkimage needs to put the program headers right after the elf header [http://www.mail-archive.com/grub-devel@gnu.org/msg03547.html  (Fix available)].
** GRUB2's grub-mkimage needs to put the program headers right after the elf header [http://www.mail-archive.com/grub-devel@gnu.org/msg03547.html  (Fix available)].
* USB stack integration (in progress)
* USB stack integration
* See more information in the "[http://tracker.linuxbios.org/trac/coreboot/milestone/Port%20GRUB2%20to%20LinuxBIOS Porting GRUB2  to coreboot]" milestone in the coreboot issue tracker.
* Fix larfs to reflect latest changes
* export console device in linuxbios table and read this entry in grub2.
* See more information at http://tracker.linuxbios.org/trac/LinuxBIOS/milestone/Port%20GRUB2%20to%20LinuxBIOS


== How to build GRUB2 as a payload ==
== How to build GRUB2 as a payload ==

Revision as of 21:54, 12 March 2008

Introduction

Our long term goal is to replace the common coreboot payload FILO with a coreboot-capable version of GRUB2.

Status

Patrick Georgi has been working on GRUB2 for coreboot during the Google Summer of Code 2007. He made an original code submission on August 20th 2007.

This work was subsequently rejected by the GRUB project, and was eventually re-implemented by Robert Millan, one of the GRUB project members. The re-implementation lacks a couple of fundamental features. As of the time of this writing, it can not be loaded in coreboot v2.

A significant amount of work has been put into GRUB2 in our GRUB2 monotone repository.

Todo

    • Mainstream GRUB2's grub-mkimage needs to put the program headers right after the elf header (Fix available).
  • USB stack integration (in progress)
  • See more information in the "Porting GRUB2 to coreboot" milestone in the coreboot issue tracker.

How to build GRUB2 as a payload

$ # build lbgrub2:
$ # target/target_alias assume that you use i386-elf-gcc
$ configure --with-platform=linuxbios --prefix=$PWD/installed 
$ make && make install
$ $PWD/installed/bin/grub-mkimage -o core.img normal fat iso9660 ext2 pc atadisk rom lar ls cat cmp hello help serial terminal test configfile multiboot boot loopback

How to help?

Contact Stefan Reinauer or the LinuxBIOS mailing list for more information.