[U-Boot] [PATCH v2 0/2] arm: socfpga: Enable EFI support for DE0-nano-SoC disto boot

This enables EFI support for DE0-nano-SoC distro boot.
The patches will apply on top of Dalon Westergreens "[PATCH v3 0/8] arm: socfpga: Move to using distro boot" series.
Tested on openSUSE openSUSE Tumbleweed ARM JeOS image.
Signed-off-by: Frank Kunz mailinglists@kunz-im-inter.net --- Changes in v2: remove unneeded changes in defconfig
Frank Kunz (2): arm: socfpga: Enable abort for DE-nano-SoC SPL uboot load from MMC arm: socfpga: Enable part command and EFI partition support for DE0-nano-SoC
configs/socfpga_de0_nano_soc_defconfig | 3 +++ include/configs/socfpga_de0_nano_soc.h | 2 ++ 2 files changed, 5 insertions(+)
-- 2.12.0

This allows the SPL to scan the MMC for a valid uboot image on a second sector location defined by CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR when the default location "CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR + first partition offset" does not contain a valid uboot image.
Signed-off-by: Frank Kunz mailinglists@kunz-im-inter.net --- :100644 100644 dd5933d43c... bd3e83ddea... M include/configs/socfpga_de0_nano_soc.h include/configs/socfpga_de0_nano_soc.h | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/include/configs/socfpga_de0_nano_soc.h b/include/configs/socfpga_de0_nano_soc.h index dd5933d43c..bd3e83ddea 100644 --- a/include/configs/socfpga_de0_nano_soc.h +++ b/include/configs/socfpga_de0_nano_soc.h @@ -12,6 +12,8 @@ #define CONFIG_FAT_WRITE #define CONFIG_HW_WATCHDOG
+#define CONFIG_SPL_ABORT_ON_RAW_IMAGE + /* Memory configurations */ #define PHYS_SDRAM_1_SIZE 0x40000000 /* 1GiB */

Those features are used by distro boot with efi boot.
Signed-off-by: Frank Kunz mailinglists@kunz-im-inter.net --- :100644 100644 b122135690... 14ac97e4f9... M configs/socfpga_de0_nano_soc_defconfig configs/socfpga_de0_nano_soc_defconfig | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/configs/socfpga_de0_nano_soc_defconfig b/configs/socfpga_de0_nano_soc_defconfig index b122135690..14ac97e4f9 100644 --- a/configs/socfpga_de0_nano_soc_defconfig +++ b/configs/socfpga_de0_nano_soc_defconfig @@ -21,6 +21,7 @@ CONFIG_CMD_ASKENV=y CONFIG_CMD_GREPENV=y # CONFIG_CMD_FLASH is not set CONFIG_CMD_MMC=y +CONFIG_CMD_PART=y CONFIG_CMD_SF=y CONFIG_CMD_SPI=y CONFIG_CMD_I2C=y @@ -37,6 +38,8 @@ CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_CMD_UBI=y +CONFIG_EFI_PARTITION=y +# CONFIG_SPL_EFI_PARTITION is not set CONFIG_SPL_DM=y CONFIG_DFU_MMC=y CONFIG_DM_GPIO=y
participants (1)
-
Frank Kunz