From: "Leonard Göhrs" <l.goehrs@pengutronix.de>
To: distrokit@pengutronix.de
Cc: "Leonard Göhrs" <l.goehrs@pengutronix.de>
Subject: [DistroKit] [PATCH v2 3/7] images: imx8m: add a barebox environment partition
Date: Wed, 17 Jan 2024 14:34:36 +0100 [thread overview]
Message-ID: <20240117133440.944800-4-l.goehrs@pengutronix.de> (raw)
In-Reply-To: <20240117133440.944800-1-l.goehrs@pengutronix.de>
The barebox environment is configured in the board devicetrees to
be at 896k and 128k in size (e.g. the last 128k before the 1M mark).
This is for compatibility with the fdisk behaviour of placing the
start of the first partition at the 1M mark.
Not everyone knows this though, so it can easily happen that someone
increases the size of the barebox partition, making it overlap with
the environment "partition".
Make this less likely to happen by listing the barebox state in
the genimage config.
Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
---
configs/platform-v8a/config/images/imx8m.config | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/configs/platform-v8a/config/images/imx8m.config b/configs/platform-v8a/config/images/imx8m.config
index 32a0661..a4a7e12 100644
--- a/configs/platform-v8a/config/images/imx8m.config
+++ b/configs/platform-v8a/config/images/imx8m.config
@@ -9,6 +9,14 @@ image @IMAGE@ {
in-partition-table = false
holes = {"(440; 32K)"}
}
+ partition barebox-environment {
+ # The barebox environment location is configured in the board
+ # devicetree files to 0xe0000 ... 0xe0000+0x20000.
+ offset = 896K
+ size = 128K
+ in-partition-table = false
+ image = /dev/null
+ }
partition root-A {
offset = 4M
image = "root.ext2"
--
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] v8a: imx8m: add i.MX8MP based TQ MBa8MPxL board 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 ` Leonard Göhrs [this message]
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 ` [DistroKit] [PATCH v2 5/7] v8a: imx8m: add i.MX8MP based TQ MBa8MPxL board Leonard Göhrs
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-4-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