From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Standalone Application in GRUB
Date: Thu, 31 May 2012 11:46:05 +0200 [thread overview]
Message-ID: <4FC73DDD.1000909@gmail.com> (raw)
In-Reply-To: <CAEcpi1KmRTmu22Uhyn2ASLFU=v7wgDri6fYEV5uJke+aZQaqew@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]
On 31.05.2012 08:44, Parul Aggarwal wrote:
> Hello,
>
> I have a standalone application which I want to run in GRUB environment
> i.e. for e.g at GRUB prompt. So the flow would be I enter grub prompt
> and from there run my standalone application binary. By adding multiboot
> header to the binary I am able to do that.
>
> Now in my application I want to access GRUB functions for e.g.
> grub_printf(), so when I add this to my application and run the
> application hangs. Can anyone suggest how to access GRUB functions from
> my application? Is it possible?
>
No. GRUB does a harakiri after launching its payload. No functions is
available after boot.
> What is the method defined in GRUB to run a custom application which
> uses grub functions? Is grub modules the way or we can go with
> standalone binary?
>
Only GRUB modules can use GRUB functions. But be sure that:
1) You compile it together with the rest of GRUB for dependency tracking
(see also how grub-extras does it)
2) Make sure that your module is under GPLv3+. You can distribute it
dual-licensed under GPLv3+ and something else if you wish but GPLv3+ has
to be one of available licenses.
> Please suggest.
>
> Thanks,
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
next prev parent reply other threads:[~2012-05-31 9:46 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 [this message]
2012-05-31 10:03 ` Parul Aggarwal
2012-05-31 10:26 ` Vladimir 'φ-coder/phcoder' Serbinenko
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=4FC73DDD.1000909@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.