* [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL
@ 2022-07-25 12:04 Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 2/8] v7a: tf-a: update to v2.7 Ahmad Fatoum
` (7 more replies)
0 siblings, 8 replies; 10+ messages in thread
From: Ahmad Fatoum @ 2022-07-25 12:04 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
We only generate SD/eMMC images for STM32MP1, so having NAND/NOR
drivers in the FSBL just increases size pressure On-Chip RAM,
so drop them.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
configs/platform-v7a/platformconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index 37dc5cd9cd16..c6de5a6397d7 100644
--- a/configs/platform-v7a/platformconfig
+++ b/configs/platform-v7a/platformconfig
@@ -204,7 +204,7 @@ PTXCONF_TF_A_ARM_ARCH_MAJOR_7=y
# PTXCONF_TF_A_ARM_ARCH_MAJOR_8_32_BIT is not set
PTXCONF_TF_A_ARM_ARCH_MAJOR=7
PTXCONF_TF_A_PLATFORMS="stm32mp1"
-PTXCONF_TF_A_EXTRA_ARGS="DTB_FILE_NAME='stm32mp157c-dk2.dtb stm32mp157c-ev1.dtb stm32mp157c-lxa-mc1.dtb' STM32MP_EMMC=1 STM32MP_SDMMC=1 STM32MP_RAW_NAND=1 STM32MP_SPI_NAND=1 STM32MP_SPI_NOR=1"
+PTXCONF_TF_A_EXTRA_ARGS="DTB_FILE_NAME='stm32mp157c-dk2.dtb stm32mp157c-ev1.dtb stm32mp157c-lxa-mc1.dtb' STM32MP_EMMC=1 STM32MP_SDMMC=1"
PTXCONF_TF_A_ARTIFACTS="tf-a-*.stm32"
#
--
2.30.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [DistroKit] [PATCH 2/8] v7a: tf-a: update to v2.7
2022-07-25 12:04 [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Ahmad Fatoum
@ 2022-07-25 12:04 ` Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 3/8] genimage: patch in Firmware Image Package (FIP) support Ahmad Fatoum
` (6 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Ahmad Fatoum @ 2022-07-25 12:04 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
We need at least v2.6 for FIP support, but there's a freshly released
v2.7, so lets use that. This unfortunately means we need to carry a
patch for the MC-1 because upstream broke it. To ensure the legacy
image works for now, we need to set a new build option, but that will
be removed soon enough with the switch to FIP.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
...s-stm32mp1-align-DDR-regulators-with.patch | 105 ++++++++++++++++++
configs/platform-v7a/patches/tf-a-v2.7/series | 1 +
configs/platform-v7a/platformconfig | 6 +-
3 files changed, 109 insertions(+), 3 deletions(-)
create mode 100644 configs/platform-v7a/patches/tf-a-v2.7/0001-fix-stm32mp1-fdts-stm32mp1-align-DDR-regulators-with.patch
create mode 100644 configs/platform-v7a/patches/tf-a-v2.7/series
diff --git a/configs/platform-v7a/patches/tf-a-v2.7/0001-fix-stm32mp1-fdts-stm32mp1-align-DDR-regulators-with.patch b/configs/platform-v7a/patches/tf-a-v2.7/0001-fix-stm32mp1-fdts-stm32mp1-align-DDR-regulators-with.patch
new file mode 100644
index 000000000000..43777831b2cc
--- /dev/null
+++ b/configs/platform-v7a/patches/tf-a-v2.7/0001-fix-stm32mp1-fdts-stm32mp1-align-DDR-regulators-with.patch
@@ -0,0 +1,105 @@
+From 9746daccb7611411a38169f20413ea8445310431 Mon Sep 17 00:00:00 2001
+From: Ahmad Fatoum <a.fatoum@pengutronix.de>
+Date: Thu, 2 Jun 2022 06:28:31 +0200
+Subject: [PATCH] fix(stm32mp1): fdts: stm32mp1: align DDR regulators with new
+ driver
+
+With recent changes, TF-A now panics on LXA MC1, Avernger96 and Odyssey:
+
+ NOTICE: CPU: STM32MP157C?? Rev.B
+ NOTICE: Model: Linux Automation MC-1 board
+ ERROR: regul ldo3: max value 750 is invalid
+ PANIC at PC : 0x2ffeebb7
+
+as the driver takes great offense at the content of the device
+tree. The parts in question were copy-pasted from ST DTs, but those
+ST DTs were fixed by commit 67d95409baae
+("refactor(stm32mp1-fdts): update regulator description").
+
+Fix the breakage by transplanting the same changes into all STM32MP1 DTs.
+
+Fixes: bba9fdee589f ("feat(stm32mp1): add regulator framework compilation")
+Change-Id: I143d0091625f62c313b3b71449c9ad99583d01c8
+Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
+Origin: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/15370
+---
+ fdts/stm32mp157a-avenger96.dts | 4 +---
+ fdts/stm32mp157c-odyssey-som.dtsi | 4 +---
+ fdts/stm32mp15xx-osd32.dtsi | 4 +---
+ 3 files changed, 3 insertions(+), 9 deletions(-)
+
+diff --git a/fdts/stm32mp157a-avenger96.dts b/fdts/stm32mp157a-avenger96.dts
+index b967736e4786..6ae97c7581d1 100644
+--- a/fdts/stm32mp157a-avenger96.dts
++++ b/fdts/stm32mp157a-avenger96.dts
+@@ -115,10 +115,9 @@
+
+ vtt_ddr: ldo3 {
+ regulator-name = "vtt_ddr";
+- regulator-min-microvolt = <500000>;
+- regulator-max-microvolt = <750000>;
+ regulator-always-on;
+ regulator-over-current-protection;
++ st,regulator-sink-source;
+ };
+
+ vdd_usb: ldo4 {
+@@ -143,7 +142,6 @@
+ vref_ddr: vref_ddr {
+ regulator-name = "vref_ddr";
+ regulator-always-on;
+- regulator-over-current-protection;
+ };
+
+ bst_out: boost {
+diff --git a/fdts/stm32mp157c-odyssey-som.dtsi b/fdts/stm32mp157c-odyssey-som.dtsi
+index 6bed33968f73..c4e13985a3f7 100644
+--- a/fdts/stm32mp157c-odyssey-som.dtsi
++++ b/fdts/stm32mp157c-odyssey-som.dtsi
+@@ -140,10 +140,9 @@
+
+ vtt_ddr: ldo3 {
+ regulator-name = "vtt_ddr";
+- regulator-min-microvolt = <500000>;
+- regulator-max-microvolt = <750000>;
+ regulator-always-on;
+ regulator-over-current-protection;
++ st,regulator-sink-source;
+ };
+
+ vdd_usb: ldo4 {
+@@ -170,7 +169,6 @@
+ vref_ddr: vref_ddr {
+ regulator-name = "vref_ddr";
+ regulator-always-on;
+- regulator-over-current-protection;
+ };
+
+ bst_out: boost {
+diff --git a/fdts/stm32mp15xx-osd32.dtsi b/fdts/stm32mp15xx-osd32.dtsi
+index 76a25613a14d..ca672356293c 100644
+--- a/fdts/stm32mp15xx-osd32.dtsi
++++ b/fdts/stm32mp15xx-osd32.dtsi
+@@ -81,10 +81,9 @@
+
+ vtt_ddr: ldo3 {
+ regulator-name = "vtt_ddr";
+- regulator-min-microvolt = <500000>;
+- regulator-max-microvolt = <750000>;
+ regulator-always-on;
+ regulator-over-current-protection;
++ st,regulator-sink-source;
+ };
+
+ vdd_usb: ldo4 {
+@@ -110,7 +109,6 @@
+ vref_ddr: vref_ddr {
+ regulator-name = "vref_ddr";
+ regulator-always-on;
+- regulator-over-current-protection;
+ };
+
+ bst_out: boost {
+--
+2.30.2
+
diff --git a/configs/platform-v7a/patches/tf-a-v2.7/series b/configs/platform-v7a/patches/tf-a-v2.7/series
new file mode 100644
index 000000000000..79c39b07430a
--- /dev/null
+++ b/configs/platform-v7a/patches/tf-a-v2.7/series
@@ -0,0 +1 @@
+0001-fix-stm32mp1-fdts-stm32mp1-align-DDR-regulators-with.patch
diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index c6de5a6397d7..640302b78895 100644
--- a/configs/platform-v7a/platformconfig
+++ b/configs/platform-v7a/platformconfig
@@ -197,14 +197,14 @@ PTXCONF_BOOTLOADER=y
# PTXCONF_OPTEE is not set
PTXCONF_TF_A=y
PTXCONF_TF_A_URL="https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/snapshot"
-PTXCONF_TF_A_VERSION="v2.5"
-PTXCONF_TF_A_MD5="465555f290f7bb785a3471d704ca33da"
+PTXCONF_TF_A_VERSION="v2.7"
+PTXCONF_TF_A_MD5="1d609ceb2bc01d650366118c58ca7336"
PTXCONF_TF_A_ARCH_STRING="aarch32"
PTXCONF_TF_A_ARM_ARCH_MAJOR_7=y
# PTXCONF_TF_A_ARM_ARCH_MAJOR_8_32_BIT is not set
PTXCONF_TF_A_ARM_ARCH_MAJOR=7
PTXCONF_TF_A_PLATFORMS="stm32mp1"
-PTXCONF_TF_A_EXTRA_ARGS="DTB_FILE_NAME='stm32mp157c-dk2.dtb stm32mp157c-ev1.dtb stm32mp157c-lxa-mc1.dtb' STM32MP_EMMC=1 STM32MP_SDMMC=1"
+PTXCONF_TF_A_EXTRA_ARGS="DTB_FILE_NAME='stm32mp157c-dk2.dtb stm32mp157c-ev1.dtb stm32mp157c-lxa-mc1.dtb' STM32MP_EMMC=1 STM32MP_SDMMC=1 STM32MP_USE_STM32IMAGE=1"
PTXCONF_TF_A_ARTIFACTS="tf-a-*.stm32"
#
--
2.30.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [DistroKit] [PATCH 3/8] genimage: patch in Firmware Image Package (FIP) support
2022-07-25 12:04 [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 2/8] v7a: tf-a: update to v2.7 Ahmad Fatoum
@ 2022-07-25 12:04 ` Ahmad Fatoum
2022-09-05 14:28 ` Robert Schwebel
2022-07-25 12:04 ` [DistroKit] [PATCH 4/8] v7a: barebox-stm32mp: start collecting device tree blobs Ahmad Fatoum
` (5 subsequent siblings)
7 siblings, 1 reply; 10+ messages in thread
From: Ahmad Fatoum @ 2022-07-25 12:04 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
genimage master has support for calling fiptool, which makes it
straight-forward to generate eMMC boot partition images with the
same genimage.config generating the image for the user area.
TF-A also has a fip target that can call fiptool for us, but is only
works when generating a single bootloader image, but we generate
multiple images, so we can't reuse the current tf-a rule as is.
One more option would be to write a custom image rule, but as genimage
master has support, let's just backport the patch. The autogen.sh is
necessary, because we touch Makefile.am and we want autogen to rerun to
account for changes between our host autotools and the one used to
build the shipped files.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
...d-Firmware-Image-Package-FIP-support.patch | 311 ++++++++++++++++++
patches/genimage-15/series | 1 +
2 files changed, 312 insertions(+)
create mode 100644 patches/genimage-15/0001-Add-Firmware-Image-Package-FIP-support.patch
create mode 100644 patches/genimage-15/series
diff --git a/patches/genimage-15/0001-Add-Firmware-Image-Package-FIP-support.patch b/patches/genimage-15/0001-Add-Firmware-Image-Package-FIP-support.patch
new file mode 100644
index 000000000000..72d2aaaaa80c
--- /dev/null
+++ b/patches/genimage-15/0001-Add-Firmware-Image-Package-FIP-support.patch
@@ -0,0 +1,311 @@
+From de9a29b0c03696bf6d851c5fad9b4ab976ee48f1 Mon Sep 17 00:00:00 2001
+From: Ahmad Fatoum <a.fatoum@pengutronix.de>
+Date: Fri, 1 Apr 2022 14:00:53 +0200
+Subject: [PATCH] Add Firmware Image Package (FIP) support
+
+Platforms where ARM Trusted Firmware is the first stage bootloader are
+converging to use FIP as bundle format for further firmware including
+trusted OS and non secure bootloader. Teach genimage to call fiptool to
+generate FIP images.
+
+Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
+Origin: master, 1e224789bacfa7b1411c3b5d5bee66aa61681cda
+---
+ Makefile.am | 2 +
+ README.rst | 39 ++++++++++++
+ config.c | 5 ++
+ genimage.c | 1 +
+ genimage.h | 1 +
+ image-fip.c | 135 +++++++++++++++++++++++++++++++++++++++++
+ test/basic-images.test | 8 +++
+ test/fip.config | 7 +++
+ 8 files changed, 198 insertions(+)
+ create mode 100644 image-fip.c
+ create mode 100644 test/fip.config
+
+diff --git a/Makefile.am b/Makefile.am
+index 30fe973cfb38..c1d42e4cedd3 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -23,6 +23,7 @@ genimage_SOURCES = \
+ image-cramfs.c \
+ image-ext2.c \
+ image-file.c \
++ image-fip.c \
+ image-fit.c \
+ image-flash.c \
+ image-hd.c \
+@@ -66,6 +67,7 @@ EXTRA_DIST += \
+ test/ext4.config \
+ test/ext4test.0.dump \
+ test/ext4test.1.dump \
++ test/fip.config \
+ test/fit.its \
+ test/fit.config \
+ test/flash-types.config \
+diff --git a/README.rst b/README.rst
+index a2cc76b2af6b..234bc57ce384 100644
+--- a/README.rst
++++ b/README.rst
+@@ -496,6 +496,45 @@ Options:
+ Note: If no content is specified with ``file`` or ``files`` then
+ ``rootpath`` and ``mountpoint`` are used to provide the content.
+
++fip
++***
++Generates a Firmware Image Package (FIP). A format used to bundle
++firmware to be loaded by ARM Trusted Firmware.
++
++Options:
++
++:extraargs: Extra arguments passed to fiptool
++:fw-config: Firmware Configuration (device tree), usually provided by BL2 (Trusted Firmware)
++:nt-fw: Non-Trusted Firmware (BL33)
++:hw-config: Hardware Configuration (device tree), passed to BL33
++:tos-fw: Trusted OS (BL32) binaries. Second and third binary are used as
++ extra1 and extra2 binaries if specified. Example:
++ ``tos-fw = {"tee-header_v2.bin", "tee-pager_v2.bin", "tee-pageable_v2.bin"}``
++:scp-fwu-cfg: SCP Firmware Updater Configuration FWU SCP_BL2U
++:ap-fwu-cfg: AP Firmware Updater Configuration BL2U
++:fwu: Firmware Updater NS_BL2U
++:fwu-cert: Non-Trusted Firmware Updater certificate
++:tb-fw: Trusted Boot Firmware BL2
++:scp-fw: SCP Firmware SCP_BL2
++:soc-fw: EL3 Runtime Firmware BL31
++:tb-fw-config: TB_FW_CONFIG
++:soc-fw-config: SOC_FW_CONFIG
++:tos-fw-config: TOS_FW_CONFIG
++:nt-fw-config: NT_FW_CONFIG
++:rot-cert: Root Of Trust key certificate
++:trusted-key-cert: Trusted key certificate
++:scp-fw-key-cert: SCP Firmware key certificate
++:soc-fw-key-cert: SoC Firmware key certificate
++:tos-fw-key-cert: Trusted OS Firmware key certificate
++:nt-fw-key-cert: Non-Trusted Firmware key certificate
++:tb-fw-cert: Trusted Boot Firmware BL2 certificate
++:scp-fw-cert: SCP Firmware content certificate
++:soc-fw-cert: SoC Firmware content certificate
++:tos-fw-cert: Trusted OS Firmware content certificate
++:nt-fw-cert: Non-Trusted Firmware content certificate
++:sip-sp-cert: SiP owned Secure Partition content certificate
++:plat-sp-cert: Platform owned Secure Partition content certificate
++
+ The Flash Section
+ -----------------
+
+diff --git a/config.c b/config.c
+index e3289169e779..db31dad7212d 100644
+--- a/config.c
++++ b/config.c
+@@ -438,6 +438,11 @@ static struct config opts[] = {
+ .opt = CFG_STR("mkimage", NULL, CFGF_NONE),
+ .env = "GENIMAGE_MKIMAGE",
+ .def = "mkimage",
++ }, {
++ .name = "fiptool",
++ .opt = CFG_STR("fiptool", NULL, CFGF_NONE),
++ .env = "GENIMAGE_FIPTOOL",
++ .def = "fiptool",
+ }, {
+ .name = "config",
+ .env = "GENIMAGE_CONFIG",
+diff --git a/genimage.c b/genimage.c
+index 205c70fba338..fbb29f3deae7 100644
+--- a/genimage.c
++++ b/genimage.c
+@@ -46,6 +46,7 @@ static struct image_handler *handlers[] = {
+ &ext4_handler,
+ &file_handler,
+ &fit_handler,
++ &fip_handler,
+ &flash_handler,
+ &hdimage_handler,
+ &iso_handler,
+diff --git a/genimage.h b/genimage.h
+index ca273f58047d..24354670ff4d 100644
+--- a/genimage.h
++++ b/genimage.h
+@@ -118,6 +118,7 @@ extern struct image_handler ubi_handler;
+ extern struct image_handler ubifs_handler;
+ extern struct image_handler vfat_handler;
+ extern struct image_handler fit_handler;
++extern struct image_handler fip_handler;
+
+ #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+
+diff --git a/image-fip.c b/image-fip.c
+new file mode 100644
+index 000000000000..774c4222aeb6
+--- /dev/null
++++ b/image-fip.c
+@@ -0,0 +1,135 @@
++/*
++ * Copyright (c) 2022 Ahmad Fatoum <a.fatoum@pengutronix.de>
++ *
++ * This program is free software; you can redistribute it and/or modify
++ * it under the terms of the GNU General Public License version 2
++ * as published by the Free Software Foundation.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program. If not, see <http://www.gnu.org/licenses/>.
++ */
++
++#include <confuse.h>
++#include <stdio.h>
++#include <string.h>
++#include <stdlib.h>
++#include <errno.h>
++
++#include "genimage.h"
++
++static int fip_generate(struct image *image)
++{
++ struct partition *part;
++ char *args = strdup("");
++ const char *extraargs = cfg_getstr(image->imagesec, "extraargs");
++ int ret;
++
++ list_for_each_entry(part, &image->partitions, list) {
++ struct image *child = image_get(part->image);
++ char *oldargs;
++
++ oldargs = args;
++ xasprintf(&args, "%s --%s '%s'", args, part->name, imageoutfile(child));
++ free(oldargs);
++ }
++
++ ret = systemp(image, "%s create %s %s '%s'", get_opt("fiptool"),
++ args, extraargs, imageoutfile(image));
++
++ free(args);
++
++ return ret;
++}
++
++static void fip_add_part(struct image *image,
++ const char *name, const char *path)
++{
++ struct partition *part;
++
++ part = xzalloc(sizeof *part);
++ part->image = path;
++ part->name = name;
++ list_add_tail(&part->list, &image->partitions);
++}
++
++static cfg_opt_t fip_opts[] = {
++ CFG_STR("extraargs", "", CFGF_NONE),
++ CFG_STR_LIST("tos-fw", NULL, CFGF_NONE), /* Secure Payload BL32 (Trusted OS, Extra1, Extra 2) */
++ /* CFGF_NODEFAULT marks options passed as-is */
++ CFG_STR("scp-fwu-cfg", NULL, CFGF_NODEFAULT), /* SCP Firmware Updater Configuration FWU SCP_BL2U */
++ CFG_STR("ap-fwu-cfg", NULL, CFGF_NODEFAULT), /* AP Firmware Updater Configuration BL2U */
++ CFG_STR("fwu", NULL, CFGF_NODEFAULT), /* Firmware Updater NS_BL2U */
++ CFG_STR("fwu-cert", NULL, CFGF_NODEFAULT), /* Non-Trusted Firmware Updater certificate */
++ CFG_STR("tb-fw", NULL, CFGF_NODEFAULT), /* Trusted Boot Firmware BL2 */
++ CFG_STR("scp-fw", NULL, CFGF_NODEFAULT), /* SCP Firmware SCP_BL2 */
++ CFG_STR("soc-fw", NULL, CFGF_NODEFAULT), /* EL3 Runtime Firmware BL31 */
++ CFG_STR("nt-fw", NULL, CFGF_NODEFAULT), /* Non-Trusted Firmware BL33 */
++ CFG_STR("fw-config", NULL, CFGF_NODEFAULT), /* FW_CONFIG */
++ CFG_STR("hw-config", NULL, CFGF_NODEFAULT), /* HW_CONFIG */
++ CFG_STR("tb-fw-config", NULL, CFGF_NODEFAULT), /* TB_FW_CONFIG */
++ CFG_STR("soc-fw-config", NULL, CFGF_NODEFAULT), /* SOC_FW_CONFIG */
++ CFG_STR("tos-fw-config", NULL, CFGF_NODEFAULT), /* TOS_FW_CONFIG */
++ CFG_STR("nt-fw-config", NULL, CFGF_NODEFAULT), /* NT_FW_CONFIG */
++
++ CFG_STR("rot-cert", NULL, CFGF_NODEFAULT), /* Root Of Trust key certificate */
++
++ CFG_STR("trusted-key-cert", NULL, CFGF_NODEFAULT), /* Trusted key certificate */
++ CFG_STR("scp-fw-key-cert", NULL, CFGF_NODEFAULT), /* SCP Firmware key certificate */
++ CFG_STR("soc-fw-key-cert", NULL, CFGF_NODEFAULT), /* SoC Firmware key certificate */
++ CFG_STR("tos-fw-key-cert", NULL, CFGF_NODEFAULT), /* Trusted OS Firmware key certificate */
++ CFG_STR("nt-fw-key-cert", NULL, CFGF_NODEFAULT), /* Non-Trusted Firmware key certificate */
++
++ CFG_STR("tb-fw-cert", NULL, CFGF_NODEFAULT), /* Trusted Boot Firmware BL2 certificate */
++ CFG_STR("scp-fw-cert", NULL, CFGF_NODEFAULT), /* SCP Firmware content certificate */
++ CFG_STR("soc-fw-cert", NULL, CFGF_NODEFAULT), /* SoC Firmware content certificate */
++ CFG_STR("tos-fw-cert", NULL, CFGF_NODEFAULT), /* Trusted OS Firmware content certificate */
++ CFG_STR("nt-fw-cert", NULL, CFGF_NODEFAULT), /* Non-Trusted Firmware content certificate */
++
++ CFG_STR("sip-sp-cert", NULL, CFGF_NODEFAULT), /* SiP owned Secure Partition content certificate */
++ CFG_STR("plat-sp-cert", NULL, CFGF_NODEFAULT), /* Platform owned Secure Partition content certificate */
++
++ CFG_END()
++};
++
++static const char *tos_fw[] = { "tos-fw", "tos-fw-extra1", "tos-fw-extra2" };
++
++static int fip_parse(struct image *image, cfg_t *cfg)
++{
++ unsigned int i, num_tos_fw;
++ cfg_opt_t *opt;
++
++ num_tos_fw = cfg_size(cfg, "tos-fw");
++ if (num_tos_fw > ARRAY_SIZE(tos_fw)) {
++ image_error(image, "%u tos-fw binaries given, but maximum is %zu\n",
++ num_tos_fw, ARRAY_SIZE(tos_fw));
++ return -EINVAL;
++ }
++
++ for (i = 0; i < num_tos_fw; i++)
++ fip_add_part(image, tos_fw[i], cfg_getnstr(cfg, "tos-fw", i));
++
++ for (opt = fip_opts; opt->type; opt++) {
++ const char *file;
++
++ if (opt->flags != CFGF_NODEFAULT)
++ continue;
++
++ file = cfg_getstr(cfg, opt->name);
++ if (file)
++ fip_add_part(image, opt->name, file);
++ }
++
++ return 0;
++}
++
++struct image_handler fip_handler = {
++ .type = "fip",
++ .generate = fip_generate,
++ .parse = fip_parse,
++ .opts = fip_opts,
++};
+diff --git a/test/basic-images.test b/test/basic-images.test
+index efddc34a6fd3..91e7f09dd9ed 100755
+--- a/test/basic-images.test
++++ b/test/basic-images.test
+@@ -548,6 +548,14 @@ test_expect_success !includepath "includepath5" "
+ "
+
+
++exec_test_set_prereq fiptool
++test_expect_success fiptool "fip" "
++ setup_test_images &&
++ run_genimage fip.config test.fip &&
++ check_size_range images/test.fip 12804 13056 &&
++ fiptool info images/test.fip
++"
++
+ test_done
+
+ # vim: syntax=sh
+diff --git a/test/fip.config b/test/fip.config
+new file mode 100644
+index 000000000000..31a7914d69ce
+--- /dev/null
++++ b/test/fip.config
+@@ -0,0 +1,7 @@
++image test.fip {
++ fip {
++ extraargs = "--align 64"
++ fw-config = "part1.img"
++ tos-fw = { "part2.img", "part1.img" }
++ }
++}
+--
+2.30.2
+
diff --git a/patches/genimage-15/series b/patches/genimage-15/series
new file mode 100644
index 000000000000..9b36f2745ad7
--- /dev/null
+++ b/patches/genimage-15/series
@@ -0,0 +1 @@
+0001-Add-Firmware-Image-Package-FIP-support.patch
--
2.30.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [DistroKit] [PATCH 4/8] v7a: barebox-stm32mp: start collecting device tree blobs
2022-07-25 12:04 [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 2/8] v7a: tf-a: update to v2.7 Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 3/8] genimage: patch in Firmware Image Package (FIP) support Ahmad Fatoum
@ 2022-07-25 12:04 ` Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 5/8] v7a: tf-a: start collecting FIP image components Ahmad Fatoum
` (4 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Ahmad Fatoum @ 2022-07-25 12:04 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
FIP images are passed along a device tree via r2 (called hardware
config). As we want barebox to be booted with the barebox DT to
decouple kernel and bootloader updates, install the relevant barebox
DTs, but with a barebox- prefix as they would conflict with kernel
device tree blobs otherwise.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
configs/platform-v7a/rules/barebox-stm32mp.make | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/configs/platform-v7a/rules/barebox-stm32mp.make b/configs/platform-v7a/rules/barebox-stm32mp.make
index f120a097255f..aeb141f2729b 100644
--- a/configs/platform-v7a/rules/barebox-stm32mp.make
+++ b/configs/platform-v7a/rules/barebox-stm32mp.make
@@ -49,7 +49,14 @@ BAREBOX_STM32MP_IMAGES := \
images/barebox-stm32mp15x-ev1.img \
images/barebox-stm32mp157c-lxa-mc1.img
+BAREBOX_STM32MP_FIP_DTBS := \
+ stm32mp157c-dk2.dtb \
+ stm32mp157c-ev1.dtb \
+ stm32mp157c-lxa-mc1.dtb
+
BAREBOX_STM32MP_IMAGES := $(addprefix $(BAREBOX_STM32MP_BUILD_DIR)/,$(BAREBOX_STM32MP_IMAGES))
+BAREBOX_STM32MP_FIP_DTBS := \
+ $(addprefix $(BAREBOX_STM32MP_BUILD_DIR)/arch/arm/dts/,$(BAREBOX_STM32MP_FIP_DTBS))
ifdef PTXCONF_BAREBOX_STM32MP
$(BAREBOX_STM32MP_CONFIG):
@@ -87,6 +94,9 @@ $(STATEDIR)/barebox-stm32mp.targetinstall:
@$(foreach image, $(BAREBOX_STM32MP_IMAGES), \
install -m 644 \
$(image) $(IMAGEDIR)/$(notdir $(image));)
+ @$(foreach dtb, $(BAREBOX_STM32MP_FIP_DTBS), \
+ install -m 644 \
+ $(dtb) $(IMAGEDIR)/barebox-$(notdir $(dtb));)
@$(call touch)
# ----------------------------------------------------------------------------
@@ -98,6 +108,8 @@ $(STATEDIR)/barebox-stm32mp.clean:
@$(call clean_pkg, BAREBOX_STM32MP)
@$(foreach image, $(BAREBOX_STM32MP_IMAGES), \
rm -fv $(IMAGEDIR)/$(notdir $(image))$(ptx/nl))
+ @$(foreach dtb, $(BAREBOX_STM32MP_FIP_DTBS), \
+ rm -fv $(IMAGEDIR)/barebox-$(notdir $(dtb))$(ptx/nl))
# ----------------------------------------------------------------------------
# oldconfig / menuconfig
--
2.30.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [DistroKit] [PATCH 5/8] v7a: tf-a: start collecting FIP image components
2022-07-25 12:04 [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Ahmad Fatoum
` (2 preceding siblings ...)
2022-07-25 12:04 ` [DistroKit] [PATCH 4/8] v7a: barebox-stm32mp: start collecting device tree blobs Ahmad Fatoum
@ 2022-07-25 12:04 ` Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 6/8] v7a: tf-a: switch to FIP image Ahmad Fatoum
` (3 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Ahmad Fatoum @ 2022-07-25 12:04 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
For building FIP images, we need a firmware config describing e.g.
where to place components, a device tree for the bl32, a secure
monitor (SP_min, bl32.bin), as well as non-trusted firmware and
hardware configuration. The latter two will be provided by barebox,
so install here the ones provided by TF-A in addition to the TF-A
binaries itself (which will load the FIP).
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
configs/platform-v7a/platformconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index 640302b78895..1444356360ac 100644
--- a/configs/platform-v7a/platformconfig
+++ b/configs/platform-v7a/platformconfig
@@ -205,7 +205,7 @@ PTXCONF_TF_A_ARM_ARCH_MAJOR_7=y
PTXCONF_TF_A_ARM_ARCH_MAJOR=7
PTXCONF_TF_A_PLATFORMS="stm32mp1"
PTXCONF_TF_A_EXTRA_ARGS="DTB_FILE_NAME='stm32mp157c-dk2.dtb stm32mp157c-ev1.dtb stm32mp157c-lxa-mc1.dtb' STM32MP_EMMC=1 STM32MP_SDMMC=1 STM32MP_USE_STM32IMAGE=1"
-PTXCONF_TF_A_ARTIFACTS="tf-a-*.stm32"
+PTXCONF_TF_A_ARTIFACTS="tf-a-*.stm32 bl32.bin fdts/*-fw-config.dtb fdts/*-bl32.dtb"
#
# Payloads
--
2.30.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [DistroKit] [PATCH 6/8] v7a: tf-a: switch to FIP image
2022-07-25 12:04 [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Ahmad Fatoum
` (3 preceding siblings ...)
2022-07-25 12:04 ` [DistroKit] [PATCH 5/8] v7a: tf-a: start collecting FIP image components Ahmad Fatoum
@ 2022-07-25 12:04 ` Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 7/8] v7a: barebox: update v2022.04.0 → v2022.06.0 Ahmad Fatoum
` (2 subsequent siblings)
7 siblings, 0 replies; 10+ messages in thread
From: Ahmad Fatoum @ 2022-07-25 12:04 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
We have everything in place now to switch from stm32image to FIP.
This gives us upstream support for factory bootstrap via DFU and
avoids the breakage on v2.8, which will be the first release removing
support of the deprecated stm32image format.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
.../platform-v7a/config/images/stm32mp.config | 19 +++++++++++++++----
configs/platform-v7a/platformconfig | 3 ++-
.../platform-v7a/platforms/image-lxa-mc1.in | 1 +
.../platforms/image-stm32mp157c-dk2.in | 1 +
.../platforms/image-stm32mp157c-ev1.in | 1 +
.../platform-v7a/rules/barebox-stm32mp.make | 4 +---
configs/platform-v7a/rules/image-lxa-mc1.make | 4 +---
.../rules/image-stm32mp157c-dk2.make | 4 +---
.../rules/image-stm32mp157c-ev1.make | 4 +---
9 files changed, 24 insertions(+), 17 deletions(-)
diff --git a/configs/platform-v7a/config/images/stm32mp.config b/configs/platform-v7a/config/images/stm32mp.config
index eb6065c64c1a..52d0d0e8aa97 100644
--- a/configs/platform-v7a/config/images/stm32mp.config
+++ b/configs/platform-v7a/config/images/stm32mp.config
@@ -5,15 +5,15 @@ image @IMAGE@ {
gpt-no-backup = true
}
partition fsbl1 {
- image = "stm32mp1-tf-a-@STM32MP_BOARD_FSBL@.stm32"
+ image = "stm32mp1-tf-a-@STM32MP_BOARD@.stm32"
size = 256K
}
partition fsbl2 {
- image = "stm32mp1-tf-a-@STM32MP_BOARD_FSBL@.stm32"
+ image = "stm32mp1-tf-a-@STM32MP_BOARD@.stm32"
size = 256K
}
- partition ssbl {
- image = "barebox-@STM32MP_BOARD_SSBL@.img"
+ partition fip {
+ image = "@STM32MP_BOARD@.fip"
size = 1M
}
partition barebox-environment {
@@ -26,4 +26,15 @@ image @IMAGE@ {
size = 100M
}
}
+
+image @STM32MP_BOARD@.fip {
+ fip {
+ fw-config = "stm32mp1-@STM32MP_BOARD@-fw-config.dtb"
+ hw-config = "barebox-@STM32MP_BOARD@.dtb"
+ nt-fw = "barebox-stm32mp-generic-bl33.img"
+ tos-fw = { "stm32mp1-bl32.bin" }
+ tos-fw-config = "stm32mp1-@STM32MP_BOARD@-bl32.dtb"
+ }
+ size = 1M
+}
/* vim: set tabstop=8 noexpandtab : */
diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index 1444356360ac..5b5c8bc383fe 100644
--- a/configs/platform-v7a/platformconfig
+++ b/configs/platform-v7a/platformconfig
@@ -204,7 +204,7 @@ PTXCONF_TF_A_ARM_ARCH_MAJOR_7=y
# PTXCONF_TF_A_ARM_ARCH_MAJOR_8_32_BIT is not set
PTXCONF_TF_A_ARM_ARCH_MAJOR=7
PTXCONF_TF_A_PLATFORMS="stm32mp1"
-PTXCONF_TF_A_EXTRA_ARGS="DTB_FILE_NAME='stm32mp157c-dk2.dtb stm32mp157c-ev1.dtb stm32mp157c-lxa-mc1.dtb' STM32MP_EMMC=1 STM32MP_SDMMC=1 STM32MP_USE_STM32IMAGE=1"
+PTXCONF_TF_A_EXTRA_ARGS="DTB_FILE_NAME='stm32mp157c-dk2.dtb stm32mp157c-ev1.dtb stm32mp157c-lxa-mc1.dtb' STM32MP_EMMC=1 STM32MP_SDMMC=1 STM32MP_USB_PROGRAMMER=1"
PTXCONF_TF_A_ARTIFACTS="tf-a-*.stm32 bl32.bin fdts/*-fw-config.dtb fdts/*-bl32.dtb"
#
@@ -316,6 +316,7 @@ PTXCONF_HOST_M4=y
PTXCONF_HOST_MTOOLS=y
PTXCONF_HOST_SYSTEM_BC=y
PTXCONF_HOST_UTIL_LINUX_NG=y
+PTXCONF_HOST_TF_A=y
#
# non-free firmware blobs
diff --git a/configs/platform-v7a/platforms/image-lxa-mc1.in b/configs/platform-v7a/platforms/image-lxa-mc1.in
index baae9c47edd4..affb04eed9de 100644
--- a/configs/platform-v7a/platforms/image-lxa-mc1.in
+++ b/configs/platform-v7a/platforms/image-lxa-mc1.in
@@ -3,6 +3,7 @@
config IMAGE_LXA_MC1
tristate
select HOST_GENIMAGE
+ select HOST_TF_A
select IMAGE_ROOT_EXT
select BAREBOX_STM32MP
select TF_A
diff --git a/configs/platform-v7a/platforms/image-stm32mp157c-dk2.in b/configs/platform-v7a/platforms/image-stm32mp157c-dk2.in
index d7b9c235edaa..d146b96bac70 100644
--- a/configs/platform-v7a/platforms/image-stm32mp157c-dk2.in
+++ b/configs/platform-v7a/platforms/image-stm32mp157c-dk2.in
@@ -3,6 +3,7 @@
config IMAGE_STM32MP157C_DK2
tristate
select HOST_GENIMAGE
+ select HOST_TF_A
select IMAGE_ROOT_EXT
select BAREBOX_STM32MP
select TF_A
diff --git a/configs/platform-v7a/platforms/image-stm32mp157c-ev1.in b/configs/platform-v7a/platforms/image-stm32mp157c-ev1.in
index d0b60a4956c4..7bc91af9e34c 100644
--- a/configs/platform-v7a/platforms/image-stm32mp157c-ev1.in
+++ b/configs/platform-v7a/platforms/image-stm32mp157c-ev1.in
@@ -3,6 +3,7 @@
config IMAGE_STM32MP157C_EV1
tristate
select HOST_GENIMAGE
+ select HOST_TF_A
select IMAGE_ROOT_EXT
select BAREBOX_STM32MP
select TF_A
diff --git a/configs/platform-v7a/rules/barebox-stm32mp.make b/configs/platform-v7a/rules/barebox-stm32mp.make
index aeb141f2729b..24df76194860 100644
--- a/configs/platform-v7a/rules/barebox-stm32mp.make
+++ b/configs/platform-v7a/rules/barebox-stm32mp.make
@@ -45,9 +45,7 @@ BAREBOX_STM32MP_CONF_OPT := \
BAREBOX_STM32MP_MAKE_OPT := $(BAREBOX_STM32MP_CONF_OPT)
BAREBOX_STM32MP_IMAGES := \
- images/barebox-stm32mp15xx-dkx.img \
- images/barebox-stm32mp15x-ev1.img \
- images/barebox-stm32mp157c-lxa-mc1.img
+ images/barebox-stm32mp-generic-bl33.img
BAREBOX_STM32MP_FIP_DTBS := \
stm32mp157c-dk2.dtb \
diff --git a/configs/platform-v7a/rules/image-lxa-mc1.make b/configs/platform-v7a/rules/image-lxa-mc1.make
index 058a9d100e11..333a5f606104 100644
--- a/configs/platform-v7a/rules/image-lxa-mc1.make
+++ b/configs/platform-v7a/rules/image-lxa-mc1.make
@@ -11,9 +11,7 @@
#
IMAGE_PACKAGES-$(PTXCONF_IMAGE_LXA_MC1) += image-lxa-mc1
-IMAGE_LXA_MC1_ENV := \
- STM32MP_BOARD_FSBL=stm32mp157c-lxa-mc1 \
- STM32MP_BOARD_SSBL=stm32mp157c-lxa-mc1
+IMAGE_LXA_MC1_ENV := STM32MP_BOARD=stm32mp157c-lxa-mc1
#
# Paths and names
diff --git a/configs/platform-v7a/rules/image-stm32mp157c-dk2.make b/configs/platform-v7a/rules/image-stm32mp157c-dk2.make
index 7c0f4424936a..fb14c7a95fa9 100644
--- a/configs/platform-v7a/rules/image-stm32mp157c-dk2.make
+++ b/configs/platform-v7a/rules/image-stm32mp157c-dk2.make
@@ -11,9 +11,7 @@
#
IMAGE_PACKAGES-$(PTXCONF_IMAGE_STM32MP157C_DK2) += image-stm32mp157c-dk2
-IMAGE_STM32MP157C_DK2_ENV := \
- STM32MP_BOARD_FSBL=stm32mp157c-dk2 \
- STM32MP_BOARD_SSBL=stm32mp15xx-dkx
+IMAGE_STM32MP157C_DK2_ENV := STM32MP_BOARD=stm32mp157c-dk2
#
# Paths and names
diff --git a/configs/platform-v7a/rules/image-stm32mp157c-ev1.make b/configs/platform-v7a/rules/image-stm32mp157c-ev1.make
index 862ea5a866ce..297b0f639c7b 100644
--- a/configs/platform-v7a/rules/image-stm32mp157c-ev1.make
+++ b/configs/platform-v7a/rules/image-stm32mp157c-ev1.make
@@ -11,9 +11,7 @@
#
IMAGE_PACKAGES-$(PTXCONF_IMAGE_STM32MP157C_EV1) += image-stm32mp157c-ev1
-IMAGE_STM32MP157C_EV1_ENV := \
- STM32MP_BOARD_FSBL=stm32mp157c-ev1 \
- STM32MP_BOARD_SSBL=stm32mp15x-ev1
+IMAGE_STM32MP157C_EV1_ENV := STM32MP_BOARD=stm32mp157c-ev1
#
# Paths and names
--
2.30.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [DistroKit] [PATCH 7/8] v7a: barebox: update v2022.04.0 → v2022.06.0
2022-07-25 12:04 [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Ahmad Fatoum
` (4 preceding siblings ...)
2022-07-25 12:04 ` [DistroKit] [PATCH 6/8] v7a: tf-a: switch to FIP image Ahmad Fatoum
@ 2022-07-25 12:04 ` Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 8/8] v7a: barebox: ignore card-detect for booted SD-Card Ahmad Fatoum
2022-09-05 13:51 ` [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Robert Schwebel
7 siblings, 0 replies; 10+ messages in thread
From: Ahmad Fatoum @ 2022-07-25 12:04 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
There has been two barebox releases in the mean time, so give the v7a
barebox-common an update to get rid of the patches we carry.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
.../platform-v7a/barebox-am335x-mlo.config | 3 +-
configs/platform-v7a/barebox-am335x.config | 6 +-
.../platform-v7a/barebox-am335x.config.diff | 3 +-
configs/platform-v7a/barebox-at91.config | 6 +-
configs/platform-v7a/barebox-at91.config.diff | 2 +-
configs/platform-v7a/barebox-mx6.config | 5 +-
configs/platform-v7a/barebox-mx6.config.diff | 2 +-
configs/platform-v7a/barebox-rpi2.config | 5 +-
configs/platform-v7a/barebox-rpi2.config.diff | 2 +-
configs/platform-v7a/barebox-stm32mp.config | 6 +-
.../platform-v7a/barebox-stm32mp.config.diff | 2 +-
configs/platform-v7a/barebox-vexpress.config | 5 +-
.../platform-v7a/barebox-vexpress.config.diff | 2 +-
configs/platform-v7a/barebox.config | 5 +-
...ompilation-of-32-bit-ENTRY_FUNCTION_.patch | 57 --
...35-auxiliary-peripheral-clock-driver.patch | 119 -----
...gn-non-zero-priorities-to-all-clocks.patch | 492 ------------------
...rd-dt-2nd-call-arm_cpu_lowlevel_init.patch | 40 --
...n-t-warn-about-lack-of-videocore-fdt.patch | 37 --
.../patches/barebox-2022.04.0/series | 5 -
configs/platform-v7a/platformconfig | 4 +-
21 files changed, 42 insertions(+), 766 deletions(-)
delete mode 100644 configs/platform-v7a/patches/barebox-2022.04.0/0001-ARM-asm-fix-miscompilation-of-32-bit-ENTRY_FUNCTION_.patch
delete mode 100644 configs/platform-v7a/patches/barebox-2022.04.0/0002-clk-add-BCM2835-auxiliary-peripheral-clock-driver.patch
delete mode 100644 configs/platform-v7a/patches/barebox-2022.04.0/0003-clocksource-assign-non-zero-priorities-to-all-clocks.patch
delete mode 100644 configs/platform-v7a/patches/barebox-2022.04.0/0004-ARM-cpu-board-dt-2nd-call-arm_cpu_lowlevel_init.patch
delete mode 100644 configs/platform-v7a/patches/barebox-2022.04.0/0005-ARM-rpi-don-t-warn-about-lack-of-videocore-fdt.patch
delete mode 100644 configs/platform-v7a/patches/barebox-2022.04.0/series
diff --git a/configs/platform-v7a/barebox-am335x-mlo.config b/configs/platform-v7a/barebox-am335x-mlo.config
index e6d96e739cd3..8d01f854c874 100644
--- a/configs/platform-v7a/barebox-am335x-mlo.config
+++ b/configs/platform-v7a/barebox-am335x-mlo.config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Barebox/arm 2022.04.0 Configuration
+# Barebox/arm 2022.06.0 Configuration
#
CONFIG_ARM=y
CONFIG_ARM_USE_COMPRESSED_DTB=y
@@ -61,6 +61,7 @@ CONFIG_OMAP_MULTI_BOARDS=y
CONFIG_MACH_AFI_GF=y
# CONFIG_MACH_BEAGLE is not set
CONFIG_MACH_BEAGLEBONE=y
+# CONFIG_MACH_MYIRTECH_X335X is not set
CONFIG_MACH_PHYTEC_SOM_AM335X=y
# CONFIG_MACH_VSCOM_BALTOS is not set
# CONFIG_MACH_WAGO_PFC_AM35XX is not set
diff --git a/configs/platform-v7a/barebox-am335x.config b/configs/platform-v7a/barebox-am335x.config
index 3554401a0fb0..964b9dd41a61 100644
--- a/configs/platform-v7a/barebox-am335x.config
+++ b/configs/platform-v7a/barebox-am335x.config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Barebox/arm 2022.04.0 Configuration
+# Barebox/arm 2022.06.0 Configuration
#
CONFIG_ARM=y
CONFIG_ARM_LINUX=y
@@ -65,6 +65,7 @@ CONFIG_OMAP_MULTI_BOARDS=y
CONFIG_MACH_AFI_GF=y
# CONFIG_MACH_BEAGLE is not set
CONFIG_MACH_BEAGLEBONE=y
+# CONFIG_MACH_MYIRTECH_X335X is not set
# CONFIG_MACH_PHYTEC_SOM_AM335X is not set
# CONFIG_MACH_VSCOM_BALTOS is not set
# CONFIG_MACH_WAGO_PFC_AM35XX is not set
@@ -379,6 +380,7 @@ CONFIG_CMD_MIITOOL=y
CONFIG_CMD_PING=y
CONFIG_CMD_TFTP=y
CONFIG_CMD_IP_ROUTE_GET=y
+# CONFIG_CMD_ETHLOG is not set
# end of Network
#
@@ -517,6 +519,7 @@ CONFIG_DRIVER_NET_CPSW=y
# CONFIG_AT803X_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_DP83867_PHY is not set
+# CONFIG_DP83TD510_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MICREL_PHY is not set
@@ -537,6 +540,7 @@ CONFIG_NET_USB_ASIX=y
# CONFIG_USB_NET_AX88179_178A is not set
CONFIG_NET_USB_SMSC95XX=y
# CONFIG_NET_USB_RTL8152 is not set
+# CONFIG_DSA is not set
# end of Network drivers
#
diff --git a/configs/platform-v7a/barebox-am335x.config.diff b/configs/platform-v7a/barebox-am335x.config.diff
index d13e6f828218..376cddeaaa0e 100644
--- a/configs/platform-v7a/barebox-am335x.config.diff
+++ b/configs/platform-v7a/barebox-am335x.config.diff
@@ -1,4 +1,4 @@
-e763acc45047a436f8f51a20f6c5e230
+ce1ca5fe3cea9cabd6af79b60ecde84b
# CONFIG_AM33XX_NET_BOOT is not set
CONFIG_ARCH_AM33XX=y
# CONFIG_ARCH_BCM283X is not set
@@ -58,6 +58,7 @@ CONFIG_IMAGE_SPARSE=y
CONFIG_MACH_AFI_GF=y
# CONFIG_MACH_BEAGLE is not set
CONFIG_MACH_BEAGLEBONE=y
+# CONFIG_MACH_MYIRTECH_X335X is not set
# CONFIG_MACH_PHYTEC_SOM_AM335X is not set
# CONFIG_MACH_RPI2 is undefined
# CONFIG_MACH_RPI3 is undefined
diff --git a/configs/platform-v7a/barebox-at91.config b/configs/platform-v7a/barebox-at91.config
index a0382de22f76..4306cfd4bcae 100644
--- a/configs/platform-v7a/barebox-at91.config
+++ b/configs/platform-v7a/barebox-at91.config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Barebox/arm 2022.04.0 Configuration
+# Barebox/arm 2022.06.0 Configuration
#
CONFIG_ARM=y
CONFIG_ARM_LINUX=y
@@ -377,6 +377,7 @@ CONFIG_NET_CMD_IFUP=y
CONFIG_CMD_PING=y
CONFIG_CMD_TFTP=y
CONFIG_CMD_IP_ROUTE_GET=y
+# CONFIG_CMD_ETHLOG is not set
# end of Network
#
@@ -510,6 +511,7 @@ CONFIG_DRIVER_NET_MICREL=y
# CONFIG_AT803X_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_DP83867_PHY is not set
+# CONFIG_DP83TD510_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MICREL_PHY is not set
@@ -524,6 +526,8 @@ CONFIG_DRIVER_NET_MICREL=y
# CONFIG_MDIO_BITBANG is not set
# CONFIG_MDIO_BUS_MUX_GPIO is not set
# end of phylib
+
+# CONFIG_DSA is not set
# end of Network drivers
#
diff --git a/configs/platform-v7a/barebox-at91.config.diff b/configs/platform-v7a/barebox-at91.config.diff
index 8f173ecd1982..ed1ed6d7d4e2 100644
--- a/configs/platform-v7a/barebox-at91.config.diff
+++ b/configs/platform-v7a/barebox-at91.config.diff
@@ -1,4 +1,4 @@
-e763acc45047a436f8f51a20f6c5e230
+ce1ca5fe3cea9cabd6af79b60ecde84b
CONFIG_ARCH_AT91=y
# CONFIG_ARCH_BCM283X is not set
CONFIG_ARCH_TEXT_BASE=0x23f00000
diff --git a/configs/platform-v7a/barebox-mx6.config b/configs/platform-v7a/barebox-mx6.config
index 23d2fb6ab41e..4d98b5e205e6 100644
--- a/configs/platform-v7a/barebox-mx6.config
+++ b/configs/platform-v7a/barebox-mx6.config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Barebox/arm 2022.04.0 Configuration
+# Barebox/arm 2022.06.0 Configuration
#
CONFIG_ARM=y
CONFIG_ARM_LINUX=y
@@ -453,6 +453,7 @@ CONFIG_CMD_MIITOOL=y
CONFIG_CMD_PING=y
CONFIG_CMD_TFTP=y
CONFIG_CMD_IP_ROUTE_GET=y
+# CONFIG_CMD_ETHLOG is not set
# end of Network
#
@@ -596,6 +597,7 @@ CONFIG_DRIVER_NET_FEC_IMX=y
CONFIG_AT803X_PHY=y
# CONFIG_DAVICOM_PHY is not set
# CONFIG_DP83867_PHY is not set
+# CONFIG_DP83TD510_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_MARVELL_PHY is not set
CONFIG_MICREL_PHY=y
@@ -616,6 +618,7 @@ CONFIG_NET_USB_ASIX=y
# CONFIG_USB_NET_AX88179_178A is not set
CONFIG_NET_USB_SMSC95XX=y
# CONFIG_NET_USB_RTL8152 is not set
+# CONFIG_DSA is not set
# end of Network drivers
#
diff --git a/configs/platform-v7a/barebox-mx6.config.diff b/configs/platform-v7a/barebox-mx6.config.diff
index 36ba2904fd8f..b9a05e41a1db 100644
--- a/configs/platform-v7a/barebox-mx6.config.diff
+++ b/configs/platform-v7a/barebox-mx6.config.diff
@@ -1,4 +1,4 @@
-e763acc45047a436f8f51a20f6c5e230
+ce1ca5fe3cea9cabd6af79b60ecde84b
# CONFIG_ARCH_BCM283X is not set
CONFIG_ARCH_HAS_FEC_IMX=y
CONFIG_ARCH_HAS_IMX_GPT=y
diff --git a/configs/platform-v7a/barebox-rpi2.config b/configs/platform-v7a/barebox-rpi2.config
index 67e19233b1b2..77bb09edbdce 100644
--- a/configs/platform-v7a/barebox-rpi2.config
+++ b/configs/platform-v7a/barebox-rpi2.config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Barebox/arm 2022.04.0 Configuration
+# Barebox/arm 2022.06.0 Configuration
#
CONFIG_ARM=y
CONFIG_ARM_LINUX=y
@@ -360,6 +360,7 @@ CONFIG_CMD_MIITOOL=y
CONFIG_CMD_PING=y
CONFIG_CMD_TFTP=y
CONFIG_CMD_IP_ROUTE_GET=y
+# CONFIG_CMD_ETHLOG is not set
# end of Network
#
@@ -493,6 +494,7 @@ CONFIG_PHYLIB=y
# CONFIG_AT803X_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_DP83867_PHY is not set
+# CONFIG_DP83TD510_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MICREL_PHY is not set
@@ -513,6 +515,7 @@ CONFIG_NET_USB_ASIX=y
# CONFIG_USB_NET_AX88179_178A is not set
CONFIG_NET_USB_SMSC95XX=y
# CONFIG_NET_USB_RTL8152 is not set
+# CONFIG_DSA is not set
# end of Network drivers
#
diff --git a/configs/platform-v7a/barebox-rpi2.config.diff b/configs/platform-v7a/barebox-rpi2.config.diff
index 42233c546822..f7ffae897169 100644
--- a/configs/platform-v7a/barebox-rpi2.config.diff
+++ b/configs/platform-v7a/barebox-rpi2.config.diff
@@ -1,4 +1,4 @@
-e763acc45047a436f8f51a20f6c5e230
+ce1ca5fe3cea9cabd6af79b60ecde84b
CONFIG_ARM_ASM_UNIFIED=y
CONFIG_BOOTM_INITRD=y
# CONFIG_CMD_I2C is undefined
diff --git a/configs/platform-v7a/barebox-stm32mp.config b/configs/platform-v7a/barebox-stm32mp.config
index 23751d5362dd..15b2a8393345 100644
--- a/configs/platform-v7a/barebox-stm32mp.config
+++ b/configs/platform-v7a/barebox-stm32mp.config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Barebox/arm 2022.04.0 Configuration
+# Barebox/arm 2022.06.0 Configuration
#
CONFIG_ARM=y
CONFIG_ARM_LINUX=y
@@ -360,6 +360,7 @@ CONFIG_CMD_MIITOOL=y
CONFIG_CMD_PING=y
CONFIG_CMD_TFTP=y
CONFIG_CMD_IP_ROUTE_GET=y
+# CONFIG_CMD_ETHLOG is not set
# end of Network
#
@@ -493,6 +494,7 @@ CONFIG_DRIVER_NET_DESIGNWARE_STM32=y
CONFIG_AT803X_PHY=y
# CONFIG_DAVICOM_PHY is not set
# CONFIG_DP83867_PHY is not set
+# CONFIG_DP83TD510_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_MARVELL_PHY is not set
CONFIG_MICREL_PHY=y
@@ -507,6 +509,8 @@ CONFIG_MICREL_PHY=y
# CONFIG_MDIO_BITBANG is not set
# CONFIG_MDIO_BUS_MUX_GPIO is not set
# end of phylib
+
+# CONFIG_DSA is not set
# end of Network drivers
#
diff --git a/configs/platform-v7a/barebox-stm32mp.config.diff b/configs/platform-v7a/barebox-stm32mp.config.diff
index 9d8dd43ab352..d14e40f60b54 100644
--- a/configs/platform-v7a/barebox-stm32mp.config.diff
+++ b/configs/platform-v7a/barebox-stm32mp.config.diff
@@ -1,4 +1,4 @@
-e763acc45047a436f8f51a20f6c5e230
+ce1ca5fe3cea9cabd6af79b60ecde84b
# CONFIG_ARCH_BCM283X is not set
CONFIG_ARCH_HAS_RESET_CONTROLLER=y
CONFIG_ARCH_NR_GPIO=416
diff --git a/configs/platform-v7a/barebox-vexpress.config b/configs/platform-v7a/barebox-vexpress.config
index 33d166ce2a98..e6f50d1274a3 100644
--- a/configs/platform-v7a/barebox-vexpress.config
+++ b/configs/platform-v7a/barebox-vexpress.config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Barebox/arm 2022.04.0 Configuration
+# Barebox/arm 2022.06.0 Configuration
#
CONFIG_ARM=y
CONFIG_ARM_LINUX=y
@@ -348,6 +348,7 @@ CONFIG_NET_CMD_IFUP=y
CONFIG_CMD_PING=y
CONFIG_CMD_TFTP=y
CONFIG_CMD_IP_ROUTE_GET=y
+# CONFIG_CMD_ETHLOG is not set
# end of Network
#
@@ -480,6 +481,7 @@ CONFIG_DRIVER_NET_SMC911X=y
# CONFIG_AT803X_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_DP83867_PHY is not set
+# CONFIG_DP83TD510_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MICREL_PHY is not set
@@ -499,6 +501,7 @@ CONFIG_NET_USB_ASIX=y
# CONFIG_USB_NET_AX88179_178A is not set
CONFIG_NET_USB_SMSC95XX=y
# CONFIG_NET_USB_RTL8152 is not set
+# CONFIG_DSA is not set
# end of Network drivers
#
diff --git a/configs/platform-v7a/barebox-vexpress.config.diff b/configs/platform-v7a/barebox-vexpress.config.diff
index 3548882baf41..f09afd233e7f 100644
--- a/configs/platform-v7a/barebox-vexpress.config.diff
+++ b/configs/platform-v7a/barebox-vexpress.config.diff
@@ -1,4 +1,4 @@
-e763acc45047a436f8f51a20f6c5e230
+ce1ca5fe3cea9cabd6af79b60ecde84b
CONFIG_AMBA_SP804=y
# CONFIG_ARCH_BCM283X is not set
CONFIG_ARCH_VEXPRESS=y
diff --git a/configs/platform-v7a/barebox.config b/configs/platform-v7a/barebox.config
index 62db9479f339..9e15a66d08e1 100644
--- a/configs/platform-v7a/barebox.config
+++ b/configs/platform-v7a/barebox.config
@@ -1,6 +1,6 @@
#
# Automatically generated file; DO NOT EDIT.
-# Barebox/arm 2022.04.0 Configuration
+# Barebox/arm 2022.06.0 Configuration
#
CONFIG_ARM=y
CONFIG_ARM_LINUX=y
@@ -360,6 +360,7 @@ CONFIG_NET_CMD_IFUP=y
CONFIG_CMD_PING=y
CONFIG_CMD_TFTP=y
CONFIG_CMD_IP_ROUTE_GET=y
+# CONFIG_CMD_ETHLOG is not set
# end of Network
#
@@ -495,6 +496,7 @@ CONFIG_PHYLIB=y
# CONFIG_AT803X_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_DP83867_PHY is not set
+# CONFIG_DP83TD510_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MICREL_PHY is not set
@@ -515,6 +517,7 @@ CONFIG_NET_USB_ASIX=y
# CONFIG_USB_NET_AX88179_178A is not set
CONFIG_NET_USB_SMSC95XX=y
# CONFIG_NET_USB_RTL8152 is not set
+# CONFIG_DSA is not set
# end of Network drivers
#
diff --git a/configs/platform-v7a/patches/barebox-2022.04.0/0001-ARM-asm-fix-miscompilation-of-32-bit-ENTRY_FUNCTION_.patch b/configs/platform-v7a/patches/barebox-2022.04.0/0001-ARM-asm-fix-miscompilation-of-32-bit-ENTRY_FUNCTION_.patch
deleted file mode 100644
index 21088e9cee38..000000000000
--- a/configs/platform-v7a/patches/barebox-2022.04.0/0001-ARM-asm-fix-miscompilation-of-32-bit-ENTRY_FUNCTION_.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-From 687c229fb85f1116eef2a103617e44dd0bca0953 Mon Sep 17 00:00:00 2001
-From: Ahmad Fatoum <a.fatoum@pengutronix.de>
-Date: Fri, 22 Apr 2022 14:47:53 +0200
-Subject: [PATCH 1/5] ARM: asm: fix miscompilation of 32-bit
- ENTRY_FUNCTION_WITHSTACK
-
-gcc-11.1.1 shipped with OSELAS.Toolchain-2021.07.0 hoists a single
-instruction from __ARM_SETUP_STACK in front of __barebox_arm_head
-breaking the barebox header format for the Raspberry Pi 3. This can't
-happen with ARM64 and the Raspberry Pi entry points are currently the
-only 32-bit users.
-
-While the resulting barebox image was still bootable, header detection
-would fail. Add an intermediate naked function to work around this.
-
-This is not required for plain ENTRY_FUNCTION, because the
-board-supplied entry point is already NAKED. For
-ENTRY_FUNCTION_WITH_FUNCTION, that same entry point is intentionally
-non-naked to reduce pitfalls for board code authors..
-
-Fixes: 880c9803b95a ("ARM: implement ENTRY_FUNCTION_WITHSTACK")
-Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
----
- arch/arm/include/asm/barebox-arm.h | 10 ++++++++--
- 1 file changed, 8 insertions(+), 2 deletions(-)
-
-diff --git a/arch/arm/include/asm/barebox-arm.h b/arch/arm/include/asm/barebox-arm.h
-index d915cde294a4..8b0c00633277 100644
---- a/arch/arm/include/asm/barebox-arm.h
-+++ b/arch/arm/include/asm/barebox-arm.h
-@@ -194,15 +194,21 @@ static inline unsigned long arm_mem_barebox_image(unsigned long membase,
- void name(ulong r0, ulong r1, ulong r2); \
- \
- static void __##name(ulong, ulong, ulong); \
-+ static void ____##name(ulong, ulong, ulong); \
- \
- void NAKED __section(.text_head_entry_##name) name \
- (ulong r0, ulong r1, ulong r2) \
- { \
- __barebox_arm_head(); \
-- __ARM_SETUP_STACK(stack_top); \
- __##name(r0, r1, r2); \
- } \
-- static void noinline __##name \
-+ static void NAKED noinline __##name \
-+ (ulong r0, ulong r1, ulong r2) \
-+ { \
-+ __ARM_SETUP_STACK(stack_top); \
-+ ____##name(r0, r1, r2); \
-+ } \
-+ static void noinline ____##name \
- (ulong arg0, ulong arg1, ulong arg2)
-
-
---
-2.30.2
-
diff --git a/configs/platform-v7a/patches/barebox-2022.04.0/0002-clk-add-BCM2835-auxiliary-peripheral-clock-driver.patch b/configs/platform-v7a/patches/barebox-2022.04.0/0002-clk-add-BCM2835-auxiliary-peripheral-clock-driver.patch
deleted file mode 100644
index 3f6be20f8f7c..000000000000
--- a/configs/platform-v7a/patches/barebox-2022.04.0/0002-clk-add-BCM2835-auxiliary-peripheral-clock-driver.patch
+++ /dev/null
@@ -1,119 +0,0 @@
-From 36f37ded70ed0256f56fb095e7a5854394c30b9e Mon Sep 17 00:00:00 2001
-From: Ahmad Fatoum <a.fatoum@pengutronix.de>
-Date: Fri, 22 Apr 2022 15:56:19 +0200
-Subject: [PATCH 2/5] clk: add BCM2835 auxiliary peripheral clock driver
-
-Commit f6ce1103fdc4 ("ARM: rpi: move clk support to a separate driver")
-replaced board code setting up clocks with clkdev_add_physbase() with a
-proper cprman driver that registers fixed clocks and can be referenced
-from device tree.
-
-It was not fully equivalent though, because the mini UART's clock was no
-longer registered as that is provided by a different clock controller.
-
-Import the Linux v5.17 bcm2835-aux-clk driver to fix console usage on
-Raspberry Pi 3b.
-
-Fixes: f6ce1103fdc4 ("ARM: rpi: move clk support to a separate driver")
-Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
----
- drivers/clk/Makefile | 1 +
- drivers/clk/bcm/Makefile | 2 +
- drivers/clk/bcm/clk-bcm2835-aux.c | 66 +++++++++++++++++++++++++++++++
- 3 files changed, 69 insertions(+)
- create mode 100644 drivers/clk/bcm/Makefile
- create mode 100644 drivers/clk/bcm/clk-bcm2835-aux.c
-
-diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile
-index ee503c1edb5f..baf452de9873 100644
---- a/drivers/clk/Makefile
-+++ b/drivers/clk/Makefile
-@@ -26,4 +26,5 @@ obj-$(CONFIG_CLK_SIFIVE) += sifive/
- obj-$(CONFIG_SOC_STARFIVE) += starfive/
- obj-$(CONFIG_COMMON_CLK_STM32F) += clk-stm32f4.o
- obj-$(CONFIG_MACH_RPI_COMMON) += clk-rpi.o
-+obj-y += bcm/
- obj-$(CONFIG_COMMON_CLK_SCMI) += clk-scmi.o
-diff --git a/drivers/clk/bcm/Makefile b/drivers/clk/bcm/Makefile
-new file mode 100644
-index 000000000000..1539e9f592a8
---- /dev/null
-+++ b/drivers/clk/bcm/Makefile
-@@ -0,0 +1,2 @@
-+# SPDX-License-Identifier: GPL-2.0-only
-+obj-$(CONFIG_ARCH_BCM283X) += clk-bcm2835-aux.o
-diff --git a/drivers/clk/bcm/clk-bcm2835-aux.c b/drivers/clk/bcm/clk-bcm2835-aux.c
-new file mode 100644
-index 000000000000..385cfd5d3f06
---- /dev/null
-+++ b/drivers/clk/bcm/clk-bcm2835-aux.c
-@@ -0,0 +1,66 @@
-+// SPDX-License-Identifier: GPL-2.0+
-+/*
-+ * Copyright (C) 2015 Broadcom
-+ */
-+
-+#include <linux/clk.h>
-+#include <io.h>
-+#include <of_address.h>
-+#include <driver.h>
-+#include <init.h>
-+#include <dt-bindings/clock/bcm2835-aux.h>
-+
-+#define BCM2835_AUXIRQ 0x00
-+#define BCM2835_AUXENB 0x04
-+
-+static int bcm2835_aux_clk_probe(struct device_d *dev)
-+{
-+ struct clk_hw_onecell_data *onecell;
-+ const char *parent;
-+ struct clk *parent_clk;
-+ void __iomem *reg, *gate;
-+
-+ parent_clk = clk_get(dev, NULL);
-+ if (IS_ERR(parent_clk))
-+ return PTR_ERR(parent_clk);
-+ parent = __clk_get_name(parent_clk);
-+
-+ reg = of_iomap(dev->device_node, 0);
-+ if (!reg)
-+ return -ENOMEM;
-+
-+ onecell = kmalloc(struct_size(onecell, hws, BCM2835_AUX_CLOCK_COUNT),
-+ GFP_KERNEL);
-+ if (!onecell)
-+ return -ENOMEM;
-+ onecell->num = BCM2835_AUX_CLOCK_COUNT;
-+
-+ gate = reg + BCM2835_AUXENB;
-+ onecell->hws[BCM2835_AUX_CLOCK_UART] =
-+ clk_hw_register_gate(dev, "aux_uart", parent, 0, gate, 0, 0, NULL);
-+
-+ onecell->hws[BCM2835_AUX_CLOCK_SPI1] =
-+ clk_hw_register_gate(dev, "aux_spi1", parent, 0, gate, 1, 0, NULL);
-+
-+ onecell->hws[BCM2835_AUX_CLOCK_SPI2] =
-+ clk_hw_register_gate(dev, "aux_spi2", parent, 0, gate, 2, 0, NULL);
-+
-+ return of_clk_add_hw_provider(dev->device_node, of_clk_hw_onecell_get,
-+ onecell);
-+}
-+
-+static const struct of_device_id bcm2835_aux_clk_of_match[] = {
-+ { .compatible = "brcm,bcm2835-aux", },
-+ {},
-+};
-+
-+static struct driver_d bcm2835_aux_clk_driver = {
-+ .name = "bcm2835-aux-clk",
-+ .of_compatible = bcm2835_aux_clk_of_match,
-+ .probe = bcm2835_aux_clk_probe,
-+};
-+core_platform_driver(bcm2835_aux_clk_driver);
-+
-+MODULE_AUTHOR("Eric Anholt <eric@anholt.net>");
-+MODULE_DESCRIPTION("BCM2835 auxiliary peripheral clock driver");
-+MODULE_LICENSE("GPL");
---
-2.30.2
-
diff --git a/configs/platform-v7a/patches/barebox-2022.04.0/0003-clocksource-assign-non-zero-priorities-to-all-clocks.patch b/configs/platform-v7a/patches/barebox-2022.04.0/0003-clocksource-assign-non-zero-priorities-to-all-clocks.patch
deleted file mode 100644
index 8610985273ae..000000000000
--- a/configs/platform-v7a/patches/barebox-2022.04.0/0003-clocksource-assign-non-zero-priorities-to-all-clocks.patch
+++ /dev/null
@@ -1,492 +0,0 @@
-From 4c82930465ae4652ca5eb8cb808873858c1120a2 Mon Sep 17 00:00:00 2001
-From: Ahmad Fatoum <a.fatoum@pengutronix.de>
-Date: Fri, 22 Apr 2022 17:22:32 +0200
-Subject: [PATCH 3/5] clocksource: assign non-zero priorities to all
- clocksources
-
-Most barebox clocksources have a zero priority and if multiple of them
-exist, but no higher priority ones, the first to call init_clock wins.
-
-Some supported boards like the Raspberry Pi additionally depended on
-initcall ordering to favor one zero-priority clocksource over another.
-With the move to deep probe and with Commit b641580deb8c ("of: platform:
-Ensure timers are probed early"), device tree blob iteration order could
-now dictate which clocksource is ultimately used. This led to a 20 times
-slower clock source being chosen on the Raspberry Pi, because the ARM
-architected timer was taken instead of the bcm2835 timer.
-
-Fix the root cause by assigning priorities to all clocksource drivers.
-Priorities chosen are:
-
- 50: device_initcall
- 60: coredevice_initcall
- 70: postcore_initcall
- 80: core_initcall
-
-These priorities are all below 100, which was previously the lowest
-positive priority and as they are positive, they win against the dummy
-clocksource. This should ensure no priority inversion happens.
-
-Fixes: b641580deb8c ("of: platform: Ensure timers are probed early")
-Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
----
- arch/arm/mach-at91/at91rm9200_time.c | 1 +
- arch/arm/mach-davinci/time.c | 1 +
- arch/arm/mach-ep93xx/clocksource.c | 1 +
- arch/arm/mach-mxs/clocksource-imx23.c | 1 +
- arch/arm/mach-mxs/clocksource-imx28.c | 1 +
- arch/arm/mach-pxa/clocksource.c | 1 +
- arch/arm/mach-samsung/s3c-timer.c | 1 +
- arch/arm/mach-tegra/tegra20-timer.c | 1 +
- arch/arm/mach-versatile/core.c | 1 +
- arch/mips/lib/csrc-r4k.c | 1 +
- arch/mips/mach-xburst/csrc-jz4750.c | 1 +
- arch/openrisc/lib/clock.c | 1 +
- arch/powerpc/mach-mpc5xxx/time.c | 1 +
- arch/powerpc/mach-mpc85xx/time.c | 1 +
- arch/sandbox/board/clock.c | 1 +
- drivers/clocksource/amba-sp804.c | 1 +
- drivers/clocksource/arm_architected_timer.c | 1 +
- drivers/clocksource/arm_global_timer.c | 1 +
- drivers/clocksource/arm_smp_twd.c | 1 +
- drivers/clocksource/armv7m_systick.c | 1 +
- drivers/clocksource/bcm2835.c | 1 +
- drivers/clocksource/clps711x.c | 1 +
- drivers/clocksource/digic.c | 1 +
- drivers/clocksource/dw_apb_timer.c | 1 +
- drivers/clocksource/efi.c | 1 +
- drivers/clocksource/kvx_timer.c | 1 +
- drivers/clocksource/mvebu.c | 1 +
- drivers/clocksource/nomadik.c | 1 +
- drivers/clocksource/orion.c | 1 +
- drivers/clocksource/rk_timer.c | 1 +
- drivers/clocksource/timer-atmel-pit.c | 1 +
- drivers/clocksource/timer-imx-gpt.c | 1 +
- drivers/clocksource/timer-ti-32k.c | 1 +
- drivers/clocksource/timer-ti-dm.c | 1 +
- drivers/clocksource/uemd.c | 1 +
- 35 files changed, 35 insertions(+)
-
-diff --git a/arch/arm/mach-at91/at91rm9200_time.c b/arch/arm/mach-at91/at91rm9200_time.c
-index ccbefbbc33a2..110d77088169 100644
---- a/arch/arm/mach-at91/at91rm9200_time.c
-+++ b/arch/arm/mach-at91/at91rm9200_time.c
-@@ -35,6 +35,7 @@ static struct clocksource cs = {
- .mask = CLOCKSOURCE_MASK(20),
- .read = at91rm9200_clocksource_read,
- .shift = 10,
-+ .priority = 80,
- };
-
- static int clocksource_init (void)
-diff --git a/arch/arm/mach-davinci/time.c b/arch/arm/mach-davinci/time.c
-index 52b3ac3e6823..c54e49470b72 100644
---- a/arch/arm/mach-davinci/time.c
-+++ b/arch/arm/mach-davinci/time.c
-@@ -96,6 +96,7 @@ static uint64_t davinci_cs_read(void)
- static struct clocksource davinci_cs = {
- .read = davinci_cs_read,
- .mask = CLOCKSOURCE_MASK(32),
-+ .priority = 80,
- };
-
- static int timer32_config(struct timer_s *t)
-diff --git a/arch/arm/mach-ep93xx/clocksource.c b/arch/arm/mach-ep93xx/clocksource.c
-index 1f3ff7f8f20a..e2a3a397803f 100644
---- a/arch/arm/mach-ep93xx/clocksource.c
-+++ b/arch/arm/mach-ep93xx/clocksource.c
-@@ -37,6 +37,7 @@ static struct clocksource cs = {
- .read = ep93xx_clocksource_read,
- .mask = CLOCKSOURCE_MASK(32),
- .shift = 10,
-+ .priority = 80,
- };
-
- static int clocksource_init(void)
-diff --git a/arch/arm/mach-mxs/clocksource-imx23.c b/arch/arm/mach-mxs/clocksource-imx23.c
-index 0a6716f87958..ba5aad9f30dc 100644
---- a/arch/arm/mach-mxs/clocksource-imx23.c
-+++ b/arch/arm/mach-mxs/clocksource-imx23.c
-@@ -34,6 +34,7 @@ static struct clocksource cs = {
- .read = imx23_clocksource_read,
- .mask = CLOCKSOURCE_MASK(16),
- .shift = 10,
-+ .priority = 80,
- };
-
- static int imx23_clocksource_clock_change(struct notifier_block *nb, unsigned long event, void *data)
-diff --git a/arch/arm/mach-mxs/clocksource-imx28.c b/arch/arm/mach-mxs/clocksource-imx28.c
-index ea6d4b514630..65d8155ad244 100644
---- a/arch/arm/mach-mxs/clocksource-imx28.c
-+++ b/arch/arm/mach-mxs/clocksource-imx28.c
-@@ -39,6 +39,7 @@ static struct clocksource imx28_cs = {
- .read = imx28_clocksource_read,
- .mask = CLOCKSOURCE_MASK(32),
- .shift = 17,
-+ .priority = 80,
- };
-
- static int imx28_clocksource_init(void)
-diff --git a/arch/arm/mach-pxa/clocksource.c b/arch/arm/mach-pxa/clocksource.c
-index ebfe6f1c330f..3bc95827d88d 100644
---- a/arch/arm/mach-pxa/clocksource.c
-+++ b/arch/arm/mach-pxa/clocksource.c
-@@ -28,6 +28,7 @@ static struct clocksource cs = {
- .read = pxa_clocksource_read,
- .mask = 0xffffffff,
- .shift = 20,
-+ .priority = 80,
- };
-
- static int clocksource_init(void)
-diff --git a/arch/arm/mach-samsung/s3c-timer.c b/arch/arm/mach-samsung/s3c-timer.c
-index 6f38df395851..38bcebc7c4cb 100644
---- a/arch/arm/mach-samsung/s3c-timer.c
-+++ b/arch/arm/mach-samsung/s3c-timer.c
-@@ -101,6 +101,7 @@ static struct clocksource cs = {
- .read = s3c_clocksource_read,
- .mask = CLOCKSOURCE_MASK(TIMER_WIDTH),
- .shift = TIMER_SHIFT,
-+ .priority = 80,
- };
-
- static int s3c_clk_src_init(void)
-diff --git a/arch/arm/mach-tegra/tegra20-timer.c b/arch/arm/mach-tegra/tegra20-timer.c
-index 34d34f772331..8ca8cb24fad5 100644
---- a/arch/arm/mach-tegra/tegra20-timer.c
-+++ b/arch/arm/mach-tegra/tegra20-timer.c
-@@ -41,6 +41,7 @@ static uint64_t tegra20_timer_cs_read(void)
- static struct clocksource cs = {
- .read = tegra20_timer_cs_read,
- .mask = CLOCKSOURCE_MASK(32),
-+ .priority = 80,
- };
-
- static int tegra20_timer_probe(struct device_d *dev)
-diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c
-index eb94a07dc907..9a2a9cad80cc 100644
---- a/arch/arm/mach-versatile/core.c
-+++ b/arch/arm/mach-versatile/core.c
-@@ -92,6 +92,7 @@ static struct clocksource vpb_cs = {
- .read = vpb_clocksource_read,
- .mask = CLOCKSOURCE_MASK(32),
- .shift = 10,
-+ .priority = 80,
- };
-
- /* From Linux v2.6.35
-diff --git a/arch/mips/lib/csrc-r4k.c b/arch/mips/lib/csrc-r4k.c
-index 9facf04bd3e9..35fba3a29ca6 100644
---- a/arch/mips/lib/csrc-r4k.c
-+++ b/arch/mips/lib/csrc-r4k.c
-@@ -23,6 +23,7 @@ static uint64_t c0_hpt_read(void)
- static struct clocksource cs = {
- .read = c0_hpt_read,
- .mask = CLOCKSOURCE_MASK(32),
-+ .priority = 70,
- };
-
- static int clocksource_init(void)
-diff --git a/arch/mips/mach-xburst/csrc-jz4750.c b/arch/mips/mach-xburst/csrc-jz4750.c
-index 302709e59747..43135ac4987e 100644
---- a/arch/mips/mach-xburst/csrc-jz4750.c
-+++ b/arch/mips/mach-xburst/csrc-jz4750.c
-@@ -23,6 +23,7 @@ static uint64_t jz4750_cs_read(void)
- static struct clocksource jz4750_cs = {
- .read = jz4750_cs_read,
- .mask = CLOCKSOURCE_MASK(32),
-+ .priority = 80,
- };
-
- static int clocksource_init(void)
-diff --git a/arch/openrisc/lib/clock.c b/arch/openrisc/lib/clock.c
-index 5ff978e8411a..651b163f13cb 100644
---- a/arch/openrisc/lib/clock.c
-+++ b/arch/openrisc/lib/clock.c
-@@ -28,6 +28,7 @@ static struct clocksource cs = {
- .read = openrisc_clocksource_read,
- .mask = 0xffffffff,
- .shift = 12,
-+ .priority = 80,
- };
-
- static int clocksource_init(void)
-diff --git a/arch/powerpc/mach-mpc5xxx/time.c b/arch/powerpc/mach-mpc5xxx/time.c
-index 8981b14eeb7d..d690d50f0d5a 100644
---- a/arch/powerpc/mach-mpc5xxx/time.c
-+++ b/arch/powerpc/mach-mpc5xxx/time.c
-@@ -29,6 +29,7 @@ static struct clocksource cs = {
- .read = ppc_clocksource_read,
- .mask = CLOCKSOURCE_MASK(32),
- .shift = 15,
-+ .priority = 80,
- };
-
- static int clocksource_init(void)
-diff --git a/arch/powerpc/mach-mpc85xx/time.c b/arch/powerpc/mach-mpc85xx/time.c
-index 067bce8ea64e..5981995ac2ae 100644
---- a/arch/powerpc/mach-mpc85xx/time.c
-+++ b/arch/powerpc/mach-mpc85xx/time.c
-@@ -28,6 +28,7 @@ static uint64_t ppc_clocksource_read(void)
- static struct clocksource cs = {
- .read = ppc_clocksource_read,
- .mask = CLOCKSOURCE_MASK(64),
-+ .priority = 80,
- };
-
- static int clocksource_init(void)
-diff --git a/arch/sandbox/board/clock.c b/arch/sandbox/board/clock.c
-index b005e71633ff..1787fb578626 100644
---- a/arch/sandbox/board/clock.c
-+++ b/arch/sandbox/board/clock.c
-@@ -28,6 +28,7 @@ static struct clocksource cs = {
- .read = linux_clocksource_read,
- .mask = CLOCKSOURCE_MASK(32),
- .shift = 10,
-+ .priority = 80,
- };
-
- static int clocksource_init (void)
-diff --git a/drivers/clocksource/amba-sp804.c b/drivers/clocksource/amba-sp804.c
-index a22e567301b2..fcb2b0254bc3 100644
---- a/drivers/clocksource/amba-sp804.c
-+++ b/drivers/clocksource/amba-sp804.c
-@@ -26,6 +26,7 @@ static struct clocksource sp804_clksrc = {
- .read = sp804_read,
- .shift = 20,
- .mask = CLOCKSOURCE_MASK(32),
-+ .priority = 60,
- };
-
- static int sp804_probe(struct amba_device *dev, const struct amba_id *id)
-diff --git a/drivers/clocksource/arm_architected_timer.c b/drivers/clocksource/arm_architected_timer.c
-index 16e40a1a0b3b..d5948fe9482c 100644
---- a/drivers/clocksource/arm_architected_timer.c
-+++ b/drivers/clocksource/arm_architected_timer.c
-@@ -19,6 +19,7 @@ static struct clocksource cs = {
- .read = arm_arch_clocksource_read,
- .mask = CLOCKSOURCE_MASK(64),
- .shift = 0,
-+ .priority = 70,
- };
-
- static int arm_arch_timer_probe(struct device_d *dev)
-diff --git a/drivers/clocksource/arm_global_timer.c b/drivers/clocksource/arm_global_timer.c
-index f18c6e4152f9..65bfca355855 100644
---- a/drivers/clocksource/arm_global_timer.c
-+++ b/drivers/clocksource/arm_global_timer.c
-@@ -60,6 +60,7 @@ static struct clocksource cs = {
- .read = arm_global_clocksource_read,
- .mask = CLOCKSOURCE_MASK(64),
- .shift = 0,
-+ .priority = 70,
- };
-
- static int arm_global_timer_probe(struct device_d *dev)
-diff --git a/drivers/clocksource/arm_smp_twd.c b/drivers/clocksource/arm_smp_twd.c
-index bc0c4a00b2f9..1ad754bb2b7a 100644
---- a/drivers/clocksource/arm_smp_twd.c
-+++ b/drivers/clocksource/arm_smp_twd.c
-@@ -35,6 +35,7 @@ static struct clocksource smp_twd_clksrc = {
- .read = smp_twd_read,
- .shift = 20,
- .mask = CLOCKSOURCE_MASK(32),
-+ .priority = 60,
- };
-
- #define SMP_TWD_MAX_FREQ (25 *1000 * 1000)
-diff --git a/drivers/clocksource/armv7m_systick.c b/drivers/clocksource/armv7m_systick.c
-index 5f9222c50b8a..16d89c23bde5 100644
---- a/drivers/clocksource/armv7m_systick.c
-+++ b/drivers/clocksource/armv7m_systick.c
-@@ -34,6 +34,7 @@ static struct clocksource cs = {
- .read = armv7m_systick_clocksource_read,
- .mask = CLOCKSOURCE_MASK(24),
- .shift = 0,
-+ .priority = 70,
- };
-
- static int armv7m_systick_probe(struct device_d *dev)
-diff --git a/drivers/clocksource/bcm2835.c b/drivers/clocksource/bcm2835.c
-index 5134b349157c..d84341fc4083 100644
---- a/drivers/clocksource/bcm2835.c
-+++ b/drivers/clocksource/bcm2835.c
-@@ -28,6 +28,7 @@ static uint64_t stc_read_cycles(void)
- static struct clocksource bcm2835_stc = {
- .read = stc_read_cycles,
- .mask = CLOCKSOURCE_MASK(32),
-+ .priority = 80,
- };
-
- static int bcm2835_cs_probe(struct device_d *dev)
-diff --git a/drivers/clocksource/clps711x.c b/drivers/clocksource/clps711x.c
-index cd099604786e..1fe7f6c89114 100644
---- a/drivers/clocksource/clps711x.c
-+++ b/drivers/clocksource/clps711x.c
-@@ -19,6 +19,7 @@ static uint64_t clps711x_cs_read(void)
- static struct clocksource clps711x_cs = {
- .read = clps711x_cs_read,
- .mask = CLOCKSOURCE_MASK(16),
-+ .priority = 60,
- };
-
- static int clps711x_cs_probe(struct device_d *dev)
-diff --git a/drivers/clocksource/digic.c b/drivers/clocksource/digic.c
-index 1a335582b733..234985aece44 100644
---- a/drivers/clocksource/digic.c
-+++ b/drivers/clocksource/digic.c
-@@ -26,6 +26,7 @@ static uint64_t digic_cs_read(void)
- static struct clocksource digic_cs = {
- .read = digic_cs_read,
- .mask = CLOCKSOURCE_MASK(16),
-+ .priority = 60,
- };
-
- static int digic_timer_probe(struct device_d *dev)
-diff --git a/drivers/clocksource/dw_apb_timer.c b/drivers/clocksource/dw_apb_timer.c
-index aef4f16d1494..251089cf7e16 100644
---- a/drivers/clocksource/dw_apb_timer.c
-+++ b/drivers/clocksource/dw_apb_timer.c
-@@ -94,6 +94,7 @@ static struct clocksource dw_apb_clksrc = {
- .read = dw_apb_clocksource_read,
- .mask = CLOCKSOURCE_MASK(32),
- .shift = 0,
-+ .priority = 50,
- };
-
- static int dw_apb_timer_probe(struct device_d *dev)
-diff --git a/drivers/clocksource/efi.c b/drivers/clocksource/efi.c
-index 5c8c5fd46b1e..9df5226573bc 100644
---- a/drivers/clocksource/efi.c
-+++ b/drivers/clocksource/efi.c
-@@ -93,6 +93,7 @@ static struct clocksource efi_cs = {
- .mask = CLOCKSOURCE_MASK(64),
- .shift = 0,
- .init = efi_cs_init,
-+ .priority = 80,
- };
-
- static int efi_cs_probe(struct device_d *dev)
-diff --git a/drivers/clocksource/kvx_timer.c b/drivers/clocksource/kvx_timer.c
-index 2a05d8deedce..259755eacdda 100644
---- a/drivers/clocksource/kvx_timer.c
-+++ b/drivers/clocksource/kvx_timer.c
-@@ -21,6 +21,7 @@ static struct clocksource kvx_clksrc = {
- .read = kvx_pm_read,
- .mask = CLOCKSOURCE_MASK(64),
- .shift = 0,
-+ .priority = 70,
- };
-
- static int kvx_timer_probe(struct device_d *dev)
-diff --git a/drivers/clocksource/mvebu.c b/drivers/clocksource/mvebu.c
-index eb5246e4e79b..d3214955dc8f 100644
---- a/drivers/clocksource/mvebu.c
-+++ b/drivers/clocksource/mvebu.c
-@@ -42,6 +42,7 @@ static struct clocksource cs = {
- .read = mvebu_clocksource_read,
- .mask = CLOCKSOURCE_MASK(32),
- .shift = 10,
-+ .priority = 70,
- };
-
- static int mvebu_timer_probe(struct device_d *dev)
-diff --git a/drivers/clocksource/nomadik.c b/drivers/clocksource/nomadik.c
-index d71d9da6b8c0..7cf10352eac7 100644
---- a/drivers/clocksource/nomadik.c
-+++ b/drivers/clocksource/nomadik.c
-@@ -71,6 +71,7 @@ static struct clocksource nmdk_clksrc = {
- .read = nmdk_read_timer,
- .shift = 20,
- .mask = CLOCKSOURCE_MASK(32),
-+ .priority = 60,
- };
-
- static void nmdk_timer_reset(void)
-diff --git a/drivers/clocksource/orion.c b/drivers/clocksource/orion.c
-index d40b09e5debc..4a5684980064 100644
---- a/drivers/clocksource/orion.c
-+++ b/drivers/clocksource/orion.c
-@@ -31,6 +31,7 @@ static struct clocksource clksrc = {
- .read = orion_clocksource_read,
- .mask = CLOCKSOURCE_MASK(32),
- .shift = 10,
-+ .priority = 70,
- };
-
- static int orion_timer_probe(struct device_d *dev)
-diff --git a/drivers/clocksource/rk_timer.c b/drivers/clocksource/rk_timer.c
-index 5cc8d32b601b..e94103077103 100644
---- a/drivers/clocksource/rk_timer.c
-+++ b/drivers/clocksource/rk_timer.c
-@@ -32,6 +32,7 @@ static struct clocksource rkcs = {
- .read = rockchip_get_ticks,
- .mask = CLOCKSOURCE_MASK(32),
- .shift = 10,
-+ .priority = 80,
- };
-
- static int rockchip_timer_probe(struct device_d *dev)
-diff --git a/drivers/clocksource/timer-atmel-pit.c b/drivers/clocksource/timer-atmel-pit.c
-index bbbc81788ce4..a133e384d74c 100644
---- a/drivers/clocksource/timer-atmel-pit.c
-+++ b/drivers/clocksource/timer-atmel-pit.c
-@@ -36,6 +36,7 @@ static struct clocksource cs = {
- .read = at91sam9_clocksource_read,
- .mask = CLOCKSOURCE_MASK(32),
- .shift = 10,
-+ .priority = 70,
- };
-
- static void at91_pit_stop(void)
-diff --git a/drivers/clocksource/timer-imx-gpt.c b/drivers/clocksource/timer-imx-gpt.c
-index 28f90d967d3f..7ca879f4f008 100644
---- a/drivers/clocksource/timer-imx-gpt.c
-+++ b/drivers/clocksource/timer-imx-gpt.c
-@@ -64,6 +64,7 @@ static struct clocksource cs = {
- .read = imx_clocksource_read,
- .mask = CLOCKSOURCE_MASK(32),
- .shift = 10,
-+ .priority = 70,
- };
-
- static int imx_clocksource_clock_change(struct notifier_block *nb, unsigned long event, void *data)
-diff --git a/drivers/clocksource/timer-ti-32k.c b/drivers/clocksource/timer-ti-32k.c
-index 1f3f15561e09..21cb68636954 100644
---- a/drivers/clocksource/timer-ti-32k.c
-+++ b/drivers/clocksource/timer-ti-32k.c
-@@ -47,6 +47,7 @@ static struct clocksource s32k_cs = {
- .read = s32k_clocksource_read,
- .mask = CLOCKSOURCE_MASK(32),
- .shift = 10,
-+ .priority = 70,
- };
-
- /**
-diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c
-index d43609ad1967..cdd297f10c91 100644
---- a/drivers/clocksource/timer-ti-dm.c
-+++ b/drivers/clocksource/timer-ti-dm.c
-@@ -62,6 +62,7 @@ static struct clocksource dmtimer_cs = {
- .read = dmtimer_read,
- .mask = CLOCKSOURCE_MASK(32),
- .shift = 10,
-+ .priority = 70,
- };
-
- static int omap_dmtimer_probe(struct device_d *dev)
-diff --git a/drivers/clocksource/uemd.c b/drivers/clocksource/uemd.c
-index 342260c5644b..a763eadc0c86 100644
---- a/drivers/clocksource/uemd.c
-+++ b/drivers/clocksource/uemd.c
-@@ -52,6 +52,7 @@ static uint64_t uemd_timer_cs_read(void)
- static struct clocksource uemd_cs = {
- .read = uemd_timer_cs_read,
- .mask = CLOCKSOURCE_MASK(32),
-+ .priority = 60,
- };
-
- static int uemd_timer_probe(struct device_d *dev)
---
-2.30.2
-
diff --git a/configs/platform-v7a/patches/barebox-2022.04.0/0004-ARM-cpu-board-dt-2nd-call-arm_cpu_lowlevel_init.patch b/configs/platform-v7a/patches/barebox-2022.04.0/0004-ARM-cpu-board-dt-2nd-call-arm_cpu_lowlevel_init.patch
deleted file mode 100644
index b0b825e48679..000000000000
--- a/configs/platform-v7a/patches/barebox-2022.04.0/0004-ARM-cpu-board-dt-2nd-call-arm_cpu_lowlevel_init.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From 92473f8169118472f0f40179eb60cb2cde765bb7 Mon Sep 17 00:00:00 2001
-From: Ahmad Fatoum <a.fatoum@pengutronix.de>
-Date: Sat, 23 Apr 2022 12:24:34 +0200
-Subject: [PATCH 4/5] ARM: cpu: board-dt-2nd: call arm_cpu_lowlevel_init
-
-The generic DT image could be started by boot firmware that doesn't do
-all the initialization that we do in arm_cpu_lowlevel_init(), so call it
-always for good measure. This enables using the generic image as second
-stage to the Raspberry Pi videocore.
-
-Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
----
- arch/arm/cpu/board-dt-2nd.c | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/arch/arm/cpu/board-dt-2nd.c b/arch/arm/cpu/board-dt-2nd.c
-index 0731aecd1a51..6f4a6f26a8c7 100644
---- a/arch/arm/cpu/board-dt-2nd.c
-+++ b/arch/arm/cpu/board-dt-2nd.c
-@@ -21,6 +21,8 @@ void dt_2nd_aarch64(void *fdt)
-
- /* entry point already set up stack */
-
-+ arm_cpu_lowlevel_init();
-+
- relocate_to_current_adr();
- setup_c();
-
-@@ -50,6 +52,8 @@ ENTRY_FUNCTION(start_dt_2nd, r0, r1, r2)
- {
- unsigned long image_start = (unsigned long)_text + global_variable_offset();
-
-+ arm_cpu_lowlevel_init();
-+
- arm_setup_stack(image_start);
-
- relocate_to_current_adr();
---
-2.30.2
-
diff --git a/configs/platform-v7a/patches/barebox-2022.04.0/0005-ARM-rpi-don-t-warn-about-lack-of-videocore-fdt.patch b/configs/platform-v7a/patches/barebox-2022.04.0/0005-ARM-rpi-don-t-warn-about-lack-of-videocore-fdt.patch
deleted file mode 100644
index 0586085e7148..000000000000
--- a/configs/platform-v7a/patches/barebox-2022.04.0/0005-ARM-rpi-don-t-warn-about-lack-of-videocore-fdt.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 675a65a3b42ef74ae37638f780912139a7c31cc6 Mon Sep 17 00:00:00 2001
-From: Ahmad Fatoum <a.fatoum@pengutronix.de>
-Date: Sat, 23 Apr 2022 12:54:55 +0200
-Subject: [PATCH 5/5] ARM: rpi: don't warn about lack of videocore fdt
-
-When barebox is booted as generic second stage DT image, it will throw
-an annoying but harmless error that the videocore FDT saved in PBL has
-invalid magic. This is expected because the generic code doesn't store
-the device tree, instead it passes it to barebox proper to probe from.
-Storing the DT in /vd.dtb would thus just be duplication.
-
-Remove the error message in this case.
-
-Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
----
- arch/arm/boards/raspberry-pi/rpi-common.c | 4 +---
- 1 file changed, 1 insertion(+), 3 deletions(-)
-
-diff --git a/arch/arm/boards/raspberry-pi/rpi-common.c b/arch/arm/boards/raspberry-pi/rpi-common.c
-index 9aa150de5680..82da4d646482 100644
---- a/arch/arm/boards/raspberry-pi/rpi-common.c
-+++ b/arch/arm/boards/raspberry-pi/rpi-common.c
-@@ -328,10 +328,8 @@ static void rpi_vc_fdt(void)
- return;
- }
-
-- if (magic != FDT_MAGIC) {
-- pr_err("videocore fdt saved in pbl has invalid magic\n");
-+ if (magic != FDT_MAGIC)
- return;
-- }
-
- size = be32_to_cpu(oftree->totalsize);
- if (write_file("/vc.dtb", saved_vc_fdt, size)) {
---
-2.30.2
-
diff --git a/configs/platform-v7a/patches/barebox-2022.04.0/series b/configs/platform-v7a/patches/barebox-2022.04.0/series
deleted file mode 100644
index be48ede51a32..000000000000
--- a/configs/platform-v7a/patches/barebox-2022.04.0/series
+++ /dev/null
@@ -1,5 +0,0 @@
-0001-ARM-asm-fix-miscompilation-of-32-bit-ENTRY_FUNCTION_.patch
-0002-clk-add-BCM2835-auxiliary-peripheral-clock-driver.patch
-0003-clocksource-assign-non-zero-priorities-to-all-clocks.patch
-0004-ARM-cpu-board-dt-2nd-call-arm_cpu_lowlevel_init.patch
-0005-ARM-rpi-don-t-warn-about-lack-of-videocore-fdt.patch
diff --git a/configs/platform-v7a/platformconfig b/configs/platform-v7a/platformconfig
index 5b5c8bc383fe..b85bcfea35e4 100644
--- a/configs/platform-v7a/platformconfig
+++ b/configs/platform-v7a/platformconfig
@@ -178,8 +178,8 @@ PTXCONF_CONSOLE_SPEED="115200"
# PTXCONF_AT91BOOTSTRAP2 is not set
PTXCONF_BAREBOX_COMMON_ARCH_STRING="arm"
PTXCONF_BAREBOX_COMMON=y
-PTXCONF_BAREBOX_COMMON_VERSION="2022.04.0"
-PTXCONF_BAREBOX_COMMON_MD5="e4970687cf7943eadf71b1ae6d344ff7"
+PTXCONF_BAREBOX_COMMON_VERSION="2022.06.0"
+PTXCONF_BAREBOX_COMMON_MD5="0df5eee6d253e2f98cbc811f1c5a9bf2"
PTXCONF_BAREBOX_COMMON_NEEDS_HOST_LZOP=y
PTXCONF_BAREBOX_AM335X_MLO=y
PTXCONF_BAREBOX_AM335X=y
--
2.30.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* [DistroKit] [PATCH 8/8] v7a: barebox: ignore card-detect for booted SD-Card
2022-07-25 12:04 [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Ahmad Fatoum
` (5 preceding siblings ...)
2022-07-25 12:04 ` [DistroKit] [PATCH 7/8] v7a: barebox: update v2022.04.0 → v2022.06.0 Ahmad Fatoum
@ 2022-07-25 12:04 ` Ahmad Fatoum
2022-09-05 13:51 ` [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Robert Schwebel
7 siblings, 0 replies; 10+ messages in thread
From: Ahmad Fatoum @ 2022-07-25 12:04 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
In remote labs co-located with other hardware, we've observed card
detect levers of different boards to sporadically fail to detect
the card, e.g. because the cable on the usbsdmux was yanked around
by accident. When this happens, barebox usually boots up normally as
the card detect is ignored and then Linux waits indefinitely for
the card-detect to turn active. Add a new config option that can be
enabled to avoid these issues altogether.
We enable this for all configurations, except for barebox-am335x-mlo,
which is size-constrained as it needs to fit into on-chip SRAM
and those 100 extra bytes are deemed too expensive.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
.../platform-v7a/barebox-am335x-mlo.config | 1 +
configs/platform-v7a/barebox-am335x.config | 1 +
.../platform-v7a/barebox-am335x.config.diff | 2 +-
configs/platform-v7a/barebox-at91.config | 1 +
configs/platform-v7a/barebox-at91.config.diff | 2 +-
configs/platform-v7a/barebox-mx6.config | 1 +
configs/platform-v7a/barebox-mx6.config.diff | 2 +-
configs/platform-v7a/barebox-rpi2.config | 1 +
configs/platform-v7a/barebox-rpi2.config.diff | 2 +-
configs/platform-v7a/barebox-stm32mp.config | 1 +
.../platform-v7a/barebox-stm32mp.config.diff | 2 +-
configs/platform-v7a/barebox-vexpress.config | 1 +
.../platform-v7a/barebox-vexpress.config.diff | 2 +-
configs/platform-v7a/barebox.config | 1 +
...new-MCI_BROKEN_CD-option-for-testing.patch | 122 ++++++++++++++++++
.../patches/barebox-2022.06.0/series | 1 +
16 files changed, 137 insertions(+), 6 deletions(-)
create mode 100644 configs/platform-v7a/patches/barebox-2022.06.0/0001-mci-add-new-MCI_BROKEN_CD-option-for-testing.patch
create mode 100644 configs/platform-v7a/patches/barebox-2022.06.0/series
diff --git a/configs/platform-v7a/barebox-am335x-mlo.config b/configs/platform-v7a/barebox-am335x-mlo.config
index 8d01f854c874..14f2e1e342e6 100644
--- a/configs/platform-v7a/barebox-am335x-mlo.config
+++ b/configs/platform-v7a/barebox-am335x-mlo.config
@@ -299,6 +299,7 @@ CONFIG_MCI=y
# CONFIG_MCI_WRITE is not set
# CONFIG_MCI_MMC_BOOT_PARTITIONS is not set
# CONFIG_MCI_MMC_GPP_PARTITIONS is not set
+# CONFIG_MCI_BROKEN_CD is not set
#
# --- MCI host drivers ---
diff --git a/configs/platform-v7a/barebox-am335x.config b/configs/platform-v7a/barebox-am335x.config
index 964b9dd41a61..068fd5fe1679 100644
--- a/configs/platform-v7a/barebox-am335x.config
+++ b/configs/platform-v7a/barebox-am335x.config
@@ -655,6 +655,7 @@ CONFIG_MCI_INFO=y
CONFIG_MCI_WRITE=y
# CONFIG_MCI_MMC_BOOT_PARTITIONS is not set
# CONFIG_MCI_MMC_GPP_PARTITIONS is not set
+CONFIG_MCI_BROKEN_CD=y
#
# --- MCI host drivers ---
diff --git a/configs/platform-v7a/barebox-am335x.config.diff b/configs/platform-v7a/barebox-am335x.config.diff
index 376cddeaaa0e..17dc8972da5d 100644
--- a/configs/platform-v7a/barebox-am335x.config.diff
+++ b/configs/platform-v7a/barebox-am335x.config.diff
@@ -1,4 +1,4 @@
-ce1ca5fe3cea9cabd6af79b60ecde84b
+c2cbf48a6de666e3854240d3b1769aee
# CONFIG_AM33XX_NET_BOOT is not set
CONFIG_ARCH_AM33XX=y
# CONFIG_ARCH_BCM283X is not set
diff --git a/configs/platform-v7a/barebox-at91.config b/configs/platform-v7a/barebox-at91.config
index 4306cfd4bcae..2f00891a8cfa 100644
--- a/configs/platform-v7a/barebox-at91.config
+++ b/configs/platform-v7a/barebox-at91.config
@@ -610,6 +610,7 @@ CONFIG_MCI_INFO=y
CONFIG_MCI_WRITE=y
CONFIG_MCI_MMC_BOOT_PARTITIONS=y
# CONFIG_MCI_MMC_GPP_PARTITIONS is not set
+CONFIG_MCI_BROKEN_CD=y
#
# --- MCI host drivers ---
diff --git a/configs/platform-v7a/barebox-at91.config.diff b/configs/platform-v7a/barebox-at91.config.diff
index ed1ed6d7d4e2..3e80f997e9aa 100644
--- a/configs/platform-v7a/barebox-at91.config.diff
+++ b/configs/platform-v7a/barebox-at91.config.diff
@@ -1,4 +1,4 @@
-ce1ca5fe3cea9cabd6af79b60ecde84b
+c2cbf48a6de666e3854240d3b1769aee
CONFIG_ARCH_AT91=y
# CONFIG_ARCH_BCM283X is not set
CONFIG_ARCH_TEXT_BASE=0x23f00000
diff --git a/configs/platform-v7a/barebox-mx6.config b/configs/platform-v7a/barebox-mx6.config
index 4d98b5e205e6..b6cf2e696158 100644
--- a/configs/platform-v7a/barebox-mx6.config
+++ b/configs/platform-v7a/barebox-mx6.config
@@ -767,6 +767,7 @@ CONFIG_MCI_INFO=y
CONFIG_MCI_WRITE=y
CONFIG_MCI_MMC_BOOT_PARTITIONS=y
# CONFIG_MCI_MMC_GPP_PARTITIONS is not set
+CONFIG_MCI_BROKEN_CD=y
#
# --- MCI host drivers ---
diff --git a/configs/platform-v7a/barebox-mx6.config.diff b/configs/platform-v7a/barebox-mx6.config.diff
index b9a05e41a1db..9f596de59486 100644
--- a/configs/platform-v7a/barebox-mx6.config.diff
+++ b/configs/platform-v7a/barebox-mx6.config.diff
@@ -1,4 +1,4 @@
-ce1ca5fe3cea9cabd6af79b60ecde84b
+c2cbf48a6de666e3854240d3b1769aee
# CONFIG_ARCH_BCM283X is not set
CONFIG_ARCH_HAS_FEC_IMX=y
CONFIG_ARCH_HAS_IMX_GPT=y
diff --git a/configs/platform-v7a/barebox-rpi2.config b/configs/platform-v7a/barebox-rpi2.config
index 77bb09edbdce..650aad7c4c22 100644
--- a/configs/platform-v7a/barebox-rpi2.config
+++ b/configs/platform-v7a/barebox-rpi2.config
@@ -594,6 +594,7 @@ CONFIG_MCI_INFO=y
CONFIG_MCI_WRITE=y
CONFIG_MCI_MMC_BOOT_PARTITIONS=y
# CONFIG_MCI_MMC_GPP_PARTITIONS is not set
+CONFIG_MCI_BROKEN_CD=y
#
# --- MCI host drivers ---
diff --git a/configs/platform-v7a/barebox-rpi2.config.diff b/configs/platform-v7a/barebox-rpi2.config.diff
index f7ffae897169..3ff572b319e5 100644
--- a/configs/platform-v7a/barebox-rpi2.config.diff
+++ b/configs/platform-v7a/barebox-rpi2.config.diff
@@ -1,4 +1,4 @@
-ce1ca5fe3cea9cabd6af79b60ecde84b
+c2cbf48a6de666e3854240d3b1769aee
CONFIG_ARM_ASM_UNIFIED=y
CONFIG_BOOTM_INITRD=y
# CONFIG_CMD_I2C is undefined
diff --git a/configs/platform-v7a/barebox-stm32mp.config b/configs/platform-v7a/barebox-stm32mp.config
index 15b2a8393345..6053a43fd0f1 100644
--- a/configs/platform-v7a/barebox-stm32mp.config
+++ b/configs/platform-v7a/barebox-stm32mp.config
@@ -560,6 +560,7 @@ CONFIG_MCI_INFO=y
CONFIG_MCI_WRITE=y
CONFIG_MCI_MMC_BOOT_PARTITIONS=y
# CONFIG_MCI_MMC_GPP_PARTITIONS is not set
+CONFIG_MCI_BROKEN_CD=y
#
# --- MCI host drivers ---
diff --git a/configs/platform-v7a/barebox-stm32mp.config.diff b/configs/platform-v7a/barebox-stm32mp.config.diff
index d14e40f60b54..dec198abd3b0 100644
--- a/configs/platform-v7a/barebox-stm32mp.config.diff
+++ b/configs/platform-v7a/barebox-stm32mp.config.diff
@@ -1,4 +1,4 @@
-ce1ca5fe3cea9cabd6af79b60ecde84b
+c2cbf48a6de666e3854240d3b1769aee
# CONFIG_ARCH_BCM283X is not set
CONFIG_ARCH_HAS_RESET_CONTROLLER=y
CONFIG_ARCH_NR_GPIO=416
diff --git a/configs/platform-v7a/barebox-vexpress.config b/configs/platform-v7a/barebox-vexpress.config
index e6f50d1274a3..a9101f044d5c 100644
--- a/configs/platform-v7a/barebox-vexpress.config
+++ b/configs/platform-v7a/barebox-vexpress.config
@@ -603,6 +603,7 @@ CONFIG_MCI_INFO=y
CONFIG_MCI_WRITE=y
# CONFIG_MCI_MMC_BOOT_PARTITIONS is not set
# CONFIG_MCI_MMC_GPP_PARTITIONS is not set
+CONFIG_MCI_BROKEN_CD=y
#
# --- MCI host drivers ---
diff --git a/configs/platform-v7a/barebox-vexpress.config.diff b/configs/platform-v7a/barebox-vexpress.config.diff
index f09afd233e7f..f712d6c8ca13 100644
--- a/configs/platform-v7a/barebox-vexpress.config.diff
+++ b/configs/platform-v7a/barebox-vexpress.config.diff
@@ -1,4 +1,4 @@
-ce1ca5fe3cea9cabd6af79b60ecde84b
+c2cbf48a6de666e3854240d3b1769aee
CONFIG_AMBA_SP804=y
# CONFIG_ARCH_BCM283X is not set
CONFIG_ARCH_VEXPRESS=y
diff --git a/configs/platform-v7a/barebox.config b/configs/platform-v7a/barebox.config
index 9e15a66d08e1..655ab1c43c57 100644
--- a/configs/platform-v7a/barebox.config
+++ b/configs/platform-v7a/barebox.config
@@ -615,6 +615,7 @@ CONFIG_MCI_INFO=y
CONFIG_MCI_WRITE=y
# CONFIG_MCI_MMC_BOOT_PARTITIONS is not set
# CONFIG_MCI_MMC_GPP_PARTITIONS is not set
+CONFIG_MCI_BROKEN_CD=y
#
# --- MCI host drivers ---
diff --git a/configs/platform-v7a/patches/barebox-2022.06.0/0001-mci-add-new-MCI_BROKEN_CD-option-for-testing.patch b/configs/platform-v7a/patches/barebox-2022.06.0/0001-mci-add-new-MCI_BROKEN_CD-option-for-testing.patch
new file mode 100644
index 000000000000..8d10cf3d5529
--- /dev/null
+++ b/configs/platform-v7a/patches/barebox-2022.06.0/0001-mci-add-new-MCI_BROKEN_CD-option-for-testing.patch
@@ -0,0 +1,122 @@
+From git@z Thu Jan 1 00:00:00 1970
+Subject: [PATCH v2] mci: add new MCI_BROKEN_CD option for testing
+From: Ahmad Fatoum <a.fatoum@pengutronix.de>
+Date: Mon, 25 Jul 2022 13:58:56 +0200
+Message-Id: <20220725115856.1288819-1-a.fatoum@pengutronix.de>
+To: barebox@lists.infradead.org
+Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
+List-Id: <barebox.lists.infradead.org>
+MIME-Version: 1.0
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: 7bit
+
+In remote labs co-located with other hardware, we've observed card
+detect levers of different boards to sporadically fail to detect
+the card, e.g. because the cable on the usbsdmux was yanked around
+by accident. When this happens, barebox usually boots up normally as
+the card detect is ignored and then Linux waits indefinitely for
+the card-detect to turn active. Add a new config option that can be
+enabled to avoid these issues altogether.
+
+Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
+---
+v1 -> v2:
+ - use early exit instead of if-else
+ - don't fail mci_card_probe if of_register_fixup fails
+---
+ drivers/mci/Kconfig | 15 +++++++++++++++
+ drivers/mci/mci-core.c | 36 ++++++++++++++++++++++++++++++++----
+ 2 files changed, 47 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/mci/Kconfig b/drivers/mci/Kconfig
+index 21d53c0c3f0b..651e59259790 100644
+--- a/drivers/mci/Kconfig
++++ b/drivers/mci/Kconfig
+@@ -56,6 +56,21 @@ config MCI_MMC_GPP_PARTITIONS
+ Note: by default, 'MMC' devices have no 'general purpose partitions',
+ it requires a special one-time configuration step to enable them.
+
++config MCI_BROKEN_CD
++ bool "ignore card-detect pin on boot and in OS"
++ help
++ Say 'y' here to have barebox unconditionally ignore the
++ card-detect pin for its own operation and manipulate the
++ kernel DT, so all detected MCI cards are polled instead
++ of expecting the card detect lever to behave correctly.
++ If you need more fine grained control use of_property
++ in an init script:
++
++ of_property -fd mmc0 cd-gpios
++ of_property -fs mmc0 broken-cd
++
++ If unsure, say 'n' here.
++
+ comment "--- MCI host drivers ---"
+
+ config MCI_DW
+diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
+index 82e2f82f5377..4db2253c3a80 100644
+--- a/drivers/mci/mci-core.c
++++ b/drivers/mci/mci-core.c
+@@ -1727,6 +1727,27 @@ static int mci_register_partition(struct mci_part *part)
+ return 0;
+ }
+
++static int of_broken_cd_fixup(struct device_node *root, void *ctx)
++{
++ struct device_d *hw_dev = ctx;
++ struct device_node *np;
++ char *name;
++
++ name = of_get_reproducible_name(hw_dev->device_node);
++ np = of_find_node_by_reproducible_name(root, name);
++ free(name);
++ if (!np) {
++ dev_warn(hw_dev, "Cannot find nodepath %s, cannot fixup\n",
++ hw_dev->device_node->full_name);
++ return -EINVAL;
++ }
++
++ of_property_write_bool(np, "cd-gpios", false);
++ of_property_write_bool(np, "broken-cd", true);
++
++ return 0;
++}
++
+ /**
+ * Probe an MCI card at the given host interface
+ * @param mci MCI device instance
+@@ -1737,10 +1758,13 @@ static int mci_card_probe(struct mci *mci)
+ struct mci_host *host = mci->host;
+ int i, rc, disknum, ret;
+
+- if (host->card_present && !host->card_present(host) &&
+- !host->non_removable) {
+- dev_err(&mci->dev, "no card inserted\n");
+- return -ENODEV;
++ if (host->card_present && !host->card_present(host) && !host->non_removable) {
++ if (!IS_ENABLED(CONFIG_MCI_BROKEN_CD)) {
++ dev_err(&mci->dev, "no card inserted\n");
++ return -ENODEV;
++ }
++
++ dev_info(&mci->dev, "no card inserted (ignoring)\n");
+ }
+
+ ret = regulator_enable(host->supply);
+@@ -1818,6 +1842,10 @@ static int mci_card_probe(struct mci *mci)
+ }
+ }
+
++ if (IS_ENABLED(CONFIG_MCI_BROKEN_CD) && !host->no_sd &&
++ dev_of_node(host->hw_dev))
++ of_register_fixup(of_broken_cd_fixup, host->hw_dev);
++
+ dev_dbg(&mci->dev, "SD Card successfully added\n");
+
+ on_error:
+
+--
+2.30.2
+
+
diff --git a/configs/platform-v7a/patches/barebox-2022.06.0/series b/configs/platform-v7a/patches/barebox-2022.06.0/series
new file mode 100644
index 000000000000..073642265726
--- /dev/null
+++ b/configs/platform-v7a/patches/barebox-2022.06.0/series
@@ -0,0 +1 @@
+0001-mci-add-new-MCI_BROKEN_CD-option-for-testing.patch
--
2.30.2
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL
2022-07-25 12:04 [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Ahmad Fatoum
` (6 preceding siblings ...)
2022-07-25 12:04 ` [DistroKit] [PATCH 8/8] v7a: barebox: ignore card-detect for booted SD-Card Ahmad Fatoum
@ 2022-09-05 13:51 ` Robert Schwebel
7 siblings, 0 replies; 10+ messages in thread
From: Robert Schwebel @ 2022-09-05 13:51 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: distrokit
On Mon, Jul 25, 2022 at 02:04:38PM +0200, Ahmad Fatoum wrote:
> We only generate SD/eMMC images for STM32MP1, so having NAND/NOR
> drivers in the FSBL just increases size pressure On-Chip RAM,
> so drop them.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> configs/platform-v7a/platformconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Series applied to next.
rsc
--
Pengutronix e.K. | Dipl.-Ing. Robert Schwebel |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [DistroKit] [PATCH 3/8] genimage: patch in Firmware Image Package (FIP) support
2022-07-25 12:04 ` [DistroKit] [PATCH 3/8] genimage: patch in Firmware Image Package (FIP) support Ahmad Fatoum
@ 2022-09-05 14:28 ` Robert Schwebel
0 siblings, 0 replies; 10+ messages in thread
From: Robert Schwebel @ 2022-09-05 14:28 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: distrokit
On Mon, Jul 25, 2022 at 02:04:40PM +0200, Ahmad Fatoum wrote:
> genimage master has support for calling fiptool, which makes it
> straight-forward to generate eMMC boot partition images with the
> same genimage.config generating the image for the user area.
>
> TF-A also has a fip target that can call fiptool for us, but is only
> works when generating a single bootloader image, but we generate
> multiple images, so we can't reuse the current tf-a rule as is.
>
> One more option would be to write a custom image rule, but as genimage
> master has support, let's just backport the patch. The autogen.sh is
> necessary, because we touch Makefile.am and we want autogen to rerun to
> account for changes between our host autotools and the one used to
> build the shipped files.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> ...d-Firmware-Image-Package-FIP-support.patch | 311 ++++++++++++++++++
> patches/genimage-15/series | 1 +
> 2 files changed, 312 insertions(+)
> create mode 100644 patches/genimage-15/0001-Add-Firmware-Image-Package-FIP-support.patch
> create mode 100644 patches/genimage-15/series
As mol has meanwhile released genimage-16 (not in ptxdist yet), let's
update to that version, instead of patching genimage-15.
Changed in next.
rsc
--
Pengutronix e.K. | Dipl.-Ing. Robert Schwebel |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-09-05 14:29 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-25 12:04 [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 2/8] v7a: tf-a: update to v2.7 Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 3/8] genimage: patch in Firmware Image Package (FIP) support Ahmad Fatoum
2022-09-05 14:28 ` Robert Schwebel
2022-07-25 12:04 ` [DistroKit] [PATCH 4/8] v7a: barebox-stm32mp: start collecting device tree blobs Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 5/8] v7a: tf-a: start collecting FIP image components Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 6/8] v7a: tf-a: switch to FIP image Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 7/8] v7a: barebox: update v2022.04.0 → v2022.06.0 Ahmad Fatoum
2022-07-25 12:04 ` [DistroKit] [PATCH 8/8] v7a: barebox: ignore card-detect for booted SD-Card Ahmad Fatoum
2022-09-05 13:51 ` [DistroKit] [PATCH 1/8] v7a: tf-a: don't compile in unused NAND/NOR boot in FSBL Robert Schwebel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox