| a238b0da | 20-Apr-2016 |
Tom Rini <trini@konsulko.com> |
cmd/usb_mass_storage.c: Rework ums_init() ret logic slightly
Previously, ret could be used uninitialized if blk_get_device_part_str() failed. Default to ret being set to -1 so that we always return
cmd/usb_mass_storage.c: Rework ums_init() ret logic slightly
Previously, ret could be used uninitialized if blk_get_device_part_str() failed. Default to ret being set to -1 so that we always return an err up if we have a problem and then invert the logic on testing ums_count as when that is non-zero is the time we can return 0.
Cc: John Tobias <john.tobias.ph@gmail.com> Acked-by: Marek Vasut <marex@denx.de> Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
| ad0c1a3d | 11-Apr-2016 |
Alexander Graf <agraf@suse.de> |
efi_loader: Put fdt into convenient location
The uEFI spec doesn't dictate where the device tree should live at, but legacy 32bit ARM grub2 has some assumptions that it may stay at its place when it
efi_loader: Put fdt into convenient location
The uEFI spec doesn't dictate where the device tree should live at, but legacy 32bit ARM grub2 has some assumptions that it may stay at its place when it's already loaded by the firmware.
So let's put it somewhere where Linux that comes after would happily find it - around the recommended 128MB line.
Signed-off-by: Alexander Graf <agraf@suse.de> Tested-by: Andreas Färber <afaerber@suse.de>
show more ...
|
| 0d9d501f | 11-Apr-2016 |
Alexander Graf <agraf@suse.de> |
efi_loader: Use system fdt as fallback
When the user did not pass any device tree or the boot script didn't find any, let's use the system device tree as last resort to get something the payload (Li
efi_loader: Use system fdt as fallback
When the user did not pass any device tree or the boot script didn't find any, let's use the system device tree as last resort to get something the payload (Linux) may understand.
This means that on systems that use the same device tree for U-Boot and Linux we can just share it and there's no need to manually provide a device tree in the target image.
While at it, also copy and pad the device tree by 64kb to give us space for modifications.
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 ...
|
| c07ad7c0 | 11-Apr-2016 |
Alexander Graf <agraf@suse.de> |
efi_loader: Pass file path to payload
The payload gets information on where it got loaded from. This includes the device as well as file path.
So far we've treated both as the same thing and always
efi_loader: Pass file path to payload
The payload gets information on where it got loaded from. This includes the device as well as file path.
So far we've treated both as the same thing and always gave it the device name. However, in some situations grub2 actually wants to find its loading path to find its configuration file.
So let's split the two semantically separte bits into separate structs and pass the loaded file name into our payload when we load it using "load".
Signed-off-by: Alexander Graf <agraf@suse.de>
show more ...
|
| 96baf368 | 27-Mar-2016 |
Eric Nelson <eric@nelint.com> |
sata: use block layer for sata command
Call blk_dread, blk_dwrite, blk_derase to ensure that the block cache is used if enabled and to remove build breakage when CONFIG_BLK is enabled.
Signed-off-b
sata: use block layer for sata command
Call blk_dread, blk_dwrite, blk_derase to ensure that the block cache is used if enabled and to remove build breakage when CONFIG_BLK is enabled.
Signed-off-by: Eric Nelson <eric@nelint.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| bcfde7ff | 27-Mar-2016 |
Eric Nelson <eric@nelint.com> |
mmc: use block layer in mmc command
Call blk_dread, blk_dwrite, blk_derase to ensure that the block cache is used if enabled and to remove build breakage when CONFIG_BLK is enabled.
Signed-off-by:
mmc: use block layer in mmc command
Call blk_dread, blk_dwrite, blk_derase to ensure that the block cache is used if enabled and to remove build breakage when CONFIG_BLK is enabled.
Signed-off-by: Eric Nelson <eric@nelint.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| 302a6487 | 14-Mar-2016 |
Simon Glass <sjg@chromium.org> |
Add an option to enable the command line
Add a new Kconfig option for the command line. This is enabled by default, but when disabled it will remove the command line.
Signed-off-by: Simon Glass <sj
Add an option to enable the command line
Add a new Kconfig option for the command line. This is enabled by default, but when disabled it will remove the command line.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|