grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Standalone Application in GRUB


From: Parul Aggarwal
Subject: Re: Standalone Application in GRUB
Date: Thu, 31 May 2012 15:33:29 +0530

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.

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?

3. Licensing yes i will check.

Regards,
Parul

On Thu, May 31, 2012 at 3:16 PM, Vladimir 'φ-coder/phcoder' Serbinenko <address@hidden> wrote:
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
> address@hidden
> https://lists.gnu.org/mailman/listinfo/grub-devel



--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


_______________________________________________
Grub-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/grub-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]