On Wed, Dec 28, 2016 at 10:35 AM, Samuthira Pandian T <samuthira.t@aricent.com> wrote:

Hi Team,

               I need to pass some debug parameter value from coreboot (romstage.c) file to grub configuration. Actually i need to set some flag in coreboot and need to read it from grub.cfg file. Is there any way to pass some parameters from coreboot to grub. If so, kindly let me know for the procedure.


It appears grub has some support for cbmem (the cbmemc command).

You can also add a cbmem entry for your debug parameter and pass it up the stack. Here is a recent example of how to do that.

--
David Hendricks (dhendrix)
Systems Software Engineer, Google Inc.