From: "Leonard Göhrs" <l.goehrs@pengutronix.de>
To: distrokit@pengutronix.de
Cc: "Leonard Göhrs" <l.goehrs@pengutronix.de>
Subject: [DistroKit] [PATCH v2 5/7] v8a: imx8m: add i.MX8MP based TQ MBa8MPxL board
Date: Wed, 17 Jan 2024 14:34:38 +0100 [thread overview]
Message-ID: <20240117133440.944800-6-l.goehrs@pengutronix.de> (raw)
In-Reply-To: <20240117133440.944800-1-l.goehrs@pengutronix.de>
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 <l.goehrs@pengutronix.de>
---
.../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 <s.hauer@pengutronix.de>
+# Copyright (C) 2024 by Leonard Göhrs <l.goehrs@pengutronix.de>
+#
+# 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
next prev parent reply other threads:[~2024-01-17 13:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-17 13:34 [DistroKit] [PATCH v2 0/7] " Leonard Göhrs
2024-01-17 13:34 ` [DistroKit] [PATCH v2 1/7] tf-a: add patch to auto-detect the correct UART on i.MX8M Leonard Göhrs
2024-01-17 13:34 ` [DistroKit] [PATCH v2 2/7] images: imx8m: move the root-a partition further back Leonard Göhrs
2024-01-17 13:34 ` [DistroKit] [PATCH v2 3/7] images: imx8m: add a barebox environment partition Leonard Göhrs
2024-01-17 13:34 ` [DistroKit] [PATCH v2 4/7] v8a: images: imx8m: add barebox state partition Leonard Göhrs
2024-01-17 13:34 ` Leonard Göhrs [this message]
2024-01-17 13:34 ` [DistroKit] [PATCH v2 6/7] v8a: imx8m: enable image generation for TQ MBa8MPxL Leonard Göhrs
2024-01-17 13:34 ` [DistroKit] [PATCH v2 7/7] v8a: imx8m: enable barebox state " Leonard Göhrs
2024-01-26 16:43 ` [DistroKit] [PATCH v2 0/7] v8a: imx8m: add i.MX8MP based TQ MBa8MPxL board Robert Schwebel
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=20240117133440.944800-6-l.goehrs@pengutronix.de \
--to=l.goehrs@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