board: rpi: Enable capsule updates
Since RPI works well using EFI and has no size limitations with regards to U-Boot, add the needed structures to support capsule updates. While at it update the most commonly used defconfigs and include capsule support and U-Boot commands needed by EFI Tested-by: Sughosh Ganu <sughosh.ganu@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:

committed by
Peter Robinson

parent
28a620d281
commit
6a5fc32fd2
@@ -68,6 +68,19 @@ struct msg_get_clock_rate {
|
|||||||
u32 end_tag;
|
u32 end_tag;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct efi_fw_image fw_images[] = {
|
||||||
|
{
|
||||||
|
.fw_name = u"RPI_UBOOT",
|
||||||
|
.image_index = 1,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
struct efi_capsule_update_info update_info = {
|
||||||
|
.dfu_string = "mmc 0=u-boot.bin fat 0 1",
|
||||||
|
.num_images = ARRAY_SIZE(fw_images),
|
||||||
|
.images = fw_images,
|
||||||
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_ARM64
|
#ifdef CONFIG_ARM64
|
||||||
#define DTB_DIR "broadcom/"
|
#define DTB_DIR "broadcom/"
|
||||||
#else
|
#else
|
||||||
|
@@ -19,14 +19,19 @@ CONFIG_SYS_PBSIZE=1049
|
|||||||
# CONFIG_DISPLAY_BOARDINFO is not set
|
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||||
CONFIG_MISC_INIT_R=y
|
CONFIG_MISC_INIT_R=y
|
||||||
CONFIG_SYS_PROMPT="U-Boot> "
|
CONFIG_SYS_PROMPT="U-Boot> "
|
||||||
|
CONFIG_CMD_NVEDIT_EFI=y
|
||||||
CONFIG_CMD_GPIO=y
|
CONFIG_CMD_GPIO=y
|
||||||
CONFIG_CMD_MMC=y
|
CONFIG_CMD_MMC=y
|
||||||
CONFIG_CMD_USB=y
|
CONFIG_CMD_USB=y
|
||||||
|
CONFIG_CMD_EFIDEBUG=y
|
||||||
CONFIG_CMD_FS_UUID=y
|
CONFIG_CMD_FS_UUID=y
|
||||||
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
||||||
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||||
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
|
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
|
||||||
CONFIG_TFTP_TSIZE=y
|
CONFIG_TFTP_TSIZE=y
|
||||||
|
CONFIG_DFU_MMC=y
|
||||||
|
CONFIG_SYS_DFU_DATA_BUF_SIZE=0x100000
|
||||||
|
CONFIG_SYS_DFU_MAX_FILE_SIZE=0x200000
|
||||||
CONFIG_BCM2835_GPIO=y
|
CONFIG_BCM2835_GPIO=y
|
||||||
CONFIG_MMC_SDHCI=y
|
CONFIG_MMC_SDHCI=y
|
||||||
CONFIG_MMC_SDHCI_BCM2835=y
|
CONFIG_MMC_SDHCI_BCM2835=y
|
||||||
@@ -49,3 +54,6 @@ CONFIG_SYS_WHITE_ON_BLACK=y
|
|||||||
CONFIG_VIDEO_BCM2835=y
|
CONFIG_VIDEO_BCM2835=y
|
||||||
CONFIG_CONSOLE_SCROLL_LINES=10
|
CONFIG_CONSOLE_SCROLL_LINES=10
|
||||||
CONFIG_PHYS_TO_BUS=y
|
CONFIG_PHYS_TO_BUS=y
|
||||||
|
# CONFIG_HEXDUMP is not set
|
||||||
|
CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y
|
||||||
|
CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y
|
||||||
|
@@ -19,14 +19,19 @@ CONFIG_SYS_PBSIZE=1049
|
|||||||
# CONFIG_DISPLAY_BOARDINFO is not set
|
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||||
CONFIG_MISC_INIT_R=y
|
CONFIG_MISC_INIT_R=y
|
||||||
CONFIG_SYS_PROMPT="U-Boot> "
|
CONFIG_SYS_PROMPT="U-Boot> "
|
||||||
|
CONFIG_CMD_NVEDIT_EFI=y
|
||||||
CONFIG_CMD_GPIO=y
|
CONFIG_CMD_GPIO=y
|
||||||
CONFIG_CMD_MMC=y
|
CONFIG_CMD_MMC=y
|
||||||
CONFIG_CMD_USB=y
|
CONFIG_CMD_USB=y
|
||||||
|
CONFIG_CMD_EFIDEBUG=y
|
||||||
CONFIG_CMD_FS_UUID=y
|
CONFIG_CMD_FS_UUID=y
|
||||||
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
||||||
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||||
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
|
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
|
||||||
CONFIG_TFTP_TSIZE=y
|
CONFIG_TFTP_TSIZE=y
|
||||||
|
CONFIG_DFU_MMC=y
|
||||||
|
CONFIG_SYS_DFU_DATA_BUF_SIZE=0x100000
|
||||||
|
CONFIG_SYS_DFU_MAX_FILE_SIZE=0x200000
|
||||||
CONFIG_BCM2835_GPIO=y
|
CONFIG_BCM2835_GPIO=y
|
||||||
CONFIG_MMC_SDHCI=y
|
CONFIG_MMC_SDHCI=y
|
||||||
CONFIG_MMC_SDHCI_BCM2835=y
|
CONFIG_MMC_SDHCI_BCM2835=y
|
||||||
@@ -49,3 +54,6 @@ CONFIG_SYS_WHITE_ON_BLACK=y
|
|||||||
CONFIG_VIDEO_BCM2835=y
|
CONFIG_VIDEO_BCM2835=y
|
||||||
CONFIG_CONSOLE_SCROLL_LINES=10
|
CONFIG_CONSOLE_SCROLL_LINES=10
|
||||||
CONFIG_PHYS_TO_BUS=y
|
CONFIG_PHYS_TO_BUS=y
|
||||||
|
# CONFIG_HEXDUMP is not set
|
||||||
|
CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y
|
||||||
|
CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y
|
||||||
|
@@ -20,11 +20,13 @@ CONFIG_SYS_PBSIZE=1049
|
|||||||
# CONFIG_DISPLAY_BOARDINFO is not set
|
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||||
CONFIG_MISC_INIT_R=y
|
CONFIG_MISC_INIT_R=y
|
||||||
CONFIG_SYS_PROMPT="U-Boot> "
|
CONFIG_SYS_PROMPT="U-Boot> "
|
||||||
|
CONFIG_CMD_NVEDIT_EFI=y
|
||||||
CONFIG_CMD_DFU=y
|
CONFIG_CMD_DFU=y
|
||||||
CONFIG_CMD_GPIO=y
|
CONFIG_CMD_GPIO=y
|
||||||
CONFIG_CMD_MMC=y
|
CONFIG_CMD_MMC=y
|
||||||
CONFIG_CMD_PCI=y
|
CONFIG_CMD_PCI=y
|
||||||
CONFIG_CMD_USB=y
|
CONFIG_CMD_USB=y
|
||||||
|
CONFIG_CMD_EFIDEBUG=y
|
||||||
CONFIG_CMD_FS_UUID=y
|
CONFIG_CMD_FS_UUID=y
|
||||||
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
||||||
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
|
||||||
@@ -65,3 +67,6 @@ CONFIG_SYS_WHITE_ON_BLACK=y
|
|||||||
CONFIG_VIDEO_BCM2835=y
|
CONFIG_VIDEO_BCM2835=y
|
||||||
CONFIG_CONSOLE_SCROLL_LINES=10
|
CONFIG_CONSOLE_SCROLL_LINES=10
|
||||||
CONFIG_PHYS_TO_BUS=y
|
CONFIG_PHYS_TO_BUS=y
|
||||||
|
# CONFIG_HEXDUMP is not set
|
||||||
|
CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y
|
||||||
|
CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y
|
||||||
|
@@ -18,15 +18,20 @@ CONFIG_SYS_PBSIZE=1049
|
|||||||
# CONFIG_DISPLAY_BOARDINFO is not set
|
# CONFIG_DISPLAY_BOARDINFO is not set
|
||||||
CONFIG_MISC_INIT_R=y
|
CONFIG_MISC_INIT_R=y
|
||||||
CONFIG_SYS_PROMPT="U-Boot> "
|
CONFIG_SYS_PROMPT="U-Boot> "
|
||||||
|
CONFIG_CMD_NVEDIT_EFI=y
|
||||||
CONFIG_CMD_GPIO=y
|
CONFIG_CMD_GPIO=y
|
||||||
CONFIG_CMD_MMC=y
|
CONFIG_CMD_MMC=y
|
||||||
CONFIG_CMD_PCI=y
|
CONFIG_CMD_PCI=y
|
||||||
CONFIG_CMD_USB=y
|
CONFIG_CMD_USB=y
|
||||||
|
CONFIG_CMD_EFIDEBUG=y
|
||||||
CONFIG_CMD_FS_UUID=y
|
CONFIG_CMD_FS_UUID=y
|
||||||
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"
|
||||||
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
|
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
|
||||||
CONFIG_TFTP_TSIZE=y
|
CONFIG_TFTP_TSIZE=y
|
||||||
CONFIG_DM_DMA=y
|
CONFIG_DM_DMA=y
|
||||||
|
CONFIG_DFU_MMC=y
|
||||||
|
CONFIG_SYS_DFU_DATA_BUF_SIZE=0x100000
|
||||||
|
CONFIG_SYS_DFU_MAX_FILE_SIZE=0x200000
|
||||||
CONFIG_BCM2835_GPIO=y
|
CONFIG_BCM2835_GPIO=y
|
||||||
CONFIG_MMC_SDHCI=y
|
CONFIG_MMC_SDHCI=y
|
||||||
CONFIG_MMC_SDHCI_SDMA=y
|
CONFIG_MMC_SDHCI_SDMA=y
|
||||||
@@ -56,3 +61,6 @@ CONFIG_SYS_WHITE_ON_BLACK=y
|
|||||||
CONFIG_VIDEO_BCM2835=y
|
CONFIG_VIDEO_BCM2835=y
|
||||||
CONFIG_CONSOLE_SCROLL_LINES=10
|
CONFIG_CONSOLE_SCROLL_LINES=10
|
||||||
CONFIG_PHYS_TO_BUS=y
|
CONFIG_PHYS_TO_BUS=y
|
||||||
|
# CONFIG_HEXDUMP is not set
|
||||||
|
CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y
|
||||||
|
CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y
|
||||||
|
Reference in New Issue
Block a user