1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-21 12:57:22 +01:00
Files
u-boot-megous/lib
xypron.glpk@gmx.de 70bfcdc6bb efi_loader: disk: iterate only over valid block devices
The efi_loader currently stops iterating over the available
block devices stopping at the first device that fails.
This may imply that no block device is found.

With the patch efi_loader only iterates over valid devices.

It is based on patch
06d592bf52f6 (dm: core: Add uclass_first/next_device_check())
which is currently in u-boot-dm.git.

For testing I used an odroid-c2 with a dts including
&sd_emmc_a {
	status = "okay";
};
This device does not exist on the board and cannot be initialized.

Without the patch:

=> bootefi hello
## Starting EFI application at 01000000 ...
WARNING: Invalid device tree, expect boot to fail
mmc_init: -95, time 1806
Found 0 disks
Hello, world!
## Application terminated, r = 0

With the patch:

=> bootefi hello
## Starting EFI application at 01000000 ...
WARNING: Invalid device tree, expect boot to fail
mmc_init: -95, time 1806
Scanning disk mmc@70000.blk...
Scanning disk mmc@72000.blk...
Card did not respond to voltage select!
mmc_init: -95, time 9
Scanning disk mmc@74000.blk...
Found 3 disks
Hello, world!
## Application terminated, r = 0

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
2017-07-19 14:14:41 +02:00
..
2017-07-10 08:39:24 -04:00
2017-05-12 08:37:19 -04:00
2016-02-06 12:00:59 +01:00
2017-04-12 13:28:27 -04:00
2017-06-20 14:03:33 -04:00
2011-01-18 23:38:08 +01:00
2016-04-11 20:48:26 -04:00
2017-04-13 09:41:10 -04:00
2010-09-19 19:29:47 +02:00
2016-05-02 18:37:09 -04:00
2017-05-22 12:45:32 -04:00
2014-10-25 07:02:01 -04:00
2012-04-29 14:14:08 +02:00
2015-07-21 17:39:28 -06:00
2016-11-21 14:07:30 -05:00
2017-05-12 08:37:18 -04:00
2017-06-01 07:03:12 -06:00
2016-10-11 11:55:33 +08:00