All of lore.kernel.org
 help / color / mirror / Atom feed
From: Trevor Woerner <twoerner@gmail.com>
To: yocto-patches@lists.yoctoproject.org
Cc: Quentin Schulz <quentin.schulz@cherry.de>
Subject: Re: [yocto-patches] [meta-rockchip PATCH v3 0/9] rkbin: factoring do_deploy, customize ddrbin and bump rkbin
Date: Mon, 26 May 2025 12:22:13 -0400	[thread overview]
Message-ID: <20250526162213.GA35361@localhost> (raw)
In-Reply-To: <20250505-ddrbin-custom-v3-0-577b94c72035@cherry.de>

On Mon 2025-05-05 @ 04:20:36 PM, Quentin Schulz via lists.yoctoproject.org wrote:
> This simplifies rockchip-rkbin-ddr, rockchip-rkbin-tf-a and
> rockchip-rkbin-optee-os do_deploy to only have one do_deploy task common
> to all supported SoC instead of having to add a new task override for
> each new SoC. It does require to set a few more variables though.
> Thanks to the variable abstraction, we can now move all of do_deploy
> into the rockchip-rkbin.inc file.
> 
> The downside is that the version for OPTEE-OS and TF-A are now hardcoded
> in recipes, so a bump of rkbin requires to bump those as well.
> 
> Additionally, this finally allows to customize the DDR binary blob using
> Rockchip's ddrbin_tool.py tool. This is typically useful if your board
> isn't following Rockchip's HW reference design, e.g. using a different
> UART controller or pins for serial output, or using a baudrate different
> from the default of 1500000.
> 
> Finally it bumps OP-TEE OS, TF-A and DDR bin recipes to use the latest
> commit in rkbin git repo.
> 
> I am not too fond of using a file as input for the customization, but
> this is what ddrbin_tool.py uses and there are possibly too many
> corner-cases to handle by using fine-grained variables. So for now, I
> decided to go with that but that is for sure not the only possible
> implementation!
> 
> Note that the bump commit wasn't tested.
> 
> Note that I plan on backporting all but the factoring out and rkbin
> bump patches to scarthgap (and I assume styhead too). The factoring out
> patches would break backward compatibility if someone appends to the
> do_deploy:<override> task. The last patch could be merged but there's no
> absolute need for it?
> 
> Lastly, the patch about customizing DDR bin needs to be modified before
> being backported as it uses UNPACKDIR which doesn't exist in scarthgap.
> The logic should be safe to use with ${S} (for scarthgap) though!
> 
> @Trevor, maybe you can check if that would fix your issue with the
> RK3308 DDR blob you wanted to keep on that outdated version which is one
> of the last versions where the UART you want to use exists? It'd be nice
> to get rid of the rk3308-specific recipes I believe :)
> 
> Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
> ---
> Changes in v3:
> - fixed tee- prefix instead of bl31- in rockchip-ddrbin-tf-a recipe,
> - build tested with bitbake virtual/bootloader,
> - Link to v2: https://lore.kernel.org/r/20250418-ddrbin-custom-v2-0-700828527faf@cherry.de
> 
> Changes in v2:
> - factored out rockchip-rkbin-optee-os and rockchip-rkbin-tf-a as well,
> - moved do_deploy (and RKBIN_BINDIR) to rockchip-rkbin.inc,
> - removed bbfatal for the version variable as it's not used directly,
>   only through another variable, which can be overwritten, so it doesn't
>   make sense to enforce it if it's not necessarily used,
> - renamed variables to be recipe-agnostic (e.g. RKBIN_ instead of
>   DDRBIN_ for the prefix) so they can be used from the .inc in the
>   do_deploy task,
> - renamed ddrbin_params.txt into ddrbin_param.txt to match the original
>   filename in rkbin git repo,
> - Link to v1: https://lore.kernel.org/r/20250311-ddrbin-custom-v1-0-e5c994ac25e1@cherry.de
> 
> ---
> Quentin Schulz (9):
>       bsp: rkbin: ddr: store directory path for the DDR bin blob in a variable
>       bsp: rkbin: ddr: make deployed name configurable
>       bsp: rkbin: add native recipe for tools (ddrbin_tool.py)
>       bsp: rkbin: ddr: allow to customize DDR bin blob
>       bsp: rkbin: ddr: factor out do_deploy to be SoC-agnostic
>       bsp: rkbin: optee-os: factor out do_deploy to be SoC-agnostic
>       bsp: rkbin: tf-a: factor out do_deploy to be SoC-agnostic
>       bsp: rkbin: factor out do_deploy and RKBIN_BINDIR variable
>       bsp: rkbin: bump to latest commit in master branch
> 
>  README                                           | 20 +++++-
>  recipes-bsp/rkbin/rockchip-rkbin-ddr_git.bb      | 83 ++++++++++++++++--------
>  recipes-bsp/rkbin/rockchip-rkbin-native_git.bb   | 21 ++++++
>  recipes-bsp/rkbin/rockchip-rkbin-optee-os_git.bb | 29 ++++-----
>  recipes-bsp/rkbin/rockchip-rkbin-tf-a_git.bb     | 29 ++++-----
>  recipes-bsp/rkbin/rockchip-rkbin.inc             | 21 +++++-
>  6 files changed, 141 insertions(+), 62 deletions(-)
> ---
> base-commit: 0aba79e47951b049bcdd39e07f660c665e257393
> change-id: 20250311-ddrbin-custom-f83918406e3a

Applied to meta-rockchip, master branch. Thanks!


      parent reply	other threads:[~2025-05-26 16:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-05 14:20 [meta-rockchip PATCH v3 0/9] rkbin: factoring do_deploy, customize ddrbin and bump rkbin Quentin Schulz
2025-05-05 14:20 ` [meta-rockchip PATCH v3 1/9] bsp: rkbin: ddr: store directory path for the DDR bin blob in a variable Quentin Schulz
2025-05-05 14:20 ` [meta-rockchip PATCH v3 2/9] bsp: rkbin: ddr: make deployed name configurable Quentin Schulz
2025-05-05 14:20 ` [meta-rockchip PATCH v3 3/9] bsp: rkbin: add native recipe for tools (ddrbin_tool.py) Quentin Schulz
2025-05-05 14:20 ` [meta-rockchip PATCH v3 4/9] bsp: rkbin: ddr: allow to customize DDR bin blob Quentin Schulz
2025-05-05 14:20 ` [meta-rockchip PATCH v3 5/9] bsp: rkbin: ddr: factor out do_deploy to be SoC-agnostic Quentin Schulz
2025-05-05 14:20 ` [meta-rockchip PATCH v3 6/9] bsp: rkbin: optee-os: " Quentin Schulz
2025-05-05 14:20 ` [meta-rockchip PATCH v3 7/9] bsp: rkbin: tf-a: " Quentin Schulz
2025-05-05 14:20 ` [meta-rockchip PATCH v3 8/9] bsp: rkbin: factor out do_deploy and RKBIN_BINDIR variable Quentin Schulz
2025-05-05 14:20 ` [meta-rockchip PATCH v3 9/9] bsp: rkbin: bump to latest commit in master branch Quentin Schulz
2025-05-26 16:22 ` Trevor Woerner [this message]

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=20250526162213.GA35361@localhost \
    --to=twoerner@gmail.com \
    --cc=quentin.schulz@cherry.de \
    --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.