Re: 8250 memory mapped UART

2017-02-28 Thread Andrei Borzenkov
please test patches from Matthias Lange https://lists.gnu.org/archive/html/grub-devel/2017-02/msg00104.html On Wed, Mar 1, 2017 at 9:15 AM, Gailu Singh wrote: > Hi Experts, > > I am using GRUB2 on intel apollo lake board. This board does not have IO > mapped uart instead it has 8250 memory mapp

Re: USB3.0 XHCI support on GRUB2

2017-02-28 Thread Andrei Borzenkov
Yes, Bjørn Forsman intended to work on implementation. On Wed, Mar 1, 2017 at 9:14 AM, Gailu Singh wrote: > Hi Experts, > > Is there any development on XHCI support on GRUB2? New Intel boards (e.g. > Apollo Lake) has only XHCI controller so none my USB device (keyboarrd, mass > storage) works on

Fwd: 8250 memory mapped UART

2017-02-28 Thread Gailu Singh
Hi Experts, I am using GRUB2 on intel apollo lake board. This board does not have IO mapped uart instead it has 8250 memory mapped UART. GRUB2 does not recognize memory mapped uart and gives error ("serial port COM0 not found). There is a 8250 memory mapped driver available in coreboot. Is it pos

Fwd: USB3.0 XHCI support on GRUB2

2017-02-28 Thread Gailu Singh
Hi Experts, Is there any development on XHCI support on GRUB2? New Intel boards (e.g. Apollo Lake) has only XHCI controller so none my USB device (keyboarrd, mass storage) works on GRUB2 on this board. If there is any work going on, I can help with testing/development but don't know where to star

Re: grub-probe for nested BSD partition on Linux

2017-02-28 Thread Andrei Borzenkov
01.03.2017 01:05, Lennart Sorensen пишет: > On Tue, Feb 28, 2017 at 09:50:27PM +0300, Andrei Borzenkov wrote: >> 28.02.2017 21:31, Lennart Sorensen пишет: >>> On Tue, Feb 28, 2017 at 08:13:53PM +0300, Andrei Borzenkov wrote: Sorry? vda7 is 256M, how can you suddenly pretend it is 2G?

Re: [PATCH 0/7] efi: improved correctness, arm unification, and cleanup

2017-02-28 Thread Vladimir 'phcoder' Serbinenko
I will review your patches later. There might be some overlap with my "arm" branch. Can you have a look whether it diverges a lot? On Tue, Feb 28, 2017, 14:48 Leif Lindholm wrote: > This patch series is really three different ones, but they unite around > the need for (and the implementation) of

[PATCH 4/7] arm64: make efi linux loader more generic

2017-02-28 Thread Leif Lindholm
In order to enable reuse of the arm64 efi linux loader for arm, change a few function names and macros. Add a global definition of GRUB_PE32_MAGIC in grub/efi/pe32.h. Make the arm64 loader 32/64-bit safe. Also update the arm64 xen loader, since it depends on some of the functions in the linux loa

[PATCH 0/7] efi: improved correctness, arm unification, and cleanup

2017-02-28 Thread Leif Lindholm
This patch series is really three different ones, but they unite around the need for (and the implementation) of more flexible control of memory allocation on UEFI systems. 1: Adding new interfaces - A function for detecting the start address of RAM Since ARM platforms have no standardised memor

[PATCH 2/7] efi: refactor grub_efi_allocate_pages

2017-02-28 Thread Leif Lindholm
Expose a new function, grub_efi_allocate_pages_real(), making it possible to specify allocation type and memory type as supported by the UEFI AllocatePages boot service. Make grub_efi_allocate_pages() a consumer of the new function, maintaining its old functionality. Also delete some left-around

[PATCH 5/7] arm: reuse arm64 linux loader on efi systems

2017-02-28 Thread Leif Lindholm
The original 32-bit arm EFI Linux loader reused the 32-bit Linux loader for U-Boot. However, this meant it was acting in an entirely not UEFI-compliant fashion. Since EFI stub loader support for arm went into upstream Linux for 4.5, we can now reuse the same loader as is used on arm64. This resul

[PATCH 3/7] efi: move fdt helper library

2017-02-28 Thread Leif Lindholm
There is nothing ARM64 (or even ARM) specific about the efi fdt helper library, which is used for locating or overriding a firmware-provided devicetree in a UEFI system - so move it to loader/efi for reuse. Move the fdtload.h include file to grub/efi and move the (at least theoretically) machine d

[PATCH 7/7] efi: change heap allocation type to GRUB_EFI_LOADER_CODE

2017-02-28 Thread Leif Lindholm
With upcoming changes to EDK2, allocations of type EFI_LOADER_DATA may not return regions with execute ability. Since modules are loaded onto the heap, change the heap allocation type to GRUB_EFI_LOADER_CODE in order to permit execution on systems with this feature enabled. Closes: 50420 Signed-o

[PATCH 6/7] efi: restrict arm/arm64 linux loader initrd placement

2017-02-28 Thread Leif Lindholm
The 32-bit arm Linux kernel is built as a zImage, which self-decompresses down to near start of RAM. In order for an initrd/initramfs to be accessible, it needs to be placed within the first ~768MB of RAM. The initrd loader built into the kernel EFI stub restricts this down to 512MB for simplicity

[PATCH 1/7] efi: add grub_efi_get_dram_base() function for arm*

2017-02-28 Thread Leif Lindholm
Since ARM platforms do not have a common memory map, add a helper function that finds the lowest address region with the EFI_MEMORY_WB attribute set in the UEFI memory map. Required for the (32-bit) arm linux loader to restrict the initrd location to where it will be accessible by the kernel at ru

Re: grub-probe for nested BSD partition on Linux

2017-02-28 Thread Lennart Sorensen
On Tue, Feb 28, 2017 at 09:50:27PM +0300, Andrei Borzenkov wrote: > 28.02.2017 21:31, Lennart Sorensen пишет: > > On Tue, Feb 28, 2017 at 08:13:53PM +0300, Andrei Borzenkov wrote: > >> Sorry? vda7 is 256M, how can you suddenly pretend it is 2G? > >> > >> 10:~ # fdisk -l /dev/vda > >> Disk /dev/vda:

Re: grub-probe for nested BSD partition on Linux

2017-02-28 Thread Andrei Borzenkov
28.02.2017 21:31, Lennart Sorensen пишет: > On Tue, Feb 28, 2017 at 08:13:53PM +0300, Andrei Borzenkov wrote: >> Sorry? vda7 is 256M, how can you suddenly pretend it is 2G? >> >> 10:~ # fdisk -l /dev/vda >> Disk /dev/vda: 5 GiB, 5368709120 bytes, 10485760 sectors >> Units: sectors of 1 * 512 = 512

Re: grub-probe for nested BSD partition on Linux (was: [PATCH 1/1] add --partuuid to probe)

2017-02-28 Thread Lennart Sorensen
On Tue, Feb 28, 2017 at 08:13:53PM +0300, Andrei Borzenkov wrote: > Sorry? vda7 is 256M, how can you suddenly pretend it is 2G? > > 10:~ # fdisk -l /dev/vda > Disk /dev/vda: 5 GiB, 5368709120 bytes, 10485760 sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 byte

grub-probe for nested BSD partition on Linux (was: [PATCH 1/1] add --partuuid to probe)

2017-02-28 Thread Andrei Borzenkov
28.02.2017 17:08, Vladimir 'phcoder' Serbinenko пишет: >> >> OK I see, kernel skips BSD partition marked as "unused". >> >> So it appears that kernel always puts special nested partitions after >> normal logical MSDOS partitions, so it will not skew MSDOS partition >> numbers. >> >> [1.529752]

Re: [PATCH 1/1] add --partuuid to probe

2017-02-28 Thread Vladimir 'phcoder' Serbinenko
On Mon, Feb 27, 2017, 20:11 Andrei Borzenkov wrote: > 27.02.2017 21:20, Vladimir 'phcoder' Serbinenko пишет: > > On Mon, Feb 27, 2017, 09:55 Andrei Borzenkov > wrote: > > > >> 27.02.2017 03:37, Vladimir 'phcoder' Serbinenko пишет: > >> ... > >>> This is not NT-style. NT uses partition offset