From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Sa1xZ-0005H6-Ph for mharc-grub-devel@gnu.org; Thu, 31 May 2012 05:46:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sa1xU-0005Gv-N3 for grub-devel@gnu.org; Thu, 31 May 2012 05:46:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sa1xR-0001oP-OL for grub-devel@gnu.org; Thu, 31 May 2012 05:46:20 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:42993) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sa1xR-0001nW-FL for grub-devel@gnu.org; Thu, 31 May 2012 05:46:17 -0400 Received: by wefh52 with SMTP id h52so606652wef.0 for ; Thu, 31 May 2012 02:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=T4aFgo/eCJxaGUy7pPM+DoOxxn2+5RokFF+1lXfg+Uc=; b=kVcoxUQlXv9j+DEFF5ifX+jlmH7GOX31AlRaOYKDjeQ3hT+czfZeLHPJHl2OCfPYRB ySLUuml6UPx/HvGzvSQ+0fAAmccCNMBAGlJ3FBoiZb58Qw873go5JeKmdbZo5m29luK1 ZP8kaEXRFQBaaqYGK9hEmJsLdKmf05uDi77XTTBXMI14bhdn7aOBNqu201mCpQtHA+JV ehQNmpdoC7oV6nVBWD1X7i7dYLlD6Kiha0+TKKE1p+hfaqAnYO9rP9T4clKnreg0gje2 IXuhY0RvRNZ2zwaxlVAxzNYz1qIh9l0D85B/LSSnB1U9xu9JAG+FGJdCztSXu5pZ5u73 FYtg== Received: by 10.216.194.195 with SMTP id m45mr1302415wen.8.1338457575476; Thu, 31 May 2012 02:46:15 -0700 (PDT) Received: from debian.x201.phnet (59-232.197-178.cust.bluewin.ch. [178.197.232.59]) by mx.google.com with ESMTPS id fl2sm4756885wib.2.2012.05.31.02.46.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 May 2012 02:46:14 -0700 (PDT) Message-ID: <4FC73DDD.1000909@gmail.com> Date: Thu, 31 May 2012 11:46:05 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: Standalone Application in GRUB References: In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig7E9863A66F2D694DB2750B16" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.169 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2012 09:46:25 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7E9863A66F2D694DB2750B16 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 31.05.2012 08:44, Parul Aggarwal wrote: > Hello, >=20 > 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 multiboo= t > header to the binary I am able to do that. >=20 > 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? >=20 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? >=20 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. >=20 > Thanks, >=20 >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig7E9863A66F2D694DB2750B16 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk/HPd0ACgkQNak7dOguQgnvJgEAgAnnBSWZMLuzIIJCyXTzboPG x4/QAXO2gaT6u8nwDsQBAJGCdMY1bnrpxVxf9maoKEa7I8SBNqRMGZPvjlU4/WV6 =sgxb -----END PGP SIGNATURE----- --------------enig7E9863A66F2D694DB2750B16--