From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 11 Jan 2024 16:01:32 +0100 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rNwYm-00D61y-2M for lore@lore.pengutronix.de; Thu, 11 Jan 2024 16:01:32 +0100 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rNwYm-0001Gk-1g; Thu, 11 Jan 2024 16:01:32 +0100 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rNwYb-00015h-VP; Thu, 11 Jan 2024 16:01:21 +0100 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rNwYb-001wxl-Fd; Thu, 11 Jan 2024 16:01:21 +0100 Received: from lgo by dude03.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rNwYb-00FSdO-1O; Thu, 11 Jan 2024 16:01:21 +0100 From: =?UTF-8?q?Leonard=20G=C3=B6hrs?= To: distrokit@pengutronix.de Date: Thu, 11 Jan 2024 16:01:15 +0100 Message-Id: <20240111150117.3678555-4-l.goehrs@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240111150117.3678555-1-l.goehrs@pengutronix.de> References: <20240111150117.3678555-1-l.goehrs@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH v1 3/5] v8a: imx8m: add i.MX8MP based TQ MBa8MPxL board X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Leonard=20G=C3=B6hrs?= Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false The generated image can be used to boot the board via SD card. The dev.mmc1.broken_cd barebox environment entry is required because the board's card detect does not reliably detect an inserted USB-SD-Mux, resulting in the board failing to boot. This should not (negatively) affect the other v8a machines. Signed-off-by: Leonard Göhrs --- .../nv/dev.mmc1.broken_cd | 1 + configs/platform-v8a/barebox.config | 4 +-- configs/platform-v8a/kernelconfig | 2 +- .../platforms/image-tq-mba8mpxl.in | 10 ++++++ .../platform-v8a/rules/image-tq-mba8mpxl.make | 36 +++++++++++++++++++ 5 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 configs/platform-v8a/barebox-common-defaultenv/nv/dev.mmc1.broken_cd create mode 100644 configs/platform-v8a/platforms/image-tq-mba8mpxl.in create mode 100644 configs/platform-v8a/rules/image-tq-mba8mpxl.make diff --git a/configs/platform-v8a/barebox-common-defaultenv/nv/dev.mmc1.broken_cd b/configs/platform-v8a/barebox-common-defaultenv/nv/dev.mmc1.broken_cd new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/configs/platform-v8a/barebox-common-defaultenv/nv/dev.mmc1.broken_cd @@ -0,0 +1 @@ +1 diff --git a/configs/platform-v8a/barebox.config b/configs/platform-v8a/barebox.config index 02d314f..fc4f643 100644 --- a/configs/platform-v8a/barebox.config +++ b/configs/platform-v8a/barebox.config @@ -60,7 +60,7 @@ CONFIG_MACH_PHYTEC_SOM_IMX8MQ=y # CONFIG_MACH_POLYHEX_DEBIX is not set # CONFIG_MACH_PROTONIC_IMX8M is not set # CONFIG_MACH_SKOV_IMX8MP is not set -# CONFIG_MACH_TQ_MBA8MPXL is not set +CONFIG_MACH_TQ_MBA8MPXL=y # CONFIG_MACH_VARISCITE_DT8MCUSTOMBOARD_IMX8MP is not set # CONFIG_MACH_ZII_IMX8MQ_DEV is not set @@ -762,7 +762,7 @@ CONFIG_MFD_SYSCON=y # CONFIG_MFD_TWL6030 is not set # CONFIG_RAVE_SP_CORE is not set # CONFIG_MFD_STPMIC1 is not set -# CONFIG_MFD_PCA9450 is not set +CONFIG_MFD_PCA9450=y # CONFIG_MFD_RN568PMIC is not set # CONFIG_MFD_ATMEL_FLEXCOM is not set CONFIG_MFD_RK808=y diff --git a/configs/platform-v8a/kernelconfig b/configs/platform-v8a/kernelconfig index a37fd1e..079c6ac 100644 --- a/configs/platform-v8a/kernelconfig +++ b/configs/platform-v8a/kernelconfig @@ -2381,7 +2381,7 @@ CONFIG_SMSC_PHY=m # CONFIG_DP83822_PHY is not set # CONFIG_DP83TC811_PHY is not set # CONFIG_DP83848_PHY is not set -# CONFIG_DP83867_PHY is not set +CONFIG_DP83867_PHY=y # CONFIG_DP83869_PHY is not set # CONFIG_DP83TD510_PHY is not set CONFIG_VITESSE_PHY=y diff --git a/configs/platform-v8a/platforms/image-tq-mba8mpxl.in b/configs/platform-v8a/platforms/image-tq-mba8mpxl.in new file mode 100644 index 0000000..956063a --- /dev/null +++ b/configs/platform-v8a/platforms/image-tq-mba8mpxl.in @@ -0,0 +1,10 @@ +## SECTION=image + +config IMAGE_TQ_MBA8MPXL + tristate + select HOST_GENIMAGE + select IMAGE_ROOT_EXT + select BAREBOX + prompt "Generate images/tq-mba8mpxl.img" + help + Generate a bootable SD card image to deploy on a TQ MBa8MPxL board. diff --git a/configs/platform-v8a/rules/image-tq-mba8mpxl.make b/configs/platform-v8a/rules/image-tq-mba8mpxl.make new file mode 100644 index 0000000..65c50cc --- /dev/null +++ b/configs/platform-v8a/rules/image-tq-mba8mpxl.make @@ -0,0 +1,36 @@ +# -*-makefile-*- +# +# Copyright (C) 2020 by Sascha Hauer +# Copyright (C) 2024 by Leonard Göhrs +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +IMAGE_PACKAGES-$(PTXCONF_IMAGE_TQ_MBA8MPXL) += image-tq-mba8mpxl + +# +# Paths and names +# +IMAGE_TQ_MBA8MPXL := image-tq-mba8mpxl +IMAGE_TQ_MBA8MPXL_DIR := $(BUILDDIR)/$(IMAGE_TQ_MBA8MPXL) +IMAGE_TQ_MBA8MPXL_IMAGE := $(IMAGEDIR)/tq-mba8mpxl.img +IMAGE_TQ_MBA8MPXL_FILES := $(IMAGEDIR)/root.tgz +IMAGE_TQ_MBA8MPXL_CONFIG := imx8m.config + +# ---------------------------------------------------------------------------- +# Image +# ---------------------------------------------------------------------------- + +IMAGE_TQ_MBA8MPXL_ENV := \ + BAREBOX_IMAGE=barebox-tqma8mpxl.img + +$(IMAGE_TQ_MBA8MPXL_IMAGE): + @$(call targetinfo) + @$(call image/genimage, IMAGE_TQ_MBA8MPXL) + @$(call finish) + +# vim: syntax=make -- 2.39.2