Re: Detecting running platform (specifically EFI) during runtime?

2013-01-05 Thread Keshav P R
On Sat, Jan 5, 2013 at 2:58 PM, Andrey Borzenkov wrote: > Is it possible to check at run-time on which platform we are running. > Specifically, any way to distinguish between EFI and legacy BIOS? > > TIA > > -andrey > > ___ > Grub-devel mailing list > Gr

Re: Add prefix option to grub-mkconfig

2011-10-26 Thread Keshav P R
Hi all, As discussed in #grub irc, I think going the --boot-directory way as phcoder suggested will lead to unnecessary complexity. I would prefer directly mentioning the path to grub_prefix dir, as in case of uefi installs the prefix dir could be anything (/efi/grub, /efi/grub2, /efi/grub_

Re: Add prefix option to grub-mkconfig

2011-10-26 Thread Keshav P R
--S > > Yes, that would be best and gives direct control to the user. For now GRUB_PREFIX denotes that final dir (atleast in the scripts). - Keshav > > Quoting Keshav P R, who wrote the following on Thu, 27 Oct 2011: > > Hi all, >> As discussed in #grub irc, I

Re: Add prefix option to grub-mkconfig

2011-11-22 Thread Keshav P R
(till the actual option to be used is decided). Thanks in advance. Regards. Keshav commit e744fe45dc0f349156d92b37349619cfbaec8f2f Author: Keshav P R Date: Tue Nov 22 14:39:54 2011 +0530 grub-mkconfig: Use outside GRUB_PREFIX if defined diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in ind

Re: [PATCH, RFC, RFT] Mactel integration

2011-11-28 Thread Keshav P R
On Tue, Nov 29, 2011 at 12:04, Seth Goldberg wrote: > > On Nov 28, 2011, at 2:23 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > > > On 28.11.2011 14:25, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > >> Hello all. Based on the information from > http://mjg59.dreamwidth.org/7468.html I intend t

Re: [PATCH, RFC, RFT] Mactel integration

2011-12-01 Thread Keshav P R
2011/11/29 Vladimir 'φ-coder/phcoder' Serbinenko > On 29.11.2011 08:25, Keshav P R wrote: > >> grubx64.efi is installed at /boot/efi/efi/grub2/grubx64.**efi , but the >> modules are located at /boot/grub (which is $grubdir aka prefix set in >> grubx64.efi

grub-mkstandalone fixes

2011-12-04 Thread Keshav P R
Hi, It seems like grub-mkstandalone was copied directly from grub-mkrescue without checking the options. Also there is no way to specify a grub.cfg to be copied as (memdisk)/boot/grub/grub.cfg . The attached patch fixes all of this. Pleas apply it. Regards. Keshav diff --git a/util/grub-mksta

Re: grub-mkstandalone fixes

2011-12-04 Thread Keshav P R
On Sun, Dec 4, 2011 at 15:12, Keshav P R wrote: > Hi, > It seems like grub-mkstandalone was copied directly from grub-mkrescue > without checking the options. Also there is no way to specify a grub.cfg to > be copied as (memdisk)/boot/grub/grub.cfg . The attached patch fixes a

Re: grub-mkstandalone fixes

2011-12-04 Thread Keshav P R
On Sun, Dec 4, 2011 at 15:17, Keshav P R wrote: > On Sun, Dec 4, 2011 at 15:12, Keshav P R wrote: > >> Hi, >> It seems like grub-mkstandalone was copied directly from >> grub-mkrescue without checking the options. Also there is no way to specify >> a grub.cfg

Re: grub-mkstandalone fixes

2011-12-14 Thread Keshav P R
> > On Sun, Dec 4, 2011 at 15:12, Keshav P R wrote: >> >>> Hi, >>> It seems like grub-mkstandalone was copied directly from >>> grub-mkrescue without checking the options. Also there is no way to specify >>> a grub.cfg to be copied as (memd

Re: grub-mkstandalone fixes

2011-12-18 Thread Keshav P R
> > On Sun, Dec 4, 2011 at 15:12, Keshav P R wrote: >>> >>>> Hi, >>>> It seems like grub-mkstandalone was copied directly from >>>> grub-mkrescue without checking the options. Also there is no way to specify >>>> a grub.

grub2 uefi x86_64 standalone image feature request

2011-12-23 Thread Keshav P R
Hi, Is there any way to obtain the path info from which a standalone grub.efi was launched. In case of grub-mkimage uisng --prefix="" results in prefix being set to the dir from which the efi app was launched, but in the standalone grub.efi the prefix is (memdisk)/boot/grub . In (memdisk)/boot/

r3732 compile error with ntldr-img

2011-12-27 Thread Keshav P R
Hi, ntldr-img grub-extras does not compile anymore wiht grub2-bzr. It gives out the error http://pastebin.com/hg1Qwpbq . Please fix this. Thanks in advance. Regards. Keshav ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailma

conf/Makefile.common fails with automake 1.11.2 in autogen.sh step

2011-12-27 Thread Keshav P R
..cf5d822 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2011-12-24 Keshav P R + + Fixes for automake 1.11.2 + + * conf/Makefile.common: Change pkglib_SCRIPTS to pkgdata_SCRIPTS. + * conf/Makefile.common: Change pkglib_DATA to pkgdata_DATA. + * Makefile.am: Likewise. + * gentpl.py: Likewise.

Re: conf/Makefile.common fails with automake 1.11.2 in autogen.sh step

2011-12-28 Thread Keshav P R
On Wed, Dec 28, 2011 at 02:03, Seth Goldberg wrote: > Hi, > > Will this continue to work with older automake as well? > > --S > > > Quoting Keshav P R, who wrote the following on Wed, 28 Dec 2011: > > Hi, >> grub2-bzr r3732 fails to compile in Archlinux x

"not a valid root device" error in UEFI chainloader command

2012-01-17 Thread Keshav P R
Hi, I tried to manually chainload UEFI shell from grub2 terminal in x86_64 firmware. I get > insmod part_gpt > insmod fat > chainloader (hd0,gpt1)/shellx64.efi error: not a valid root device If I use > set pager=1 > set debug=all > chainloader (hd0,gpt1)/shellx64.efi [long rows of text - bu

Re: "not a valid root device" error in UEFI chainloader command

2012-01-18 Thread Keshav P R
2012/1/18 Vladimir 'φ-coder/phcoder' Serbinenko : > On 18.01.2012 03:54, Keshav P R wrote: >> >> Hi, >>      I tried to manually chainload UEFI shell from grub2 terminal in >> x86_64 firmware. I get >> >>> insmod part_gpt >>> insmod f

Re: [PATCH 3/3] Update Linux loader to follow the kernel's preferences

2012-02-05 Thread Keshav P R
Fails to boot x86_64 Archlinux kernels 3.2.2 and 3.3-rc2 - premature end of file error. The first 2 patches work fine (no noticable difference). Only this patch leads to boot failure. Tested in Tianocore UDK DuetPkg 64-bit firmware. Also a syntax error (missing comma) in the very last change in thi

Re: [PATCH 3/3] Update Linux loader to follow the kernel's preferences

2012-02-05 Thread Keshav P R
Tested with bzr r3856 On 06/02/2012, Keshav P R wrote: > Fails to boot x86_64 Archlinux kernels 3.2.2 and 3.3-rc2 - premature > end of file error. The first 2 patches work fine (no noticable > difference). Only this patch leads to boot failure. Tested in > Tianocore UDK DuetPkg 64-

Re: [PATCH V2 3/3] Update Linux loader to follow the kernel's preferences

2012-02-06 Thread Keshav P R
On Mon, Feb 6, 2012 at 21:23, Matthew Garrett wrote: > We should attempt to load the kernel at its preferred address, and if we > can't do that then we should at lesat align it correctly. When doing so > we should also make sure to avoid putting the kernel on top of any regions > being used by the

Re: [PATCH V2 3/3] Update Linux loader to follow the kernel's preferences

2012-02-06 Thread Keshav P R
On Mon, Feb 6, 2012 at 21:58, Keshav P R wrote: > On Mon, Feb 6, 2012 at 21:23, Matthew Garrett wrote: >> We should attempt to load the kernel at its preferred address, and if we >> can't do that then we should at lesat align it correctly. When doing so >> we shou

Re: [PATCH V2 3/3] Update Linux loader to follow the kernel's preferences

2012-02-06 Thread Keshav P R
On Mon, Feb 6, 2012 at 22:08, Matthew Garrett wrote: > On Mon, Feb 06, 2012 at 10:00:30PM +0530, Keshav P R wrote: >> loader/i386/pc/plan9_module-plan9.o `test -f 'loader/i386/pc/plan9.c' >> || echo './'`loader/i386/pc/plan9.c >> loader/i386/pc/plan9.c

Re: [PATCH V2 3/3] Update Linux loader to follow the kernel's preferences

2012-02-06 Thread Keshav P R
On Mon, Feb 6, 2012 at 22:10, Keshav P R wrote: > On Mon, Feb 6, 2012 at 22:08, Matthew Garrett wrote: >> On Mon, Feb 06, 2012 at 10:00:30PM +0530, Keshav P R wrote: >>> loader/i386/pc/plan9_module-plan9.o `test -f 'loader/i386/pc/plan9.c' >>> || echo '

Re: [PATCH V2 3/3] Update Linux loader to follow the kernel's preferences

2012-02-08 Thread Keshav P R
On Mon, Feb 6, 2012 at 22:19, Keshav P R wrote: > On Mon, Feb 6, 2012 at 22:10, Keshav P R wrote: >> On Mon, Feb 6, 2012 at 22:08, Matthew Garrett wrote: >>> On Mon, Feb 06, 2012 at 10:00:30PM +0530, Keshav P R wrote: >>>> loader/i386/pc/plan9_module-plan9.o `t

Re: [PATCH V2 3/3] Update Linux loader to follow the kernel's preferences

2012-02-08 Thread Keshav P R
On Wed, Feb 8, 2012 at 22:26, Keshav P R wrote: > On Mon, Feb 6, 2012 at 22:19, Keshav P R wrote: >> On Mon, Feb 6, 2012 at 22:10, Keshav P R wrote: >>> On Mon, Feb 6, 2012 at 22:08, Matthew Garrett wrote: >>>> On Mon, Feb 06, 2012 at 10:00:30PM +0530, Keshav P

Re: Some improvements to EFI GOP support

2012-02-08 Thread Keshav P R
On Wed, Feb 8, 2012 at 22:21, Matthew Garrett wrote: > Add support for grabbing the EDID on GOP devices, along with picking the > better GOP device when we have more than one (Thanks, Apple). > > > ___ > Grub-devel mailing list > Grub-devel@gnu.org > htt

Request: FS support in search hints

2012-02-14 Thread Keshav P R
Hi, Is it possible to add support for --hints-fs=ext4 (for example) in grub-probe hints_string and to the search command in grub2 env. Whi;e hints speeds up the search for the partition, it does not speed up the fs related tasks due to some time taken for detecing the filesystem of the partitio

Fix for pkgdatadir grub-mkconfig_lib in all util scripts and grub.d scripts

2012-02-20 Thread Keshav P R
or directory File is at /_grub_/grub_uefi_x86_64/share/grub/grub-mkconfig_lib (in my case). Please apply this. Thanks in advance. Regards. Keshav commit bcd05babf6cbcae654824dfcf0feda2992b02cad Author: Keshav P R Date: Mon Feb 20 23:11:03 2012 +0530 Use pkgdatadir and no sed transform for

Re: Fix for pkgdatadir grub-mkconfig_lib in all util scripts and grub.d scripts

2012-02-21 Thread Keshav P R
2012/2/21 Grégoire Sutre : > On 02/20/2012 06:47 PM, Keshav P R wrote: >> >> Hi, >>     Attached patch fixes runtime error due to sed transform used in >> pkgdatadir > > > Maybe we should apply the sed transform to grub-mkconfig_lib's > installatio

Re: [PATCH V3 1/3] Update the Linux boot protocol

2012-02-26 Thread Keshav P R
Status of this patch in grub2 v2.00 code freeze? - Keshav On 09/02/2012, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Go ahead. > On 08.02.2012 17:55, Matthew Garrett wrote: >> The Linux boot header includes information on the kernel's desired load >> address and alignment. Add support for tha

Re: grub-install revamp

2012-02-26 Thread Keshav P R
Status of mactel bless in grub2 v2.00 code freeze? - Keshav On 02/02/2012, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 30.01.2012 03:37, Vladimir 'φ-coder/phcoder' Serbinenko wrote: >> Hello, all. It was a Robert's idea of having grub-install to install >> all available (as in: the ones wh

Re: [PATCH V3 1/3] Update the Linux boot protocol

2012-02-26 Thread Keshav P R
binenko wrote: > On 26.02.2012 22:01, Keshav P R wrote: >> Status of this patch in grub2 v2.00 code freeze? > I have written what have to be fixed first. > And one thing: your idea to put into distro a patch which has known > serious issues that have to be resolved was a very b

Re: [PATCH V3 1/3] Update the Linux boot protocol

2012-02-26 Thread Keshav P R
Coming to the issue of distro package, has the uefi relocator hang (seen in many asus laptops) been fixed in bzr mainline? On 27/02/2012, Keshav P R wrote: > I am asking about 'this' patch (patch 1/3) alone. Not the other two > ones. And the distro package was never updated, it

patch to fix lua grub-extras for mainline r4109

2012-03-04 Thread Keshav P R
Hi, Attached patch fixes "too few arguments" error during compile of grub_lib.c in lua grub-extras. Compile error - /media/Source_Codes/Source_Codes/Boot_Managers/ALL/grub/Source__GIT_BZR/grub__GIT_BZR/grub-core/contrib/lua/grub_lib.c: In function 'grub_lua_add_menu': /media/Source_Codes/Sour