All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Standalone Application in GRUB
Date: Thu, 31 May 2012 12:26:41 +0200	[thread overview]
Message-ID: <4FC74761.6030206@gmail.com> (raw)
In-Reply-To: <CAEcpi1KycuBGHzpx8FoUeN3E=iYUcqusG8TY6+R2y1VFeficLg@mail.gmail.com>

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

On 31.05.2012 12:03, Parul Aggarwal wrote:

> Thanks Vladimir.
> 
> 1. In uboot we can have standalone application (which uses uboot
> functions) compiled and run independently on uboot prompt. As I
> understand from your comments that in GRUB this is not possible. We
> wanted to run the application in a way similar to memtest in GRUB. But
> our application wants to use GRUB functions.

It's not possible because of 3 factors:
- On all platforms except EFI (and EMU) GRUB is prelinked at
predetermined address.
- All protocols except appleloader, EFI chainloader, newer linux, ia64
linux, ppc linux and sparc64 linux also load at predetermined address.
- We don't have a complete control over memory map.
Under such circumstances there is no way to ensure that there is no
overlap between GRUB and payload.
So you can't use GRUB functions.

> 
> 2. If I use dynamically loaded GRUB module for my application, does that
> mean that also I cannot compile module independently. Do i need to
> compile the whole GRUB for that?

Currently dependency tracking is done at compile time and there is no
way to dependency-track 2 sets of modules at the same time. Patches are
welcome.--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

  reply	other threads:[~2012-05-31 10:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-31  6:44 Standalone Application in GRUB Parul Aggarwal
2012-05-31  9:46 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-05-31 10:03   ` Parul Aggarwal
2012-05-31 10:26     ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2012-06-03 19:00       ` Parul Aggarwal
2012-06-03 19:14         ` Vladimir 'φ-coder/phcoder' Serbinenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FC74761.6030206@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.