* [meta-rockchip] [PATCH v3] rk3288: use u-boot.img as bootloader image
@ 2025-11-08 22:56 Peter Shkenev
2025-11-10 9:44 ` [yocto-patches] " Quentin Schulz
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Peter Shkenev @ 2025-11-08 22:56 UTC (permalink / raw)
To: yocto-patches; +Cc: twoerner, Peter Shkenev
Currently, u-boot.bin is used for supported rk3288-based boards. But on
some boards, such as tinker-board, it can not be loaded, since
u-boot.bin is raw and those boards have raw image support
(CONFIG_SPL_RAW_IMAGE_SUPPORT) disabled in favour of FIT images.
Use u-boot.img which is FIT when FIT support is enabled, and raw
otherwise.
Also add a note that u-boot.itb should be used if one wantes to utilize
OP-TEE.
Suggested-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Peter Shkenev <mustela@erminea.space>
---
conf/machine/include/rk3288.inc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/conf/machine/include/rk3288.inc b/conf/machine/include/rk3288.inc
index a648b44..00cc04b 100644
--- a/conf/machine/include/rk3288.inc
+++ b/conf/machine/include/rk3288.inc
@@ -13,6 +13,7 @@ SERIAL_CONSOLES = "115200;ttyS2"
KBUILD_DEFCONFIG ?= "multi_v7_defconfig"
KERNEL_FEATURES:append:rk3288 = " bsp/rockchip/remove-non-rockchip-arch-arm.scc"
-UBOOT_SUFFIX ?= "bin"
+# Set UBOOT_SUFFIX to "itb" if you are going to use OP-TEE
+UBOOT_SUFFIX ?= "img"
ENABLE_STATELESS_VPU_GST ?= "1"
--
2.51.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [yocto-patches] [meta-rockchip] [PATCH v3] rk3288: use u-boot.img as bootloader image
2025-11-08 22:56 [meta-rockchip] [PATCH v3] rk3288: use u-boot.img as bootloader image Peter Shkenev
@ 2025-11-10 9:44 ` Quentin Schulz
2025-11-14 14:53 ` Trevor Woerner
2025-11-14 16:00 ` Trevor Woerner
2 siblings, 0 replies; 6+ messages in thread
From: Quentin Schulz @ 2025-11-10 9:44 UTC (permalink / raw)
To: yocto-patches; +Cc: twoerner, Peter Shkenev
Hi Peter,
On 11/8/25 11:56 PM, Peter Shkenev via lists.yoctoproject.org wrote:
> [You don't often get email from mustela=erminea.space@lists.yoctoproject.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> Currently, u-boot.bin is used for supported rk3288-based boards. But on
> some boards, such as tinker-board, it can not be loaded, since
> u-boot.bin is raw and those boards have raw image support
> (CONFIG_SPL_RAW_IMAGE_SUPPORT) disabled in favour of FIT images.
>
> Use u-boot.img which is FIT when FIT support is enabled, and raw
> otherwise.
>
> Also add a note that u-boot.itb should be used if one wantes to utilize
> OP-TEE.
>
> Suggested-by: Quentin Schulz <quentin.schulz@cherry.de>
>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Thanks!
Quentin
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [meta-rockchip] [PATCH v3] rk3288: use u-boot.img as bootloader image
2025-11-08 22:56 [meta-rockchip] [PATCH v3] rk3288: use u-boot.img as bootloader image Peter Shkenev
2025-11-10 9:44 ` [yocto-patches] " Quentin Schulz
@ 2025-11-14 14:53 ` Trevor Woerner
2025-11-14 15:01 ` Trevor Woerner
2025-11-14 16:00 ` Trevor Woerner
2 siblings, 1 reply; 6+ messages in thread
From: Trevor Woerner @ 2025-11-14 14:53 UTC (permalink / raw)
To: Peter Shkenev; +Cc: yocto-patches
My build testing shows that this patch fails for the rock2-square
MACHINE. Are others seeing this as well? In the v1 patch Quentin noticed
this and mentioned building for all rk3288 devices, was this tested?
On Sun 2025-11-09 @ 01:56:41 AM, Peter Shkenev wrote:
> Currently, u-boot.bin is used for supported rk3288-based boards. But on
> some boards, such as tinker-board, it can not be loaded, since
> u-boot.bin is raw and those boards have raw image support
> (CONFIG_SPL_RAW_IMAGE_SUPPORT) disabled in favour of FIT images.
>
> Use u-boot.img which is FIT when FIT support is enabled, and raw
> otherwise.
>
> Also add a note that u-boot.itb should be used if one wantes to utilize
> OP-TEE.
>
> Suggested-by: Quentin Schulz <quentin.schulz@cherry.de>
>
> Signed-off-by: Peter Shkenev <mustela@erminea.space>
> ---
> conf/machine/include/rk3288.inc | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/conf/machine/include/rk3288.inc b/conf/machine/include/rk3288.inc
> index a648b44..00cc04b 100644
> --- a/conf/machine/include/rk3288.inc
> +++ b/conf/machine/include/rk3288.inc
> @@ -13,6 +13,7 @@ SERIAL_CONSOLES = "115200;ttyS2"
> KBUILD_DEFCONFIG ?= "multi_v7_defconfig"
> KERNEL_FEATURES:append:rk3288 = " bsp/rockchip/remove-non-rockchip-arch-arm.scc"
>
> -UBOOT_SUFFIX ?= "bin"
> +# Set UBOOT_SUFFIX to "itb" if you are going to use OP-TEE
> +UBOOT_SUFFIX ?= "img"
>
> ENABLE_STATELESS_VPU_GST ?= "1"
> --
> 2.51.1
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [meta-rockchip] [PATCH v3] rk3288: use u-boot.img as bootloader image
2025-11-14 14:53 ` Trevor Woerner
@ 2025-11-14 15:01 ` Trevor Woerner
2025-11-24 13:19 ` [yocto-patches] " Quentin Schulz
0 siblings, 1 reply; 6+ messages in thread
From: Trevor Woerner @ 2025-11-14 15:01 UTC (permalink / raw)
To: Peter Shkenev; +Cc: yocto-patches
On Fri 2025-11-14 @ 09:53:08 AM, Trevor Woerner wrote:
> My build testing shows that this patch fails for the rock2-square
> MACHINE. Are others seeing this as well? In the v1 patch Quentin noticed
> this and mentioned building for all rk3288 devices, was this tested?
Actually, never mind, the fix is so small and obvious, I'll just roll it
into the patch and commit it.
> On Sun 2025-11-09 @ 01:56:41 AM, Peter Shkenev wrote:
> > Currently, u-boot.bin is used for supported rk3288-based boards. But on
> > some boards, such as tinker-board, it can not be loaded, since
> > u-boot.bin is raw and those boards have raw image support
> > (CONFIG_SPL_RAW_IMAGE_SUPPORT) disabled in favour of FIT images.
> >
> > Use u-boot.img which is FIT when FIT support is enabled, and raw
> > otherwise.
> >
> > Also add a note that u-boot.itb should be used if one wantes to utilize
> > OP-TEE.
> >
> > Suggested-by: Quentin Schulz <quentin.schulz@cherry.de>
> >
> > Signed-off-by: Peter Shkenev <mustela@erminea.space>
> > ---
> > conf/machine/include/rk3288.inc | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/conf/machine/include/rk3288.inc b/conf/machine/include/rk3288.inc
> > index a648b44..00cc04b 100644
> > --- a/conf/machine/include/rk3288.inc
> > +++ b/conf/machine/include/rk3288.inc
> > @@ -13,6 +13,7 @@ SERIAL_CONSOLES = "115200;ttyS2"
> > KBUILD_DEFCONFIG ?= "multi_v7_defconfig"
> > KERNEL_FEATURES:append:rk3288 = " bsp/rockchip/remove-non-rockchip-arch-arm.scc"
> >
> > -UBOOT_SUFFIX ?= "bin"
> > +# Set UBOOT_SUFFIX to "itb" if you are going to use OP-TEE
> > +UBOOT_SUFFIX ?= "img"
> >
> > ENABLE_STATELESS_VPU_GST ?= "1"
> > --
> > 2.51.1
> >
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [meta-rockchip] [PATCH v3] rk3288: use u-boot.img as bootloader image
2025-11-08 22:56 [meta-rockchip] [PATCH v3] rk3288: use u-boot.img as bootloader image Peter Shkenev
2025-11-10 9:44 ` [yocto-patches] " Quentin Schulz
2025-11-14 14:53 ` Trevor Woerner
@ 2025-11-14 16:00 ` Trevor Woerner
2 siblings, 0 replies; 6+ messages in thread
From: Trevor Woerner @ 2025-11-14 16:00 UTC (permalink / raw)
To: Peter Shkenev; +Cc: yocto-patches
On Sun 2025-11-09 @ 01:56:41 AM, Peter Shkenev wrote:
> Currently, u-boot.bin is used for supported rk3288-based boards. But on
> some boards, such as tinker-board, it can not be loaded, since
> u-boot.bin is raw and those boards have raw image support
> (CONFIG_SPL_RAW_IMAGE_SUPPORT) disabled in favour of FIT images.
>
> Use u-boot.img which is FIT when FIT support is enabled, and raw
> otherwise.
>
> Also add a note that u-boot.itb should be used if one wantes to utilize
> OP-TEE.
>
> Suggested-by: Quentin Schulz <quentin.schulz@cherry.de>
>
> Signed-off-by: Peter Shkenev <mustela@erminea.space>
> ---
> conf/machine/include/rk3288.inc | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to meta-rockchip, master branch.
Thanks!
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [yocto-patches] [meta-rockchip] [PATCH v3] rk3288: use u-boot.img as bootloader image
2025-11-14 15:01 ` Trevor Woerner
@ 2025-11-24 13:19 ` Quentin Schulz
0 siblings, 0 replies; 6+ messages in thread
From: Quentin Schulz @ 2025-11-24 13:19 UTC (permalink / raw)
To: yocto-patches, Peter Shkenev
Hi Trevor,
On 11/14/25 4:01 PM, Trevor Woerner via lists.yoctoproject.org wrote:
> On Fri 2025-11-14 @ 09:53:08 AM, Trevor Woerner wrote:
>> My build testing shows that this patch fails for the rock2-square
>> MACHINE. Are others seeing this as well? In the v1 patch Quentin noticed
>> this and mentioned building for all rk3288 devices, was this tested?
>
> Actually, never mind, the fix is so small and obvious, I'll just roll it
> into the patch and commit it.
>
(Probably should have used ${UBOOT_SUFFIX} for the fixup :) )
Do you have a Rock2 Square by any chance? I'm wondering if we cannot
migrate it to use wic instead of rockchip-gpt-img for generating the
final flashable image? But I don't own the board so it makes it a bit
hard to test patches.
Cheers,
Quentin
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-11-24 13:19 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-08 22:56 [meta-rockchip] [PATCH v3] rk3288: use u-boot.img as bootloader image Peter Shkenev
2025-11-10 9:44 ` [yocto-patches] " Quentin Schulz
2025-11-14 14:53 ` Trevor Woerner
2025-11-14 15:01 ` Trevor Woerner
2025-11-24 13:19 ` [yocto-patches] " Quentin Schulz
2025-11-14 16:00 ` Trevor Woerner
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.