From: Trevor Woerner <twoerner@gmail.com>
To: yocto-patches@lists.yoctoproject.org
Subject: [meta-rockchip][PATCH 2/4] specify root partition type
Date: Wed, 22 May 2024 19:08:06 -0400 [thread overview]
Message-ID: <20240522230808.14409-2-twoerner@gmail.com> (raw)
In-Reply-To: <20240522230808.14409-1-twoerner@gmail.com>
Specify the root partition's type according to the Discoverable Partitions
Specification:
32-bit ARM: 69dad710-2ce4-4e3c-b16c-21a1d49abed3
64-bit ARM: B921B045-1DF0-41C3-AF44-4C6F280D3FAE
Link: https://uapi-group.org/specifications/specs/discoverable_partitions_specification/
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
conf/machine/include/rockchip-defaults.inc | 6 ++++++
conf/machine/include/rockchip-wic.inc | 1 +
wic/rockchip.wks | 2 +-
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/conf/machine/include/rockchip-defaults.inc b/conf/machine/include/rockchip-defaults.inc
index 2387eb909934..717085b1535c 100644
--- a/conf/machine/include/rockchip-defaults.inc
+++ b/conf/machine/include/rockchip-defaults.inc
@@ -21,3 +21,9 @@ XSERVER = " \
SERIAL_CONSOLES ?= "1500000;ttyS2"
RK_CONSOLE_BAUD ?= "${@d.getVar('SERIAL_CONSOLES').split(';')[0]}"
RK_CONSOLE_DEVICE ?= "${@d.getVar('SERIAL_CONSOLES').split(';')[1].split()[0]}"
+
+# Discoverable Partitions Specification (DPS)
+ROOT_DPS = "B921B045-1DF0-41C3-AF44-4C6F280D3FAE"
+ROOT_DPS:rk3066 = "69dad710-2ce4-4e3c-b16c-21a1d49abed3"
+ROOT_DPS:rk3188 = "69dad710-2ce4-4e3c-b16c-21a1d49abed3"
+ROOT_DPS:rk3288 = "69dad710-2ce4-4e3c-b16c-21a1d49abed3"
diff --git a/conf/machine/include/rockchip-wic.inc b/conf/machine/include/rockchip-wic.inc
index b5ee6e0c2724..dab61d83ed2c 100644
--- a/conf/machine/include/rockchip-wic.inc
+++ b/conf/machine/include/rockchip-wic.inc
@@ -19,6 +19,7 @@ RK_UBOOT_ENV:rk-u-boot-env = "${@ '--source rawcopy --sourceparams=file=u-boot.e
WICVARS:append = " \
RK_UBOOT_ENV \
+ ROOT_DPS \
SPL_BINARY \
UBOOT_SUFFIX \
"
diff --git a/wic/rockchip.wks b/wic/rockchip.wks
index e1d74d9983ab..cabdb6559550 100644
--- a/wic/rockchip.wks
+++ b/wic/rockchip.wks
@@ -26,6 +26,6 @@ part uboot_env --offset 8128s --fixed-size 32K --fstype=none --part-name uboo
part reserved2 --offset 8192s --fixed-size 4096K --fstype=none --part-name reserved2
part loader2 --offset 16384s --fixed-size 4096K --fstype=none --part-name loader2 --source rawcopy --sourceparams="file=u-boot.${UBOOT_SUFFIX}"
part atf --offset 24576s --fixed-size 4096K --fstype=none --part-name atf
-part / --label rootfsA --active --fstype=ext4 --part-name rootfsA --source rootfs
+part / --label rootfsA --active --fstype=ext4 --part-name rootfsA --source rootfs --part-type ${ROOT_DPS}
bootloader --ptable gpt
--
2.44.0.478.g7774cfed6261
next prev parent reply other threads:[~2024-05-22 23:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-22 23:08 [meta-rockchip][PATCH 1/4] rename root partition Trevor Woerner
2024-05-22 23:08 ` Trevor Woerner [this message]
2024-05-23 7:59 ` [yocto-patches] [meta-rockchip][PATCH 2/4] specify root partition type Quentin Schulz
2024-05-22 23:08 ` [meta-rockchip][PATCH 3/4] u-boot: remove upstreamed dependency Trevor Woerner
2024-05-23 8:02 ` [yocto-patches] " Quentin Schulz
2024-05-22 23:08 ` [meta-rockchip][PATCH 4/4] rauc demo: add Trevor Woerner
2024-05-23 12:53 ` [yocto-patches] " Quentin Schulz
2024-06-19 4:52 ` Trevor Woerner
2024-06-19 5:19 ` Trevor Woerner
2024-06-19 11:55 ` Quentin Schulz
2024-06-19 12:20 ` Trevor Woerner
2024-05-23 7:52 ` [yocto-patches] [meta-rockchip][PATCH 1/4] rename root partition Quentin Schulz
2024-05-23 20:29 ` Trevor Woerner
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=20240522230808.14409-2-twoerner@gmail.com \
--to=twoerner@gmail.com \
--cc=yocto-patches@lists.yoctoproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.