Skip to contentSkip to conversation

Physical memory access (when not running with a manager)

DISCUSSION David Frascone 1 participant 2 messages Oct 11, 2006

lore
Share & tools
lore
#0 lore raw

I'm sure this has an easy answer, but it's been eluding me:

I need grub, when booting, to grab some values from a particular memory address (in flash). My code runs fine, on the platform . .

BUT -- I use the same code to *install* grub from linux, where it can not access the physical memory address. So -- is there any way to have stage2 only access the location when not running under an OS (i.e. when booting)?

-Dave

Signature · 3 lines
David Frascone

                             Oxymoron: Reinvent.
#1 lore raw

The answer is: use the #define GRUB_UTIL.

-Dave

Quoted 8 lines · David Frascone

I'm sure this has an easy answer, but it's been eluding me:

I need grub, when booting, to grab some values from a particular memory address (in flash). My code runs fine, on the platform . .

BUT -- I use the same code to *install* grub from linux, where it can not access the physical memory address. So -- is there any way to have stage2 only access the location when not running under an OS (i.e. when booting)?

-Dave

Signature · 3 lines
David Frascone

                 Waiter, there's no fly in my soup! - Kermit