* [meta-rockchip PATCH 0/2] bsp: rkbin: bump to latest commit in master
@ 2024-11-27 15:12 Quentin Schulz
2024-11-27 15:12 ` [meta-rockchip PATCH 1/2] bsp: rkbin: rkbin-ddr: use glob pattern for finding DDR init Quentin Schulz
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Quentin Schulz @ 2024-11-27 15:12 UTC (permalink / raw)
To: yocto-patches; +Cc: Quentin Schulz
We've been hit by a lot of random RCU stalls, system hangs or resets on
some (not all) of our RK3588-based products running some old BL31/DDR
init binaries.
Upgrading to latest commit in master branch seems to mitigate those
issues, so let's do that.
Only build tested.
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
Quentin Schulz (2):
bsp: rkbin: rkbin-ddr: use glob pattern for finding DDR init
bsp: rkbin: bump to latest commit in master branch
recipes-bsp/rkbin/rockchip-rkbin-ddr_git.bb | 6 +++---
recipes-bsp/rkbin/rockchip-rkbin.inc | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
---
base-commit: 3a8be31581651ced6c27f5bad1333064e513a8f0
change-id: 20241127-rkbin-bump-4cdfb23aa49f
Best regards,
--
Quentin Schulz <quentin.schulz@cherry.de>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [meta-rockchip PATCH 1/2] bsp: rkbin: rkbin-ddr: use glob pattern for finding DDR init
2024-11-27 15:12 [meta-rockchip PATCH 0/2] bsp: rkbin: bump to latest commit in master Quentin Schulz
@ 2024-11-27 15:12 ` Quentin Schulz
2024-11-28 0:55 ` [yocto-patches] " Trevor Woerner
2024-11-27 15:12 ` [meta-rockchip PATCH 2/2] bsp: rkbin: bump to latest commit in master branch Quentin Schulz
2024-11-27 15:25 ` [meta-rockchip PATCH 0/2] bsp: rkbin: bump to latest commit in master Quentin Schulz
2 siblings, 1 reply; 11+ messages in thread
From: Quentin Schulz @ 2024-11-27 15:12 UTC (permalink / raw)
To: yocto-patches; +Cc: Quentin Schulz
From: Quentin Schulz <quentin.schulz@cherry.de>
To avoid both having to modify this file every time the
rockchip-rbin.inc SRCREV is bumped and also having to override it were
a user to have to mix and match versions for different products, let's
just use a glob pattern.
Note that the glob pattern should only match one path, which is the case
right now.
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
recipes-bsp/rkbin/rockchip-rkbin-ddr_git.bb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/recipes-bsp/rkbin/rockchip-rkbin-ddr_git.bb b/recipes-bsp/rkbin/rockchip-rkbin-ddr_git.bb
index 0ff71320de8cfeee259a820a07375f490d1086d6..a22c7e12c32b5e1988e8e6b870b94cf9438f23ae 100644
--- a/recipes-bsp/rkbin/rockchip-rkbin-ddr_git.bb
+++ b/recipes-bsp/rkbin/rockchip-rkbin-ddr_git.bb
@@ -9,15 +9,15 @@ do_deploy:rk3308() {
do_deploy:rk3566() {
# Prebuilt U-Boot TPL (DDR init)
- install -m 644 ${S}/bin/rk35/rk3566_ddr_1056MHz_v1.21.bin ${DEPLOYDIR}/ddr-rk3566.bin
+ install -m 644 ${S}/bin/rk35/rk3566_ddr_1056MHz_v*.bin ${DEPLOYDIR}/ddr-rk3566.bin
}
do_deploy:rk3568() {
# Prebuilt U-Boot TPL (DDR init)
- install -m 644 ${S}/bin/rk35/rk3568_ddr_1560MHz_v1.21.bin ${DEPLOYDIR}/ddr-rk3568.bin
+ install -m 644 ${S}/bin/rk35/rk3568_ddr_1560MHz_v*.bin ${DEPLOYDIR}/ddr-rk3568.bin
}
do_deploy:rk3588s() {
# Prebuilt U-Boot TPL (DDR init)
- install -m 644 ${S}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.16.bin ${DEPLOYDIR}/ddr-rk3588.bin
+ install -m 644 ${S}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v*.bin ${DEPLOYDIR}/ddr-rk3588.bin
}
--
2.47.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [meta-rockchip PATCH 2/2] bsp: rkbin: bump to latest commit in master branch
2024-11-27 15:12 [meta-rockchip PATCH 0/2] bsp: rkbin: bump to latest commit in master Quentin Schulz
2024-11-27 15:12 ` [meta-rockchip PATCH 1/2] bsp: rkbin: rkbin-ddr: use glob pattern for finding DDR init Quentin Schulz
@ 2024-11-27 15:12 ` Quentin Schulz
2024-11-28 1:01 ` [yocto-patches] " Trevor Woerner
2024-11-27 15:25 ` [meta-rockchip PATCH 0/2] bsp: rkbin: bump to latest commit in master Quentin Schulz
2 siblings, 1 reply; 11+ messages in thread
From: Quentin Schulz @ 2024-11-27 15:12 UTC (permalink / raw)
To: yocto-patches; +Cc: Quentin Schulz
From: Quentin Schulz <quentin.schulz@cherry.de>
This seems to be fixing random RCU stalls, system hangs or resets while
running upstream Linux kernel on RK3588 boards.
License-Update: Fixing typos c.f. 385bf9f1700c ("license: typo fix")
Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
---
recipes-bsp/rkbin/rockchip-rkbin.inc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/recipes-bsp/rkbin/rockchip-rkbin.inc b/recipes-bsp/rkbin/rockchip-rkbin.inc
index d70a5551c8171188af93dddf4b3b1dc960f27a83..9264db9048e31b7dae650bdc8e31009f7f4cf404 100644
--- a/recipes-bsp/rkbin/rockchip-rkbin.inc
+++ b/recipes-bsp/rkbin/rockchip-rkbin.inc
@@ -1,7 +1,7 @@
SRC_URI = "git://github.com/rockchip-linux/rkbin;protocol=https;branch=master"
-SRCREV = "a2a0b89b6c8c612dca5ed9ed8a68db8a07f68bc0"
+SRCREV = "7c35e21a8529b3758d1f051d1a5dc62aae934b2b"
LICENSE = "Proprietary"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=15faa4a01e7eb0f5d33f9f2bcc7bff62"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=11e3673115959bf596feaaa6ea7ce9a5"
inherit bin_package deploy
--
2.47.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [meta-rockchip PATCH 0/2] bsp: rkbin: bump to latest commit in master
2024-11-27 15:12 [meta-rockchip PATCH 0/2] bsp: rkbin: bump to latest commit in master Quentin Schulz
2024-11-27 15:12 ` [meta-rockchip PATCH 1/2] bsp: rkbin: rkbin-ddr: use glob pattern for finding DDR init Quentin Schulz
2024-11-27 15:12 ` [meta-rockchip PATCH 2/2] bsp: rkbin: bump to latest commit in master branch Quentin Schulz
@ 2024-11-27 15:25 ` Quentin Schulz
2 siblings, 0 replies; 11+ messages in thread
From: Quentin Schulz @ 2024-11-27 15:25 UTC (permalink / raw)
To: Quentin Schulz, yocto-patches
Hi Trevor,
On 11/27/24 4:12 PM, Quentin Schulz wrote:
> We've been hit by a lot of random RCU stalls, system hangs or resets on
> some (not all) of our RK3588-based products running some old BL31/DDR
> init binaries.
>
> Upgrading to latest commit in master branch seems to mitigate those
> issues, so let's do that.
>
> Only build tested.
>
Just for your information, I plan on backporting this to scarthgap once
merged.
Will probably backport the file renamings as well except if you raise
some objection about this?
https://git.yoctoproject.org/meta-rockchip/commit/?id=56ac8facb1e14a2c7c99aa7e4a606fdd11b70245
https://git.yoctoproject.org/meta-rockchip/commit/?id=e2d1876f028006eadaf672174b8d3072bbec48d1
https://git.yoctoproject.org/meta-rockchip/commit/?id=60354969f0c621f1dc775e7fcd2ad0f3fe8975f8
The downside is that we basically break compatibility between commits in
scarthgap as people would need to rename their bbappends to match the
new filenames. So not so nice.
Cheers,
Quentin
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto-patches] [meta-rockchip PATCH 1/2] bsp: rkbin: rkbin-ddr: use glob pattern for finding DDR init
2024-11-27 15:12 ` [meta-rockchip PATCH 1/2] bsp: rkbin: rkbin-ddr: use glob pattern for finding DDR init Quentin Schulz
@ 2024-11-28 0:55 ` Trevor Woerner
2024-11-28 10:22 ` Quentin Schulz
0 siblings, 1 reply; 11+ messages in thread
From: Trevor Woerner @ 2024-11-28 0:55 UTC (permalink / raw)
To: yocto-patches; +Cc: Quentin Schulz
On Wed 2024-11-27 @ 04:12:58 PM, Quentin Schulz via lists.yoctoproject.org wrote:
> From: Quentin Schulz <quentin.schulz@cherry.de>
>
> To avoid both having to modify this file every time the
> rockchip-rbin.inc SRCREV is bumped and also having to override it were
> a user to have to mix and match versions for different products, let's
> just use a glob pattern.
>
> Note that the glob pattern should only match one path, which is the case
> right now.
I'm not overly fond of the glob method. It was only back in June of this
year that I pushed a patch to move away from globs to using full filenames
explicitly. The savings seem pretty thin compared to the potential surprise
factor when, one day, multiple files might be selected.
Do you feel strongly about switching back to the glob?
> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
> ---
> recipes-bsp/rkbin/rockchip-rkbin-ddr_git.bb | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/recipes-bsp/rkbin/rockchip-rkbin-ddr_git.bb b/recipes-bsp/rkbin/rockchip-rkbin-ddr_git.bb
> index 0ff71320de8cfeee259a820a07375f490d1086d6..a22c7e12c32b5e1988e8e6b870b94cf9438f23ae 100644
> --- a/recipes-bsp/rkbin/rockchip-rkbin-ddr_git.bb
> +++ b/recipes-bsp/rkbin/rockchip-rkbin-ddr_git.bb
> @@ -9,15 +9,15 @@ do_deploy:rk3308() {
>
> do_deploy:rk3566() {
> # Prebuilt U-Boot TPL (DDR init)
> - install -m 644 ${S}/bin/rk35/rk3566_ddr_1056MHz_v1.21.bin ${DEPLOYDIR}/ddr-rk3566.bin
> + install -m 644 ${S}/bin/rk35/rk3566_ddr_1056MHz_v*.bin ${DEPLOYDIR}/ddr-rk3566.bin
> }
>
> do_deploy:rk3568() {
> # Prebuilt U-Boot TPL (DDR init)
> - install -m 644 ${S}/bin/rk35/rk3568_ddr_1560MHz_v1.21.bin ${DEPLOYDIR}/ddr-rk3568.bin
> + install -m 644 ${S}/bin/rk35/rk3568_ddr_1560MHz_v*.bin ${DEPLOYDIR}/ddr-rk3568.bin
> }
>
> do_deploy:rk3588s() {
> # Prebuilt U-Boot TPL (DDR init)
> - install -m 644 ${S}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v1.16.bin ${DEPLOYDIR}/ddr-rk3588.bin
> + install -m 644 ${S}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v*.bin ${DEPLOYDIR}/ddr-rk3588.bin
> }
>
> --
> 2.47.0
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#844): https://lists.yoctoproject.org/g/yocto-patches/message/844
> Mute This Topic: https://lists.yoctoproject.org/mt/109807515/900817
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13168745/900817/63955952/xyzzy [twoerner@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto-patches] [meta-rockchip PATCH 2/2] bsp: rkbin: bump to latest commit in master branch
2024-11-27 15:12 ` [meta-rockchip PATCH 2/2] bsp: rkbin: bump to latest commit in master branch Quentin Schulz
@ 2024-11-28 1:01 ` Trevor Woerner
2024-11-28 10:29 ` Quentin Schulz
0 siblings, 1 reply; 11+ messages in thread
From: Trevor Woerner @ 2024-11-28 1:01 UTC (permalink / raw)
To: yocto-patches; +Cc: Quentin Schulz
On Wed 2024-11-27 @ 04:12:59 PM, Quentin Schulz via lists.yoctoproject.org wrote:
> From: Quentin Schulz <quentin.schulz@cherry.de>
>
> This seems to be fixing random RCU stalls, system hangs or resets while
> running upstream Linux kernel on RK3588 boards.
Very interesting! I have a number of boards that I'm actively using in the
rk3566 (radxa-zero3e), rk3568 (rock-3a), and rk3588 (rock-5a/b) families.
I'm build testing and will try running them once I have images.
Thanks!
> License-Update: Fixing typos c.f. 385bf9f1700c ("license: typo fix")
>
> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
> ---
> recipes-bsp/rkbin/rockchip-rkbin.inc | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-bsp/rkbin/rockchip-rkbin.inc b/recipes-bsp/rkbin/rockchip-rkbin.inc
> index d70a5551c8171188af93dddf4b3b1dc960f27a83..9264db9048e31b7dae650bdc8e31009f7f4cf404 100644
> --- a/recipes-bsp/rkbin/rockchip-rkbin.inc
> +++ b/recipes-bsp/rkbin/rockchip-rkbin.inc
> @@ -1,7 +1,7 @@
> SRC_URI = "git://github.com/rockchip-linux/rkbin;protocol=https;branch=master"
> -SRCREV = "a2a0b89b6c8c612dca5ed9ed8a68db8a07f68bc0"
> +SRCREV = "7c35e21a8529b3758d1f051d1a5dc62aae934b2b"
> LICENSE = "Proprietary"
> -LIC_FILES_CHKSUM = "file://LICENSE;md5=15faa4a01e7eb0f5d33f9f2bcc7bff62"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=11e3673115959bf596feaaa6ea7ce9a5"
>
> inherit bin_package deploy
>
>
> --
> 2.47.0
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#846): https://lists.yoctoproject.org/g/yocto-patches/message/846
> Mute This Topic: https://lists.yoctoproject.org/mt/109807517/900817
> Group Owner: yocto-patches+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto-patches/leave/13168745/900817/63955952/xyzzy [twoerner@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto-patches] [meta-rockchip PATCH 1/2] bsp: rkbin: rkbin-ddr: use glob pattern for finding DDR init
2024-11-28 0:55 ` [yocto-patches] " Trevor Woerner
@ 2024-11-28 10:22 ` Quentin Schulz
2024-11-28 13:51 ` Trevor Woerner
0 siblings, 1 reply; 11+ messages in thread
From: Quentin Schulz @ 2024-11-28 10:22 UTC (permalink / raw)
To: Trevor Woerner, yocto-patches
Hi Trevor,
On 11/28/24 1:55 AM, Trevor Woerner wrote:
> On Wed 2024-11-27 @ 04:12:58 PM, Quentin Schulz via lists.yoctoproject.org wrote:
>> From: Quentin Schulz <quentin.schulz@cherry.de>
>>
>> To avoid both having to modify this file every time the
>> rockchip-rbin.inc SRCREV is bumped and also having to override it were
>> a user to have to mix and match versions for different products, let's
>> just use a glob pattern.
>>
>> Note that the glob pattern should only match one path, which is the case
>> right now.
>
> I'm not overly fond of the glob method. It was only back in June of this
> year that I pushed a patch to move away from globs to using full filenames
> explicitly. The savings seem pretty thin compared to the potential surprise
> factor when, one day, multiple files might be selected.
>
> Do you feel strongly about switching back to the glob?
>
I feel strongly against the status quo :)
We can add a check that only one file is matched by the glob pattern if
necessary and fail otherwise with bbfatal/bberror for example.
If we don't use globs, I need to override the do_deploy:<soc> to replace
the path if I'm building a different version.
Here's what I needed to do on Scarthgap for example in my own layer:
"""
diff --git a/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
b/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
index
9d381a6afadf7dd66855f6635b5f1f053eecba15..299bb2ac476bf9d988925cbd983a66158a8bdf4c
100644
--- a/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
+++ b/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
@@ -1,5 +1,12 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+# Remove once the following series is merged and backported:
+#
https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-0-b90b6c04a88f@cherry.de/
+SRCREV:tiger-haikou = "7c35e21a8529b3758d1f051d1a5dc62aae934b2b"
+SRCREV:jaguar = "7c35e21a8529b3758d1f051d1a5dc62aae934b2b"
+LIC_FILES_CHKSUM:tiger-haikou =
"file://LICENSE;md5=11e3673115959bf596feaaa6ea7ce9a5"
+LIC_FILES_CHKSUM:jaguar =
"file://LICENSE;md5=11e3673115959bf596feaaa6ea7ce9a5"
+
# The files are created locally by running:
# ./tools/ddrbin_tool tools/ddrbin_param.txt RKBIN
#
@@ -24,3 +35,14 @@ do_deploy:append:rk3588s() {
fi
fi
}
+
+# Can be removed once the following patch is merged and backported
+#
https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-1-b90b6c04a88f@cherry.de/
+do_deploy:rk3588s() {
+ # Prebuilt TF-A
+ install -m 644 ${S}/bin/rk35/rk3588_bl31_v*.elf
${DEPLOYDIR}/bl31-rk3588.elf
+ # Prebuilt OPTEE-OS
+ install -m 644 ${S}/bin/rk35/rk3588_bl32_v*.bin
${DEPLOYDIR}/tee-rk3588.bin
+ # Prebuilt U-Boot TPL (DDR init)
+ install -m 644
${S}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v*.bin
${DEPLOYDIR}/ddr-rk3588.bin
+}
"""
The last part of the diff shouldn't be needed.
If you don't want a glob pattern, we could maybe use a variable to store
the path to match so that it can be overridden in bbappends?
What do you think?
Cheers,
Quentin
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto-patches] [meta-rockchip PATCH 2/2] bsp: rkbin: bump to latest commit in master branch
2024-11-28 1:01 ` [yocto-patches] " Trevor Woerner
@ 2024-11-28 10:29 ` Quentin Schulz
0 siblings, 0 replies; 11+ messages in thread
From: Quentin Schulz @ 2024-11-28 10:29 UTC (permalink / raw)
To: Trevor Woerner, yocto-patches
Hi Trevor,
On 11/28/24 2:01 AM, Trevor Woerner wrote:
> On Wed 2024-11-27 @ 04:12:59 PM, Quentin Schulz via lists.yoctoproject.org wrote:
>> From: Quentin Schulz <quentin.schulz@cherry.de>
>>
>> This seems to be fixing random RCU stalls, system hangs or resets while
>> running upstream Linux kernel on RK3588 boards.
>
> Very interesting! I have a number of boards that I'm actively using in the
> rk3566 (radxa-zero3e), rk3568 (rock-3a), and rk3588 (rock-5a/b) families.
>
> I'm build testing and will try running them once I have images.
>
FWIW, we had a "lot" of RCU stalls on some of our RK3588 products with
DDR bin v1.11 and BL31 v1.38 (that we used outside of Yocto builds),
much less (but still some) with v1.16/v1.45, but none (at the moment)
with v1.18/v1.47 (which are the latest publicly available). Note that
some were working just fine with any of three versions, so it seems to
depend on some factors (quality of the binning?).
Cheers,
Quentin
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto-patches] [meta-rockchip PATCH 1/2] bsp: rkbin: rkbin-ddr: use glob pattern for finding DDR init
2024-11-28 10:22 ` Quentin Schulz
@ 2024-11-28 13:51 ` Trevor Woerner
2024-11-28 14:00 ` Quentin Schulz
0 siblings, 1 reply; 11+ messages in thread
From: Trevor Woerner @ 2024-11-28 13:51 UTC (permalink / raw)
To: Quentin Schulz; +Cc: yocto-patches
[-- Attachment #1: Type: text/plain, Size: 3700 bytes --]
How about a variable to hold the version e.g. 1.18 (or whatever)?
On Thu, Nov 28, 2024 at 5:23 AM Quentin Schulz <quentin.schulz@cherry.de>
wrote:
> Hi Trevor,
>
> On 11/28/24 1:55 AM, Trevor Woerner wrote:
> > On Wed 2024-11-27 @ 04:12:58 PM, Quentin Schulz via
> lists.yoctoproject.org wrote:
> >> From: Quentin Schulz <quentin.schulz@cherry.de>
> >>
> >> To avoid both having to modify this file every time the
> >> rockchip-rbin.inc SRCREV is bumped and also having to override it were
> >> a user to have to mix and match versions for different products, let's
> >> just use a glob pattern.
> >>
> >> Note that the glob pattern should only match one path, which is the case
> >> right now.
> >
> > I'm not overly fond of the glob method. It was only back in June of this
> > year that I pushed a patch to move away from globs to using full
> filenames
> > explicitly. The savings seem pretty thin compared to the potential
> surprise
> > factor when, one day, multiple files might be selected.
> >
> > Do you feel strongly about switching back to the glob?
> >
>
> I feel strongly against the status quo :)
>
> We can add a check that only one file is matched by the glob pattern if
> necessary and fail otherwise with bbfatal/bberror for example.
>
> If we don't use globs, I need to override the do_deploy:<soc> to replace
> the path if I'm building a different version.
>
> Here's what I needed to do on Scarthgap for example in my own layer:
>
> """
> diff --git a/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
> b/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
> index
> 9d381a6afadf7dd66855f6635b5f1f053eecba15..299bb2ac476bf9d988925cbd983a66158a8bdf4c
>
> 100644
> --- a/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
> +++ b/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
> @@ -1,5 +1,12 @@
> FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
>
> +# Remove once the following series is merged and backported:
> +#
>
> https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-0-b90b6c04a88f@cherry.de/
> +SRCREV:tiger-haikou
> <https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-0-b90b6c04a88f@cherry.de/+SRCREV:tiger-haikou>
> = "7c35e21a8529b3758d1f051d1a5dc62aae934b2b"
> +SRCREV:jaguar = "7c35e21a8529b3758d1f051d1a5dc62aae934b2b"
> +LIC_FILES_CHKSUM:tiger-haikou =
> "file://LICENSE;md5=11e3673115959bf596feaaa6ea7ce9a5"
> +LIC_FILES_CHKSUM:jaguar =
> "file://LICENSE;md5=11e3673115959bf596feaaa6ea7ce9a5"
> +
> # The files are created locally by running:
> # ./tools/ddrbin_tool tools/ddrbin_param.txt RKBIN
> #
> @@ -24,3 +35,14 @@ do_deploy:append:rk3588s() {
> fi
> fi
> }
> +
> +# Can be removed once the following patch is merged and backported
> +#
>
> https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-1-b90b6c04a88f@cherry.de/
> +do_deploy:rk3588s(
> <https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-1-b90b6c04a88f@cherry.de/+do_deploy:rk3588s(>)
> {
> + # Prebuilt TF-A
> + install -m 644 ${S}/bin/rk35/rk3588_bl31_v*.elf
> ${DEPLOYDIR}/bl31-rk3588.elf
> + # Prebuilt OPTEE-OS
> + install -m 644 ${S}/bin/rk35/rk3588_bl32_v*.bin
> ${DEPLOYDIR}/tee-rk3588.bin
> + # Prebuilt U-Boot TPL (DDR init)
> + install -m 644
> ${S}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v*.bin
> ${DEPLOYDIR}/ddr-rk3588.bin
> +}
> """
>
> The last part of the diff shouldn't be needed.
>
> If you don't want a glob pattern, we could maybe use a variable to store
> the path to match so that it can be overridden in bbappends?
>
> What do you think?
>
> Cheers,
> Quentin
>
[-- Attachment #2: Type: text/html, Size: 4609 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto-patches] [meta-rockchip PATCH 1/2] bsp: rkbin: rkbin-ddr: use glob pattern for finding DDR init
2024-11-28 13:51 ` Trevor Woerner
@ 2024-11-28 14:00 ` Quentin Schulz
2024-11-28 14:43 ` Trevor Woerner
0 siblings, 1 reply; 11+ messages in thread
From: Quentin Schulz @ 2024-11-28 14:00 UTC (permalink / raw)
To: Trevor Woerner; +Cc: yocto-patches
Hi Trevor,
On 11/28/24 2:51 PM, Trevor Woerner wrote:
> How about a variable to hold the version e.g. 1.18 (or whatever)?
>
Considering the filename has changed already for RK3588, I would suggest
the whole filename?
Or two variables?
DDRBIN_VER:rk3588s ?= "v1.18"
DDRBIN_FILE:rk3588s ?=
"rk3588_ddr_lp4_2112MHz_lp5_2400MHz_${DDRBIN_VER}.bin"
So that in most cases you only need to update DDRBIN_VER but it would be
possible to change also the whole filename. This could be useful if you
want to use the eyescan one for some reason, e.g. rk3308 has many
possible frequencies for DDR with different uarts as well.
> On Thu, Nov 28, 2024 at 5:23 AM Quentin Schulz <quentin.schulz@cherry.de>
> wrote:
>
>> Hi Trevor,
>>
>> On 11/28/24 1:55 AM, Trevor Woerner wrote:
>>> On Wed 2024-11-27 @ 04:12:58 PM, Quentin Schulz via
>> lists.yoctoproject.org wrote:
>>>> From: Quentin Schulz <quentin.schulz@cherry.de>
>>>>
>>>> To avoid both having to modify this file every time the
>>>> rockchip-rbin.inc SRCREV is bumped and also having to override it were
>>>> a user to have to mix and match versions for different products, let's
>>>> just use a glob pattern.
>>>>
>>>> Note that the glob pattern should only match one path, which is the case
>>>> right now.
>>>
>>> I'm not overly fond of the glob method. It was only back in June of this
>>> year that I pushed a patch to move away from globs to using full
>> filenames
>>> explicitly. The savings seem pretty thin compared to the potential
>> surprise
>>> factor when, one day, multiple files might be selected.
>>>
>>> Do you feel strongly about switching back to the glob?
>>>
>>
>> I feel strongly against the status quo :)
>>
>> We can add a check that only one file is matched by the glob pattern if
>> necessary and fail otherwise with bbfatal/bberror for example.
>>
>> If we don't use globs, I need to override the do_deploy:<soc> to replace
>> the path if I'm building a different version.
>>
>> Here's what I needed to do on Scarthgap for example in my own layer:
>>
>> """
>> diff --git a/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
>> b/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
>> index
>> 9d381a6afadf7dd66855f6635b5f1f053eecba15..299bb2ac476bf9d988925cbd983a66158a8bdf4c
>>
>> 100644
>> --- a/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
>> +++ b/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
>> @@ -1,5 +1,12 @@
>> FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
>>
>> +# Remove once the following series is merged and backported:
>> +#
>>
>> https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-0-b90b6c04a88f@cherry.de/
>> +SRCREV:tiger-haikou
>> <https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-0-b90b6c04a88f@cherry.de/+SRCREV:tiger-haikou>
>> = "7c35e21a8529b3758d1f051d1a5dc62aae934b2b"
>> +SRCREV:jaguar = "7c35e21a8529b3758d1f051d1a5dc62aae934b2b"
>> +LIC_FILES_CHKSUM:tiger-haikou =
>> "file://LICENSE;md5=11e3673115959bf596feaaa6ea7ce9a5"
>> +LIC_FILES_CHKSUM:jaguar =
>> "file://LICENSE;md5=11e3673115959bf596feaaa6ea7ce9a5"
>> +
>> # The files are created locally by running:
>> # ./tools/ddrbin_tool tools/ddrbin_param.txt RKBIN
>> #
>> @@ -24,3 +35,14 @@ do_deploy:append:rk3588s() {
>> fi
>> fi
>> }
>> +
>> +# Can be removed once the following patch is merged and backported
>> +#
>>
>> https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-1-b90b6c04a88f@cherry.de/
>> +do_deploy:rk3588s(
>> <https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-1-b90b6c04a88f@cherry.de/+do_deploy:rk3588s(>)
>> {
>> + # Prebuilt TF-A
>> + install -m 644 ${S}/bin/rk35/rk3588_bl31_v*.elf
>> ${DEPLOYDIR}/bl31-rk3588.elf
>> + # Prebuilt OPTEE-OS
>> + install -m 644 ${S}/bin/rk35/rk3588_bl32_v*.bin
>> ${DEPLOYDIR}/tee-rk3588.bin
>> + # Prebuilt U-Boot TPL (DDR init)
>> + install -m 644
>> ${S}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v*.bin
>> ${DEPLOYDIR}/ddr-rk3588.bin
>> +}
>> """
>>
>> The last part of the diff shouldn't be needed.
>>
>> If you don't want a glob pattern, we could maybe use a variable to store
>> the path to match so that it can be overridden in bbappends?
>>
>> What do you think?
>>
>> Cheers,
>> Quentin
>>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto-patches] [meta-rockchip PATCH 1/2] bsp: rkbin: rkbin-ddr: use glob pattern for finding DDR init
2024-11-28 14:00 ` Quentin Schulz
@ 2024-11-28 14:43 ` Trevor Woerner
0 siblings, 0 replies; 11+ messages in thread
From: Trevor Woerner @ 2024-11-28 14:43 UTC (permalink / raw)
To: Quentin Schulz; +Cc: yocto-patches
On Thu 2024-11-28 @ 03:00:12 PM, Quentin Schulz wrote:
> Hi Trevor,
>
> On 11/28/24 2:51 PM, Trevor Woerner wrote:
> > How about a variable to hold the version e.g. 1.18 (or whatever)?
> >
>
> Considering the filename has changed already for RK3588, I would suggest the
> whole filename?
>
> Or two variables?
I think that would be great, thanks!
>
> DDRBIN_VER:rk3588s ?= "v1.18"
> DDRBIN_FILE:rk3588s ?=
> "rk3588_ddr_lp4_2112MHz_lp5_2400MHz_${DDRBIN_VER}.bin"
>
> So that in most cases you only need to update DDRBIN_VER but it would be
> possible to change also the whole filename. This could be useful if you want
> to use the eyescan one for some reason, e.g. rk3308 has many possible
> frequencies for DDR with different uarts as well.
Do you know what those eyescan frequencies/binaries are for?
>
> > On Thu, Nov 28, 2024 at 5:23 AM Quentin Schulz <quentin.schulz@cherry.de>
> > wrote:
> >
> > > Hi Trevor,
> > >
> > > On 11/28/24 1:55 AM, Trevor Woerner wrote:
> > > > On Wed 2024-11-27 @ 04:12:58 PM, Quentin Schulz via
> > > lists.yoctoproject.org wrote:
> > > > > From: Quentin Schulz <quentin.schulz@cherry.de>
> > > > >
> > > > > To avoid both having to modify this file every time the
> > > > > rockchip-rbin.inc SRCREV is bumped and also having to override it were
> > > > > a user to have to mix and match versions for different products, let's
> > > > > just use a glob pattern.
> > > > >
> > > > > Note that the glob pattern should only match one path, which is the case
> > > > > right now.
> > > >
> > > > I'm not overly fond of the glob method. It was only back in June of this
> > > > year that I pushed a patch to move away from globs to using full
> > > filenames
> > > > explicitly. The savings seem pretty thin compared to the potential
> > > surprise
> > > > factor when, one day, multiple files might be selected.
> > > >
> > > > Do you feel strongly about switching back to the glob?
> > > >
> > >
> > > I feel strongly against the status quo :)
> > >
> > > We can add a check that only one file is matched by the glob pattern if
> > > necessary and fail otherwise with bbfatal/bberror for example.
> > >
> > > If we don't use globs, I need to override the do_deploy:<soc> to replace
> > > the path if I'm building a different version.
> > >
> > > Here's what I needed to do on Scarthgap for example in my own layer:
> > >
> > > """
> > > diff --git a/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
> > > b/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
> > > index
> > > 9d381a6afadf7dd66855f6635b5f1f053eecba15..299bb2ac476bf9d988925cbd983a66158a8bdf4c
> > >
> > > 100644
> > > --- a/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
> > > +++ b/meta-bsp/recipes-bsp/rkbin/rockchip-rkbin_git.bbappend
> > > @@ -1,5 +1,12 @@
> > > FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
> > >
> > > +# Remove once the following series is merged and backported:
> > > +#
> > >
> > > https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-0-b90b6c04a88f@cherry.de/
> > > +SRCREV:tiger-haikou
> > > <https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-0-b90b6c04a88f@cherry.de/+SRCREV:tiger-haikou>
> > > = "7c35e21a8529b3758d1f051d1a5dc62aae934b2b"
> > > +SRCREV:jaguar = "7c35e21a8529b3758d1f051d1a5dc62aae934b2b"
> > > +LIC_FILES_CHKSUM:tiger-haikou =
> > > "file://LICENSE;md5=11e3673115959bf596feaaa6ea7ce9a5"
> > > +LIC_FILES_CHKSUM:jaguar =
> > > "file://LICENSE;md5=11e3673115959bf596feaaa6ea7ce9a5"
> > > +
> > > # The files are created locally by running:
> > > # ./tools/ddrbin_tool tools/ddrbin_param.txt RKBIN
> > > #
> > > @@ -24,3 +35,14 @@ do_deploy:append:rk3588s() {
> > > fi
> > > fi
> > > }
> > > +
> > > +# Can be removed once the following patch is merged and backported
> > > +#
> > >
> > > https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-1-b90b6c04a88f@cherry.de/
> > > +do_deploy:rk3588s(
> > > <https://lore.kernel.org/yocto-patches/20241127-rkbin-bump-v1-1-b90b6c04a88f@cherry.de/+do_deploy:rk3588s(>)
> > > {
> > > + # Prebuilt TF-A
> > > + install -m 644 ${S}/bin/rk35/rk3588_bl31_v*.elf
> > > ${DEPLOYDIR}/bl31-rk3588.elf
> > > + # Prebuilt OPTEE-OS
> > > + install -m 644 ${S}/bin/rk35/rk3588_bl32_v*.bin
> > > ${DEPLOYDIR}/tee-rk3588.bin
> > > + # Prebuilt U-Boot TPL (DDR init)
> > > + install -m 644
> > > ${S}/bin/rk35/rk3588_ddr_lp4_2112MHz_lp5_2400MHz_v*.bin
> > > ${DEPLOYDIR}/ddr-rk3588.bin
> > > +}
> > > """
> > >
> > > The last part of the diff shouldn't be needed.
> > >
> > > If you don't want a glob pattern, we could maybe use a variable to store
> > > the path to match so that it can be overridden in bbappends?
> > >
> > > What do you think?
> > >
> > > Cheers,
> > > Quentin
> > >
> >
>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-11-28 14:44 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-27 15:12 [meta-rockchip PATCH 0/2] bsp: rkbin: bump to latest commit in master Quentin Schulz
2024-11-27 15:12 ` [meta-rockchip PATCH 1/2] bsp: rkbin: rkbin-ddr: use glob pattern for finding DDR init Quentin Schulz
2024-11-28 0:55 ` [yocto-patches] " Trevor Woerner
2024-11-28 10:22 ` Quentin Schulz
2024-11-28 13:51 ` Trevor Woerner
2024-11-28 14:00 ` Quentin Schulz
2024-11-28 14:43 ` Trevor Woerner
2024-11-27 15:12 ` [meta-rockchip PATCH 2/2] bsp: rkbin: bump to latest commit in master branch Quentin Schulz
2024-11-28 1:01 ` [yocto-patches] " Trevor Woerner
2024-11-28 10:29 ` Quentin Schulz
2024-11-27 15:25 ` [meta-rockchip PATCH 0/2] bsp: rkbin: bump to latest commit in master Quentin Schulz
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.