DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Lars Schmidt <l.schmidt@pengutronix.de>
To: distrokit@pengutronix.de
Cc: l.schmidt@pengutronix.de
Subject: [DistroKit] [PATCH v2 09/10] beagleplay: barebox: get second boot stage running
Date: Tue, 24 Jun 2025 17:46:59 +0200	[thread overview]
Message-ID: <20250624-am62-beagleplay-v2-9-9fcf3e67a98b@pengutronix.de> (raw)
In-Reply-To: <20250624-am62-beagleplay-v2-0-9fcf3e67a98b@pengutronix.de>

BeaglePlay needs some config adaptions for the second stage
of the boot process. So necessary barebox config options are
set, as well as changes to bootstate.

Signed-off-by: Lars Schmidt <l.schmidt@pengutronix.de>
---
 .../barebox-common-defaultenv/init/bootsource      |  2 +-
 configs/platform-v8a/barebox.config                | 47 ++++++++++++++++++----
 configs/platform-v8a/dts/bootstate.dtsi            | 22 +++++++++-
 3 files changed, 61 insertions(+), 10 deletions(-)

diff --git a/configs/platform-v8a/barebox-common-defaultenv/init/bootsource b/configs/platform-v8a/barebox-common-defaultenv/init/bootsource
index 19a0429c56a3b1f18a226effed78ca3decfbad6f..87d58f58ee65b105f4d7b89a8837ba2230251b42 100644
--- a/configs/platform-v8a/barebox-common-defaultenv/init/bootsource
+++ b/configs/platform-v8a/barebox-common-defaultenv/init/bootsource
@@ -10,7 +10,7 @@ if [ "$bootsource" = mmc ]; then
 	global.boot.default="mmc$bootsource_instance net"
 fi
 
-if of_compatible -k radxa,rock3a tq,imx8mp-tqma8mpql-mba8mpxl tq,imx93-tqma9352; then
+if of_compatible -k radxa,rock3a tq,imx8mp-tqma8mpql-mba8mpxl tq,imx93-tqma9352 beagle,am625-beagleplay; then
 	global.boot.default="bootchooser net"
 	global bootchooser.state_prefix="state.bootstate"
 	global bootchooser.targets="system0 system1"
diff --git a/configs/platform-v8a/barebox.config b/configs/platform-v8a/barebox.config
index f6df544d3b61669d130876fb727dfde989cd9645..2d801ec94b0eebafb13731295a19993c7653db66 100644
--- a/configs/platform-v8a/barebox.config
+++ b/configs/platform-v8a/barebox.config
@@ -16,7 +16,7 @@ CONFIG_ARCH_MULTIARCH=y
 # CONFIG_ARCH_ARM64_VIRT is not set
 # CONFIG_ARCH_BCM283X is not set
 CONFIG_ARCH_IMX=y
-# CONFIG_ARCH_K3 is not set
+CONFIG_ARCH_K3=y
 # CONFIG_ARCH_SUNXI is not set
 # CONFIG_ARCH_LAYERSCAPE is not set
 CONFIG_ARCH_ROCKCHIP=y
@@ -88,6 +88,16 @@ CONFIG_AHAB=y
 # CONFIG_HAB_CERTS_ENV is not set
 # end of i.MX specific settings
 
+#
+# K3 boards
+#
+CONFIG_MACH_K3_CORTEX_A=y
+CONFIG_MACH_AM625_SK=y
+CONFIG_MACH_BEAGLEPLAY=y
+# CONFIG_ARCH_K3_AUTHENTICATE_IMAGE is not set
+# CONFIG_ARCH_K3_COMMAND_AUTHENTICATE is not set
+# end of K3 boards
+
 #
 # Rockchip Features
 #
@@ -132,7 +142,7 @@ CONFIG_ARM_SMCCC=y
 CONFIG_ARM_PSCI_OF=y
 CONFIG_ARM_PSCI_CLIENT=y
 # CONFIG_ARM_BOOTM_ELF is not set
-# CONFIG_ARM_BOOTM_FIP is not set
+CONFIG_ARM_BOOTM_FIP=y
 CONFIG_ARM_ATF=y
 # end of ARM specific settings
 
@@ -319,6 +329,7 @@ CONFIG_COMPILE_LOGLEVEL=6
 CONFIG_DEFAULT_LOGLEVEL=7
 # CONFIG_DEBUG_LL is not set
 CONFIG_DEBUG_IMX_UART_PORT=1
+CONFIG_DEBUG_K3_UART_PORT=0
 CONFIG_DEBUG_ROCKCHIP_UART_PORT=2
 CONFIG_ARCH_WANT_FRAME_POINTERS=y
 CONFIG_FRAME_POINTER=y
@@ -619,6 +630,8 @@ CONFIG_PHYLIB=y
 # Network drivers
 #
 # CONFIG_DRIVER_NET_BCMGENET is not set
+CONFIG_DRIVER_NET_TI_DAVINCI_MDIO=y
+CONFIG_DRIVER_NET_TI_K3_AM65_CPSW_NUSS=y
 # CONFIG_DRIVER_NET_DESIGNWARE_GENERIC is not set
 CONFIG_DRIVER_NET_DESIGNWARE_EQOS=y
 CONFIG_DRIVER_NET_DESIGNWARE_IMX8=y
@@ -695,6 +708,7 @@ CONFIG_I2C_IMX=y
 CONFIG_I2C_IMX_LPI2C=y
 # CONFIG_I2C_DESIGNWARE is not set
 # CONFIG_I2C_MV64XXX is not set
+CONFIG_I2C_OMAP=y
 CONFIG_I2C_RK3X=y
 # end of I2C Hardware Bus support
 
@@ -765,6 +779,7 @@ CONFIG_USB_DWC3=y
 # CONFIG_USB_DWC3_GADGET is not set
 CONFIG_USB_DWC3_DUAL_ROLE=y
 CONFIG_USB_DWC3_OF_SIMPLE=y
+CONFIG_USB_DWC3_AM62=y
 CONFIG_USB_EHCI=y
 CONFIG_USB_XHCI=y
 # CONFIG_USB_ULPI is not set
@@ -806,7 +821,7 @@ CONFIG_MCI_WRITE=y
 CONFIG_MCI_ERASE=y
 CONFIG_MCI_MMC_BOOT_PARTITIONS=y
 # CONFIG_MCI_MMC_GPP_PARTITIONS is not set
-# CONFIG_MCI_MMC_RPMB is not set
+CONFIG_MCI_MMC_RPMB=y
 
 #
 # --- MCI host drivers ---
@@ -820,13 +835,14 @@ CONFIG_MCI_IMX_ESDHC=y
 # CONFIG_MCI_IMX_ESDHC_PIO is not set
 # CONFIG_MCI_MMCI is not set
 CONFIG_MCI_ARASAN=y
-# CONFIG_MCI_AM654 is not set
+CONFIG_MCI_AM654=y
 # CONFIG_MCI_SPI is not set
 CONFIG_MCI_IMX_ESDHC_PBL=y
 CONFIG_HAVE_CLK=y
 CONFIG_CLKDEV_LOOKUP=y
 CONFIG_COMMON_CLK=y
 CONFIG_COMMON_CLK_OF_PROVIDER=y
+CONFIG_TI_SCI_CLK=y
 CONFIG_COMMON_CLK_GPIO=y
 
 #
@@ -849,7 +865,7 @@ CONFIG_CLOCKSOURCE_ARM_ARCHITECTED_TIMER=y
 # CONFIG_MFD_MC9SDZ60 is not set
 # CONFIG_MFD_STMPE is not set
 CONFIG_MFD_SYSCON=y
-# CONFIG_MFD_TPS65219 is not set
+CONFIG_MFD_TPS65219=y
 # CONFIG_MFD_TWL4030 is not set
 # CONFIG_MFD_TWL6030 is not set
 # CONFIG_RAVE_SP_CORE is not set
@@ -907,13 +923,19 @@ CONFIG_WATCHDOG_IMX=y
 # CONFIG_WATCHDOG_IMXULP is not set
 # CONFIG_GPIO_WATCHDOG is not set
 # CONFIG_CADENCE_WATCHDOG is not set
+CONFIG_K3_RTI_WDT=y
 # CONFIG_PWM is not set
 # CONFIG_HWRNG is not set
 
 #
 # DMA support
 #
-# CONFIG_DMADEVICES is not set
+CONFIG_DMADEVICES=y
+
+#
+# DMA Devices
+#
+CONFIG_TI_K3_UDMA=y
 # end of DMA support
 
 CONFIG_GPIOLIB=y
@@ -924,6 +946,7 @@ CONFIG_GPIOLIB=y
 CONFIG_GPIO_GENERIC=y
 # CONFIG_GPIO_74164 is not set
 # CONFIG_GPIO_74XX_MMIO is not set
+CONFIG_GPIO_DAVINCI=y
 # CONFIG_GPIO_GENERIC_PLATFORM is not set
 CONFIG_GPIO_IMX=y
 CONFIG_GPIO_VF610=y
@@ -945,7 +968,7 @@ CONFIG_GPIO_ROCKCHIP=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX_IOMUX_V3=y
 CONFIG_PINCTRL_ROCKCHIP=y
-# CONFIG_PINCTRL_SINGLE is not set
+CONFIG_PINCTRL_SINGLE=y
 # end of Pin controllers
 
 CONFIG_NVMEM=y
@@ -967,6 +990,7 @@ CONFIG_REGULATOR=y
 CONFIG_REGULATOR_FIXED=y
 # CONFIG_REGULATOR_FAN53555 is not set
 # CONFIG_REGULATOR_PFUZE is not set
+CONFIG_REGULATOR_TPS65219=y
 # CONFIG_REGULATOR_ANATOP is not set
 CONFIG_REGULATOR_RK808=y
 
@@ -1007,6 +1031,7 @@ CONFIG_RTC_DRV_DS1307=y
 #
 # CONFIG_FIRMWARE_ALTERA_SERIAL is not set
 # CONFIG_QEMU_FW_CFG is not set
+CONFIG_TI_SCI_PROTOCOL=y
 
 #
 # ARM System Control and Management Interface Protocol
@@ -1060,6 +1085,8 @@ CONFIG_IMX8M_FEATCTRL=y
 #
 # CONFIG_ROCKCHIP_IODOMAIN is not set
 # end of Rockchip SoC drivers
+
+CONFIG_TI_K3_RINGACC=y
 # end of SoC drivers
 
 #
@@ -1072,6 +1099,8 @@ CONFIG_IMX8M_FEATCTRL=y
 CONFIG_IMX_GPCV2_PM_DOMAINS=y
 CONFIG_IMX8M_BLK_CTRL=y
 # end of i.MX PM Domains
+
+CONFIG_TI_SCI_PM_DOMAINS=y
 # end of PM Domains
 
 #
@@ -1095,7 +1124,8 @@ CONFIG_SYSCON_REBOOT_MODE=y
 # CONFIG_POWER_RESET_GPIO is not set
 # CONFIG_POWER_RESET_GPIO_RESTART is not set
 # CONFIG_VIRTIO_MENU is not set
-# CONFIG_MAILBOX is not set
+CONFIG_MAILBOX=y
+CONFIG_TI_MESSAGE_MANAGER=y
 # CONFIG_TEE is not set
 # end of Drivers
 
@@ -1175,6 +1205,7 @@ CONFIG_LZO_DECOMPRESS=y
 CONFIG_FNMATCH=y
 CONFIG_QSORT=y
 CONFIG_IMAGE_SPARSE=y
+CONFIG_FIP=y
 CONFIG_LIBFDT=y
 # CONFIG_RATP is not set
 # CONFIG_ALLOW_PRNG_FALLBACK is not set
diff --git a/configs/platform-v8a/dts/bootstate.dtsi b/configs/platform-v8a/dts/bootstate.dtsi
index 4d16623193ae38706e600596299a60c52c3bcf14..ae5ea80953f046444037bcd01df7ea0d7b82b4b6 100644
--- a/configs/platform-v8a/dts/bootstate.dtsi
+++ b/configs/platform-v8a/dts/bootstate.dtsi
@@ -40,6 +40,27 @@
 
 #endif
 
+/** BeagleBoard BeaglePlay with TI Sitara AM625 *******************************/
+#ifdef k3_am625_beagleplay_dts
+/ {
+	aliases {
+		state = &state_emmc;
+	};
+
+	state_emmc: state {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "barebox,state";
+		magic = <0x444f1d39>;
+		backend = <&sdhci1>;   // via GPT Type UUID
+		backend-type = "raw";
+		backend-storage-type = "direct";
+		backend-stridesize = <0x40>;
+	};
+};
+
+#endif
+
 /** TQ-Systems i.MX93 TQMa93xxLA/TQMa93xxCA on MBa93xxCA starter kit **********/
 #ifdef imx93_tqma9352_mba93xxca_dts
 / {
@@ -111,4 +132,3 @@
 		type = "uint32";
 	};
 };
-

-- 
2.39.5




  parent reply	other threads:[~2025-06-24 15:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-24 15:46 [DistroKit] [PATCH v2 00/10] Add beagleplay support to DistroKit Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 01/10] v8a: barebox: bump version v2025.03.0 -> v2025.06.0 Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 02/10] beagleplay: k3: barebox needs part of tf-a firmware Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 03/10] tf-a: unify handling of firmware parts for barebox Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 04/10] beagleplay: firmware-ti: initial package Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 05/10] beagleplay: barebox: first stage bootloader for Cortex-R5 Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 06/10] beagleplay: fipimage: add fip image for K3 Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 07/10] beagleplay: add full image including bootloaders and rootfs Lars Schmidt
2025-06-24 15:46 ` [DistroKit] [PATCH v2 08/10] beagleplay: add initial kernel configuration Lars Schmidt
2025-06-24 15:46 ` Lars Schmidt [this message]
2025-06-24 15:47 ` [DistroKit] [PATCH v2 10/10] beagleplay: add initial platform config Lars Schmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250624-am62-beagleplay-v2-9-9fcf3e67a98b@pengutronix.de \
    --to=l.schmidt@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox