| a8122410 | 05-Jun-2016 |
Alexander Graf <agraf@suse.de> |
efi_loader: Add DM_VIDEO support
Some systems are starting to shift to support DM_VIDEO which exposes the frame buffer through a slightly different interface.
This is a poor man's effort to support
efi_loader: Add DM_VIDEO support
Some systems are starting to shift to support DM_VIDEO which exposes the frame buffer through a slightly different interface.
This is a poor man's effort to support the dm video interface instead of the lcd one. We still only support a single display device.
Signed-off-by: Alexander Graf <agraf@suse.de> [trini: Remove fb_size / fb_base as they were not used] Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 74c16acc | 27-May-2016 |
Alexander Graf <agraf@suse.de> |
efi_loader: Don't allocate from memory holes
When a payload calls our memory allocator with the exact address hint, we happily allocate memory from completely unpopulated regions. Payloads however e
efi_loader: Don't allocate from memory holes
When a payload calls our memory allocator with the exact address hint, we happily allocate memory from completely unpopulated regions. Payloads however expect this to only succeed if they would be allocating from free conventional memory.
This patch makes the logic behind those checks a bit more obvious and ensures that we always allocate from known good free conventional memory regions if we want to allocate ram.
Reported-by: Jonathan Gray <jsg@jsg.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| edcef3ba | 02-Jun-2016 |
Alexander Graf <agraf@suse.de> |
efi_loader: Move to normal debug infrastructure
We introduced special "DEBUG_EFI" defines when the efi loader support was new. After giving it a bit of thought, turns out we really didn't have to -
efi_loader: Move to normal debug infrastructure
We introduced special "DEBUG_EFI" defines when the efi loader support was new. After giving it a bit of thought, turns out we really didn't have to - the normal #define DEBUG infrastructure works well enough for efi loader as well.
So this patch switches to the common debug() and #define DEBUG way of printing debug information.
Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| 91b86e21 | 26-May-2016 |
Marek Vasut <marex@denx.de> |
lib: Enable private libgcc by default
This patch decouples U-Boot binary from the toolchain on systems where private libgcc is available. Instead of pulling in functions provided by the libgcc from
lib: Enable private libgcc by default
This patch decouples U-Boot binary from the toolchain on systems where private libgcc is available. Instead of pulling in functions provided by the libgcc from the toolchain, U-Boot will use it's own set of libgcc functions. These functions are usually imported from Linux kernel, which also uses it's own libgcc functions instead of the ones provided by the toolchain.
This patch solves a rather common problem. The toolchain can usually generate code for many variants of target architecture and often even different endianness. The libgcc on the other hand is usually compiled for one particular configuration and the functions provided by it may or may not be suited for use in U-Boot. This can manifest in two ways, either the U-Boot fails to compile altogether and linker will complain or, in the much worse case, the resulting U-Boot will build, but will misbehave in very subtle and hard to debug ways.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Masahiro Yamada <yamada.masahiro@socionext.com> Cc: Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| c9cfac5d | 18-May-2016 |
Alexander Graf <agraf@suse.de> |
efi_loader: gop: Don't expose fb address
Recently Linux is gaining support for efifb on AArch64 and that support actually tries to make use of the frame buffer address we expose to it via gop.
Whil
efi_loader: gop: Don't expose fb address
Recently Linux is gaining support for efifb on AArch64 and that support actually tries to make use of the frame buffer address we expose to it via gop.
While this wouldn't be bad in theory, in practice it means a few bad things
1) We expose 16bit frame buffers as 32bit today 2) Linux can't deal with overlapping non-PCI regions between efifb and a different frame buffer driver
For now, let's just disable exposure of the frame buffer address. Most OSs that get booted will have a native driver for the GPU anyway.
Signed-off-by: Alexander Graf <agraf@suse.de> [trini: Remove line_len entirely] Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 5c411d88 | 14-May-2016 |
Simon Glass <sjg@chromium.org> |
tiny-printf: Support snprintf()
Add a simple version of this function for SPL. It does not check the buffer size as this would add to the code size.
Signed-off-by: Simon Glass <sjg@chromium.org> Re
tiny-printf: Support snprintf()
Add a simple version of this function for SPL. It does not check the buffer size as this would add to the code size.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de>
show more ...
|
| 6a3bf3e5 | 11-Apr-2016 |
Eric Nelson <eric@nelint.com> |
gunzip.c: use block layer for writes
Call blk_dwrite to ensure that the block cache is notified if enabled and remove build breakage when CONFIG_BLK is enabled.
Signed-off-by: Eric Nelson <eric@nel
gunzip.c: use block layer for writes
Call blk_dwrite to ensure that the block cache is notified if enabled and remove build breakage when CONFIG_BLK is enabled.
Signed-off-by: Eric Nelson <eric@nelint.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
show more ...
|
| cee752fa | 11-Apr-2016 |
Alexander Graf <agraf@suse.de> |
efi_loader: Expose ascending efi memory map
The EFI memory map does not need to be in a strict order, but 32bit grub2 does expect it to be ascending. If it's not, it may try to allocate memory insid
efi_loader: Expose ascending efi memory map
The EFI memory map does not need to be in a strict order, but 32bit grub2 does expect it to be ascending. If it's not, it may try to allocate memory inside the U-Boot data memory region.
We already sort the memory map in descending order, so let's just reverse it when we pass it to a payload.
Signed-off-by: Alexander Graf <agraf@suse.de> Tested-by: Andreas Färber <afaerber@suse.de>
show more ...
|
| ecbe1a07 | 11-Apr-2016 |
Alexander Graf <agraf@suse.de> |
efi_loader: Increase path string to 32 characters
Whenever we want to tell our payload about a path, we limit ourselves to a reasonable amount of characters. So far we only passed in device names -
efi_loader: Increase path string to 32 characters
Whenever we want to tell our payload about a path, we limit ourselves to a reasonable amount of characters. So far we only passed in device names - exceeding 16 chars was unlikely there.
However by now we also pass real file path information, so let's increase the limit to 32 characters. That way common paths like "boot/efi/bootaa64.efi" fit just fine.
Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| 8c3df0bf | 11-Apr-2016 |
Alexander Graf <agraf@suse.de> |
efi_loader: Add el torito support
When loading an el torito image, uEFI exposes said image as a raw block device to the payload.
Let's do the same by creating new block devices with added offsets f
efi_loader: Add el torito support
When loading an el torito image, uEFI exposes said image as a raw block device to the payload.
Let's do the same by creating new block devices with added offsets for the respective el torito partitions.
Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|