From: Jamin Lin <jamin_lin@aspeedtech.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: [meta-oe][PATCH] ast2600:emmc: unsigned rot image align block size (512bytes)
Date: Fri, 3 Nov 2023 18:02:46 +0800 [thread overview]
Message-ID: <20231103100246.3899364-2-jamin_lin@aspeedtech.com> (raw)
In-Reply-To: <20231103100246.3899364-1-jamin_lin@aspeedtech.com>
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Change-Id: I9b82f11cdf3e8524b99f8dfe6a102fedf2b87e5f
---
.../recipes-aspeed/images/aspeed-image-gen-secureboot.bb | 8 ++++++++
.../recipes-aspeed/images/aspeed-image-emmcboot.bb | 5 +++++
2 files changed, 13 insertions(+)
diff --git a/meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image-gen-secureboot.bb b/meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image-gen-secureboot.bb
index 7a6ae1fa0b..f0d046ae58 100644
--- a/meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image-gen-secureboot.bb
+++ b/meta-aspeed-sdk/meta-ast2600-sdk/recipes-aspeed/images/aspeed-image-gen-secureboot.bb
@@ -193,6 +193,12 @@ make_recovery_image() {
python3 ${STAGING_BINDIR_NATIVE}/gen_uart_booting_image.py ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME} ${S}/${GEN_IMAGE_MODE}/recovery_${SPL_IMAGE_NAME}
}
+make_emmc_unsigned_rot_image() {
+ if [ -f ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME}.unsigned ]; then
+ python3 ${STAGING_BINDIR_NATIVE}/gen_emmc_boot_image.py ${S}/${GEN_IMAGE_MODE}/${SPL_IMAGE_NAME}.unsigned ${S}/${GEN_IMAGE_MODE}/emmc_${SPL_IMAGE_NAME}.unsigned
+ fi
+}
+
make_boot_partition_ext4() {
# Generate a compressed ext4 filesystem with the fitImage file in it to be
# flashed to the user data area at boot partition of the eMMC
@@ -617,6 +623,8 @@ python do_deploy() {
bb.build.exec_func("make_recovery_image", d)
if aspeed_boot_emmc == "yes":
+ print("Make emmc unsigned rot image")
+ bb.build.exec_func("make_emmc_unsigned_rot_image", d)
print("Deploy mmc image...")
deploy_mmc_image(d)
else:
diff --git a/meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb b/meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb
index 4faf0d032c..9eb91e8b00 100644
--- a/meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb
+++ b/meta-aspeed-sdk/recipes-aspeed/images/aspeed-image-emmcboot.bb
@@ -61,6 +61,11 @@ do_mk_emmc_boot_image_g6() {
install -m 0644 ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX} ${OUTPUT_IMAGE_DIR}
else
install -m 0644 ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX} ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}
+ if [ -f ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ]; then
+ install -m 0644 ${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${SOURCE_IMAGE_DIR}
+ python3 ${STAGING_BINDIR_NATIVE}/gen_emmc_boot_image.py ${SOURCE_IMAGE_DIR}/${ASPEED_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned
+ install -m 0644 ${SOURCE_IMAGE_DIR}/${ASPEED_EMMC_IMAGE_UBOOT_SPL_IMAGE}.${UBOOT_SUFFIX}.unsigned ${OUTPUT_IMAGE_DIR}
+ fi
fi
}
--
2.25.1
next prev parent reply other threads:[~2023-11-03 10:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-03 10:02 [PATCH v1 1/1] Brotli: fix build failed if the path includes "-static" Jamin Lin
2023-11-03 10:02 ` Jamin Lin [this message]
2023-11-03 17:07 ` [oe] [meta-oe][PATCH] ast2600:emmc: unsigned rot image align block size (512bytes) Khem Raj
2023-11-03 18:33 ` Tim Orling
2023-11-06 8:26 ` Jamin Lin
2023-11-06 8:25 ` Jamin Lin
-- strict thread matches above, loose matches on Subject: below --
2023-11-03 5:29 [PATCH v1 1/1] Brotli: fix build failed if the path includes "-static" Jamin Lin
2023-11-03 5:29 ` [meta-oe][PATCH] ast2600:emmc: unsigned rot image align block size (512bytes) Jamin Lin
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=20231103100246.3899364-2-jamin_lin@aspeedtech.com \
--to=jamin_lin@aspeedtech.com \
--cc=openembedded-devel@lists.openembedded.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.