configs/octavo_osd32mp1_red: update BSP components

Update description:
  TF-A to v2.4-stm32mp-r1
  U-boot to version v2020.10-stm32mp-r2.1
  Linux to v5.10-stm32mp-r2.1

This patch also updates U-boot to to use FIP image.

Reference:

  https://octavosystems.com/octavo_products/osd32mp1-red/

The device tree blobs, and the U-boot patches come from Octavo System:

  https://github.com/octavosystems/meta-octavo-osd32mp1

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Kory Maincent 2022-10-05 09:58:13 +02:00 committed by Thomas Petazzoni
parent 9e698c552b
commit 8f088e6841
10 changed files with 1511 additions and 3514 deletions

View File

@ -4,15 +4,15 @@ image sdcard.img {
} }
partition fsbl1 { partition fsbl1 {
image = "tf-a-osd32mp1-red.stm32" image = "tf-a-stm32mp157c-osd32mp1-red.stm32"
} }
partition fsbl2 { partition fsbl2 {
image = "tf-a-osd32mp1-red.stm32" image = "tf-a-stm32mp157c-osd32mp1-red.stm32"
} }
partition ssbl { partition fip {
image = "u-boot.stm32" image = "fip.bin"
size = 2M size = 2M
} }

View File

@ -1,4 +1,4 @@
label osd32mp1-red-buildroot label osd32mp1-red-buildroot
kernel /boot/zImage kernel /boot/zImage
devicetree /boot/osd32mp1-red.dtb devicetree /boot/stm32mp157c-osd32mp1-red.dtb
append root=/dev/mmcblk1p4 rootwait append root=/dev/mmcblk1p4 rootwait

View File

@ -1,32 +1,49 @@
From 3feee3e00dcb9467b5345671300e7c73f3e05f93 Mon Sep 17 00:00:00 2001 From 27a516e2ad464bf1de5e23e8277e0f6d6735bd21 Mon Sep 17 00:00:00 2001
From: Kory Maincent <kory.maincent@bootlin.com> From: Kory Maincent <kory.maincent@bootlin.com>
Date: Tue, 5 Oct 2021 14:31:28 +0200 Date: Mon, 3 Oct 2022 12:20:40 +0200
Subject: [PATCH 2/2] configs/stm32mp15_trusted_defconfig: disable environment Subject: [PATCH 2/2] configs/stm32mp15_trusted_defconfig: disable environment
select only ENV_IS_NOWHERE
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
--- ---
configs/stm32mp15_trusted_defconfig | 6 ------ board/st/stm32mp1/stm32mp1.c | 4 ++++
1 file changed, 6 deletions(-) configs/stm32mp15_trusted_defconfig | 9 ---------
2 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
index 48591b2f1e..ba510d843c 100644
--- a/board/st/stm32mp1/stm32mp1.c
+++ b/board/st/stm32mp1/stm32mp1.c
@@ -78,6 +78,10 @@ DECLARE_GLOBAL_DATA_PTR;
#define USB_START_LOW_THRESHOLD_UV 1230000
#define USB_START_HIGH_THRESHOLD_UV 2150000
+#ifndef CONFIG_SYS_MMC_ENV_DEV
+#define CONFIG_SYS_MMC_ENV_DEV -1
+#endif
+
int board_early_init_f(void)
{
/* nothing to do, only used in SPL */
diff --git a/configs/stm32mp15_trusted_defconfig b/configs/stm32mp15_trusted_defconfig diff --git a/configs/stm32mp15_trusted_defconfig b/configs/stm32mp15_trusted_defconfig
index 7635d7f6c7..6ec4bcd080 100644 index 2161ccbefa..fd3fed8fb0 100644
--- a/configs/stm32mp15_trusted_defconfig --- a/configs/stm32mp15_trusted_defconfig
+++ b/configs/stm32mp15_trusted_defconfig +++ b/configs/stm32mp15_trusted_defconfig
@@ -38,12 +38,6 @@ CONFIG_CMD_MTDPARTS=y @@ -45,15 +45,6 @@ CONFIG_CMD_EXT4_WRITE=y
CONFIG_CMD_MTDPARTS=y
CONFIG_CMD_UBI=y CONFIG_CMD_UBI=y
CONFIG_DEFAULT_DEVICE_TREE="stm32mp157c-ev1"
CONFIG_ENV_IS_NOWHERE=y CONFIG_ENV_IS_NOWHERE=y
-CONFIG_ENV_IS_IN_EXT4=y -CONFIG_ENV_IS_IN_MMC=y
-CONFIG_ENV_IS_IN_SPI_FLASH=y -CONFIG_ENV_IS_IN_SPI_FLASH=y
-CONFIG_ENV_IS_IN_UBI=y -CONFIG_ENV_IS_IN_UBI=y
-CONFIG_ENV_EXT4_INTERFACE="mmc" -CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
-CONFIG_ENV_EXT4_DEVICE_AND_PART="0:auto" -CONFIG_ENV_UBI_PART="UBI"
-CONFIG_ENV_EXT4_FILE="/uboot.env" -CONFIG_ENV_UBI_VOLUME="uboot_config"
-CONFIG_ENV_UBI_VOLUME_REDUND="uboot_config_r"
-CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_SYS_MMC_ENV_DEV=-1
CONFIG_STM32_ADC=y CONFIG_STM32_ADC=y
CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_CLK_SCMI=y
CONFIG_FASTBOOT_BUF_ADDR=0xC0000000 CONFIG_SET_DFU_ALT_INFO=y
-- --
2.25.1 2.25.1

View File

@ -14,7 +14,7 @@
* Relaxed Timing Mode: false * Relaxed Timing Mode: false
* Address mapping type: RBC * Address mapping type: RBC
* *
* Save Date: 2020.02.08, save Time: 23:22:33 * Save Date: 2020.08.27, save Time: 15:22:11
*/ */
#define DDR_MEM_NAME "DDR3-DDR3L 16bits 533000Khz" #define DDR_MEM_NAME "DDR3-DDR3L 16bits 533000Khz"
@ -103,12 +103,12 @@
#define DDR_ZQ0CR1 0x00000038 #define DDR_ZQ0CR1 0x00000038
#define DDR_DX0GCR 0x0000CE81 #define DDR_DX0GCR 0x0000CE81
#define DDR_DX0DLLCR 0x40000000 #define DDR_DX0DLLCR 0x40000000
#define DDR_DX0DQTR 0xFFFFFFFF #define DDR_DX0DQTR 0x00112121
#define DDR_DX0DQSTR 0x3DB02000 #define DDR_DX0DQSTR 0x3D200000
#define DDR_DX1GCR 0x0000CE81 #define DDR_DX1GCR 0x0000CE81
#define DDR_DX1DLLCR 0x40000000 #define DDR_DX1DLLCR 0x40000000
#define DDR_DX1DQTR 0xFFFFFFFF #define DDR_DX1DQTR 0x11100121
#define DDR_DX1DQSTR 0x3DB02000 #define DDR_DX1DQSTR 0x3D200000
#define DDR_DX2GCR 0x0000CE80 #define DDR_DX2GCR 0x0000CE80
#define DDR_DX2DLLCR 0x40000000 #define DDR_DX2DLLCR 0x40000000
#define DDR_DX2DQTR 0xFFFFFFFF #define DDR_DX2DQTR 0xFFFFFFFF
@ -117,3 +117,5 @@
#define DDR_DX3DLLCR 0x40000000 #define DDR_DX3DLLCR 0x40000000
#define DDR_DX3DQTR 0xFFFFFFFF #define DDR_DX3DQTR 0xFFFFFFFF
#define DDR_DX3DQSTR 0x3DB02000 #define DDR_DX3DQSTR 0x3DB02000
#include "stm32mp15-ddr.dtsi"

View File

@ -0,0 +1,6 @@
// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/*
* Copyright (c) 2020, STMicroelectronics - All Rights Reserved
*/
#include "stm32mp15-ddr-512m-fw-config.dts"

View File

@ -5,8 +5,8 @@ BR2_cortex_a7=y
# global patch directory # global patch directory
BR2_GLOBAL_PATCH_DIR="board/octavo/osd32mp1-red/patches" BR2_GLOBAL_PATCH_DIR="board/octavo/osd32mp1-red/patches"
# Linux headers same as kernel, a 4.19 series # Linux headers same as kernel, a 5.10 series
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
# rootfs overlay # rootfs overlay
BR2_ROOTFS_OVERLAY="board/octavo/osd32mp1-red/overlay/" BR2_ROOTFS_OVERLAY="board/octavo/osd32mp1-red/overlay/"
@ -20,11 +20,11 @@ BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/octavo/osd32mp1-red/genimage.cfg"
BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_GIT=y BR2_LINUX_KERNEL_CUSTOM_GIT=y
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/STMicroelectronics/linux.git" BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/STMicroelectronics/linux.git"
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="v4.19-stm32mp-r3.3" BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="v5.10-stm32mp-r2.1"
BR2_LINUX_KERNEL_DEFCONFIG="multi_v7" BR2_LINUX_KERNEL_DEFCONFIG="multi_v7"
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(LINUX_DIR)/arch/arm/configs/fragment-01-multiv7_cleanup.config $(LINUX_DIR)/arch/arm/configs/fragment-02-multiv7_addons.config" BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(LINUX_DIR)/arch/arm/configs/fragment-01-multiv7_cleanup.config $(LINUX_DIR)/arch/arm/configs/fragment-02-multiv7_addons.config"
BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="osd32mp1-red" BR2_LINUX_KERNEL_INTREE_DTS_NAME="stm32mp157c-osd32mp1-red"
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/octavo/osd32mp1-red/linux-dts/*" BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/octavo/osd32mp1-red/linux-dts/*"
BR2_LINUX_KERNEL_INSTALL_TARGET=y BR2_LINUX_KERNEL_INSTALL_TARGET=y
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
@ -38,11 +38,14 @@ BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_ARM_TRUSTED_FIRMWARE=y BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT=y
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://github.com/STMicroelectronics/arm-trusted-firmware.git" BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_URL="https://github.com/STMicroelectronics/arm-trusted-firmware.git"
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="v2.0-stm32mp-r1.5" BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION="v2.4-stm32mp-r1"
BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="stm32mp1" BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="stm32mp1"
BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_DTS_PATH="board/octavo/osd32mp1-red/tfa-dts/*" BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_DTS_PATH="board/octavo/osd32mp1-red/tfa-dts/*"
BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="STM32MP_SDMMC=1 AARCH32_SP=sp_min DTB_FILE_NAME=osd32mp1-red.dtb STM32MP_USB_PROGRAMMER=1 CFLAGS=-Wno-array-bounds" BR2_TARGET_ARM_TRUSTED_FIRMWARE_FIP=y
BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="*.stm32" BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33=y
BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_BL33_IMAGE="u-boot-nodtb.bin"
BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="STM32MP_SDMMC=1 AARCH32_SP=sp_min DTB_FILE_NAME=stm32mp157c-osd32mp1-red.dtb STM32MP_USB_PROGRAMMER=1 BL33_CFG=$(BINARIES_DIR)/u-boot.dtb"
BR2_TARGET_ARM_TRUSTED_FIRMWARE_IMAGES="*.stm32 fip.bin"
BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC=y BR2_TARGET_ARM_TRUSTED_FIRMWARE_NEEDS_DTC=y
# U-Boot # U-Boot
@ -50,11 +53,12 @@ BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_GIT=y BR2_TARGET_UBOOT_CUSTOM_GIT=y
BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/STMicroelectronics/u-boot.git" BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/STMicroelectronics/u-boot.git"
BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="v2018.11-stm32mp-r3.2" BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="v2020.10-stm32mp-r2.1"
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="stm32mp15_trusted" BR2_TARGET_UBOOT_BOARD_DEFCONFIG="stm32mp15_trusted"
# BR2_TARGET_UBOOT_FORMAT_BIN is not set # BR2_TARGET_UBOOT_FORMAT_BIN is not set
BR2_TARGET_UBOOT_FORMAT_STM32=y BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="DEVICE_TREE=osd32mp1-red" BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-nodtb.bin u-boot.dtb"
BR2_TARGET_UBOOT_CUSTOM_MAKEOPTS="DEVICE_TREE=stm32mp157c-osd32mp1-red"
# Package needed to generate the image # Package needed to generate the image
BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_GENIMAGE=y