Re: [PATCH] menu_entry: Disable cursor during update_screen()

2016-02-12 Thread Andrei Borzenkov
31.01.2016 18:02, Thomas Huth пишет: > Hi, > > On 30.01.2016 08:33, Andrei Borzenkov wrote: >> 29.01.2016 17:26, Thomas Huth пишет: >>> When running grub in a VGA console of a KVM pseries guest on PowerPC, >>> you can see the cursor sweeping over the whole line when entering a >>> character in ed

Re: [RFC] grub-install: allow none or multiple install devices on PC BIOS

2016-02-12 Thread Andrei Borzenkov
12.05.2015 18:22, Michael Chang пишет: > On Tue, May 12, 2015 at 02:57:00PM +0300, Andrei Borzenkov wrote: >> В Tue, 12 May 2015 18:52:22 +0800 >> Michael Chang пишет: >> >>> On Fri, May 08, 2015 at 09:53:41PM +0300, Andrei Borzenkov wrote: There are two main applications. 1. Omit i

Re: [RFC] grub-install: allow none or multiple install devices on PC BIOS

2016-02-12 Thread Andrei Borzenkov
12.02.2016 21:41, Vladimir 'φ-coder/phcoder' Serbinenko пишет: > On 08.05.2015 20:53, Andrei Borzenkov wrote: >> There are two main applications. >> >> 1. Omit install device to create generic image intended for chainloading >> from other master loader. Such image can be put on any device (or file

Re: [PATCH] efidisk: prevent errors from diskfilter scan of removable drives

2016-02-12 Thread Andrei Borzenkov
12.02.2016 17:49, Vladimir 'φ-coder/phcoder' Serbinenko пишет: > On 12.02.2016 15:38, Andrei Borzenkov wrote: >> On Fri, Feb 12, 2016 at 5:29 PM, Vladimir 'φ-coder/phcoder' Serbinenko >> wrote: >>> On 05.02.2016 17:56, Andrei Borzenkov wrote: Map EFI_NO_MEDIA to GRUB_ERR_OUT_OF_RANGE that is

Re: [PATCH] ieee1275: prevent buffer over-read

2016-02-12 Thread Andrei Borzenkov
13.02.2016 03:50, Eric Snowberg пишет: > Prevent buffer over-read in grub_machine_mmap_iterate. This was > causing phys_base from being calculated properly. This then > caused the wrong value to be placed in ramdisk_image within > struct linux_hdrs. Which prevented the ramdisk from loading on > boo

Re: [PATCH] sparc64: OBP available region contains grub. Start at grub_phys_end

2016-02-12 Thread Andrei Borzenkov
13.02.2016 00:35, Eric Snowberg пишет: > OBP available region contains grub. Start at grub_phys_end. > > This prevents a problem where grub was being overwritten since > grub_phys_start does not start at a zero offset within the memory > map. > > Signed-off-by: Eric Snowberg > --- > grub-core/l

[PATCH] ieee1275: prevent buffer over-read

2016-02-12 Thread Eric Snowberg
Prevent buffer over-read in grub_machine_mmap_iterate. This was causing phys_base from being calculated properly. This then caused the wrong value to be placed in ramdisk_image within struct linux_hdrs. Which prevented the ramdisk from loading on boot. Newer SPARC systems contain more than 8 avail

Re: [PATCH] sparc64: OBP available region contains grub. Start at grub_phys_end

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Committed, thanks On 12.02.2016 22:35, Eric Snowberg wrote: > OBP available region contains grub. Start at grub_phys_end. > > This prevents a problem where grub was being overwritten since > grub_phys_start does not start at a zero offset within the memory > map. > > Signed-off-by: Eric Snowberg

[PATCH] sparc64: OBP available region contains grub. Start at grub_phys_end

2016-02-12 Thread Eric Snowberg
OBP available region contains grub. Start at grub_phys_end. This prevents a problem where grub was being overwritten since grub_phys_start does not start at a zero offset within the memory map. Signed-off-by: Eric Snowberg --- grub-core/loader/sparc64/ieee1275/linux.c | 16 1

Re: [PATCH v3 2/3] i386: Add support for loading from android bootimg

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 12.02.2016 20:34, Shea Levy wrote: > OK. Do you have any thoughts on how best to extract the "load the kernel > and set the command line to a specific string" functionality out of the > linux command, then? > At first I wanted to write a short skeleton patch to show what I meant but once skelet

Re: [PATCH v2 2/6] relocator: Do not use memory region if its starta is smaller than size

2016-02-12 Thread Daniel Kiper
On Fri, Feb 12, 2016 at 07:12:52PM +, Vladimir 'phcoder' Serbinenko wrote: > Le ven. 12 févr. 2016 20:01, Daniel Kiper a > écrit : > > > On Fri, Feb 12, 2016 at 03:57:59PM +0100, Vladimir 'φ-coder/phcoder' > > Serbinenko wrote: > > > Applied, thanks > > > > Thanks but here > > http://lists.gnu

Re: [PATCH v3 2/3] i386: Add support for loading from android bootimg

2016-02-12 Thread Shea Levy
OK. Do you have any thoughts on how best to extract the "load the kernel and set the command line to a specific string" functionality out of the linux command, then? On 2016-02-12 14:22, Vladimir 'phcoder' Serbinenko wrote: Separate command is better as it keeps interface tidy and unpoluted, d

Re: [PATCH v3 2/3] i386: Add support for loading from android bootimg

2016-02-12 Thread Vladimir 'phcoder' Serbinenko
Separate command is better as it keeps interface tidy and unpoluted, decreasing maintenance cost. Correct me if I'm wrong but it should be clear from context of file is Android image or usual linux one? Le ven. 12 févr. 2016 20:19, Shea Levy a écrit : > On 2016-02-12 12:50, Vladimir 'φ-coder/phc

Re: [PATCH v3 2/3] i386: Add support for loading from android bootimg

2016-02-12 Thread Shea Levy
On 2016-02-12 12:50, Vladimir 'φ-coder/phcoder' Serbinenko wrote: On 08.02.2016 21:47, Shea Levy wrote: --- grub-core/loader/i386/linux.c | 27 +-- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/grub-core/loader/i386/linux.c b/grub-core/loader/i386/linux

Re: [PATCH v2 2/6] relocator: Do not use memory region if its starta is smaller than size

2016-02-12 Thread Vladimir 'phcoder' Serbinenko
Le ven. 12 févr. 2016 20:01, Daniel Kiper a écrit : > On Fri, Feb 12, 2016 at 03:57:59PM +0100, Vladimir 'φ-coder/phcoder' > Serbinenko wrote: > > Applied, thanks > > Thanks but here > http://lists.gnu.org/archive/html/grub-devel/2015-07/msg00100.html > Andrei and later here > http://lists.gnu.or

Re: [PATCH v2 2/6] relocator: Do not use memory region if its starta is smaller than size

2016-02-12 Thread Daniel Kiper
On Fri, Feb 12, 2016 at 03:57:59PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > Applied, thanks Thanks but here http://lists.gnu.org/archive/html/grub-devel/2015-07/msg00100.html Andrei and later here http://lists.gnu.org/archive/html/grub-devel/2015-11/msg00110.html you expressed conc

Re: [RFC] grub-install: allow none or multiple install devices on PC BIOS

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 08.05.2015 20:53, Andrei Borzenkov wrote: > There are two main applications. > > 1. Omit install device to create generic image intended for chainloading > from other master loader. Such image can be put on any device (or file > system) and will still be able to find its $root. Currently even w

Re: [PATCH] core/partmap: Add El Torito boot catalog parsing

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 20.06.2015 12:16, Ross Lagerwall wrote: > GRUB calculates a boot device based on the device path given by the > firmware so: Please reread what Andrei said. GRUB combines stored prefix and information from firmware. Syntax ()/boot/grub will always use the full disk signature.asc Description:

Re: CMOS_ADDRESS of ThinkVantage

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 02.08.2015 17:28, Andreas Freimuth wrote: > Hi, > > i just wonted to contribute the correct CMOS address for the > ThinkVantage-Button for: > > LENOVO ThinkPad T410s (2912W1C) > > it is: > > GRUB_BUTTON_CMOS_ADDRESS=101:3 > Added to docs, thank you > Regards > > > > _

Re: [PATCH v3 1/3] Add helper functions to interact with android bootimg disks.

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 12.02.2016 18:42, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 08.02.2016 21:47, Shea Levy wrote: >> Currently, the kernel, command line, and ramdisk can be extracted. >> --- >> grub-core/Makefile.core.def| 1 + >> grub-core/loader/android_bootimg.c | 253 >>

Re: [PATCH v3 2/3] i386: Add support for loading from android bootimg

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 08.02.2016 21:47, Shea Levy wrote: > --- > grub-core/loader/i386/linux.c | 27 +-- > 1 file changed, 21 insertions(+), 6 deletions(-) > > diff --git a/grub-core/loader/i386/linux.c b/grub-core/loader/i386/linux.c > index fddcc46..6ab8d3c 100644 > --- a/grub-core/loader/

Re: [PATCH v3 1/3] Add helper functions to interact with android bootimg disks.

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 08.02.2016 21:47, Shea Levy wrote: > Currently, the kernel, command line, and ramdisk can be extracted. > --- > grub-core/Makefile.core.def| 1 + > grub-core/loader/android_bootimg.c | 253 > + > include/grub/android_bootimg.h | 12 ++ > 3 fil

Re: Dead link in TODO file

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 12.02.2016 09:28, Thomas Huth wrote: > > Hi, > > The TODO file in the grub repository refers to Grub Wiki at > http://grub.enbug.org/ ... however, that URL seems to be invalid > nowadays. Is there a new Wiki somewhere else? > Unfortunately not unless we find a volunteer to host it > Thomas

Re: [PATCH] grub-install: Include all decompressor modules in pvxen core image.

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 07.12.2014 18:26, Andrei Borzenkov wrote: > В Sun, 07 Dec 2014 18:18:47 +0100 > Vladimir 'φ-coder/phcoder' Serbinenko пишет: > >> On 30.11.2014 14:34, Ian Campbell wrote: >>> On Sun, 2014-11-30 at 11:51 +, Ian Campbell wrote: On Sun, 2014-11-30 at 14:31 +0300, Andrei Borzenkov wrote:

Re: [PATCH 4/5] Cryptomount support plain dm-crypt

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 29.06.2015 16:30, John Lane wrote: > From: John Lane > > --- > grub-core/disk/cryptodisk.c | 298 > +++- > grub-core/disk/luks.c | 195 + > include/grub/cryptodisk.h | 8 ++ > 3 files changed, 310 insertions(+), 19

Re: [PATCH v2 2/6] relocator: Do not use memory region if its starta is smaller than size

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Applied, thanks On 20.07.2015 16:35, Daniel Kiper wrote: > malloc_in_range() should not use memory region if its starta is smaller > than size. Otherwise target wraps around and points to region which is > usually not a RAM, e.g.: > > loader/multiboot.c:93: segment 0: paddr=0x80, memsz=0x3f800

Re: Plain dm-crypt

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 27.10.2015 12:15, Andrei Borzenkov wrote: > On Tue, Oct 27, 2015 at 2:10 PM, Vladimir 'phcoder' Serbinenko > wrote: >> There are patches for it but they will not be integrated as plain dm-crypt >> has no advantages compared to LUKS and cannot be configured reliably when >> device names change a

Re: [PATCH] efidisk: prevent errors from diskfilter scan of removable drives

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 12.02.2016 15:38, Andrei Borzenkov wrote: > On Fri, Feb 12, 2016 at 5:29 PM, Vladimir 'φ-coder/phcoder' Serbinenko > wrote: >> On 05.02.2016 17:56, Andrei Borzenkov wrote: >>> Map EFI_NO_MEDIA to GRUB_ERR_OUT_OF_RANGE that is ignored by diskfilter. >>> This >>> actually matches pretty close (w

Re: [PATCH v2 4/6] xen: add capability to load initrd outside of initial mapping

2016-02-12 Thread Juergen Gross
On 12/02/16 13:24, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 11.02.2016 15:13, Juergen Gross wrote: >> On 11/02/16 13:33, Daniel Kiper wrote: >>> On Thu, Feb 11, 2016 at 08:53:24AM +0100, Juergen Gross wrote: Modern pvops linux kernels support an initrd not covered by the initial

Re: macosx (darwin) fail to boot from Grub2

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
Fixed xnu code. On 28.06.2015 11:45, dan...@msw.it wrote: > Hi friends, > I've just installed successifully Ubuntu 14.04 on iMac 9.1 (Darwin). > > The partitions are so suddivided: > > > |-EFI-FAT32-|---MAC-HFS+---|--/BOOT-EXT4--|/ROOT-EXT4|/HOME-REISERFS-|---SWAP---| > > > >

Re: [PATCH] efidisk: prevent errors from diskfilter scan of removable drives

2016-02-12 Thread Andrei Borzenkov
On Fri, Feb 12, 2016 at 5:29 PM, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 05.02.2016 17:56, Andrei Borzenkov wrote: >> Map EFI_NO_MEDIA to GRUB_ERR_OUT_OF_RANGE that is ignored by diskfilter. This >> actually matches pretty close (we obviously attempt to read outside of media) >> and avoi

Re: [PATCH] efidisk: prevent errors from diskfilter scan of removable drives

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 05.02.2016 17:56, Andrei Borzenkov wrote: > Map EFI_NO_MEDIA to GRUB_ERR_OUT_OF_RANGE that is ignored by diskfilter. This > actually matches pretty close (we obviously attempt to read outside of media) > and avoids adding more error codes. > > This affects only internally initiated scans. If re

Re: [PATCH v2 4/6] xen: add capability to load initrd outside of initial mapping

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 11.02.2016 15:13, Juergen Gross wrote: > On 11/02/16 13:33, Daniel Kiper wrote: >> On Thu, Feb 11, 2016 at 08:53:24AM +0100, Juergen Gross wrote: >>> Modern pvops linux kernels support an initrd not covered by the initial >>> mapping. This capability is flagged by an elf-note. >>> >>> In case th

Re: [PATCH v2 3/6] xen: factor out allocation of page tables into separate function

2016-02-12 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 11.02.2016 13:53, Juergen Gross wrote: > On 11/02/16 13:27, Daniel Kiper wrote: >> On Thu, Feb 11, 2016 at 08:53:23AM +0100, Juergen Gross wrote: >>> Do the allocation of page tables in a separate function. This will >>> allow to do the allocation at different times of the boot preparations >>>

Dead link in TODO file

2016-02-12 Thread Thomas Huth
Hi, The TODO file in the grub repository refers to Grub Wiki at http://grub.enbug.org/ ... however, that URL seems to be invalid nowadays. Is there a new Wiki somewhere else? Thomas ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.or

Re: [PATCH] menu_entry: Disable cursor during update_screen()

2016-02-12 Thread Thomas Huth
2016-01-29 17:26, Thomas Huth wrote: >> When running grub in a VGA console of a KVM pseries guest on PowerPC, >> you can see the cursor sweeping over the whole line when entering a >> character in editor mode. This is visible because grub always refreshes >> the whole line when entering a character

Re: [PATCH v2 4/6] xen: add capability to load initrd outside of initial mapping

2016-02-12 Thread Daniel Kiper
Hey Juergen, On Fri, Feb 12, 2016 at 07:25:02AM +0100, Juergen Gross wrote: [...] > Okay, let me do some cleanup work on the xen loader: > > - add the possibility to call it multiple times (state reset, free the > allocated memory) > - merge all necessary global variables into one state struct