From: Trevor Woerner <twoerner@gmail.com>
To: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Cc: yocto@lists.yoctoproject.org
Subject: Re: [meta-rockchip][PATCH v4 2/2] rock-5b: add
Date: Wed, 27 Sep 2023 07:29:32 -0400 [thread overview]
Message-ID: <20230927112932.GA7200@localhost> (raw)
In-Reply-To: <20cddc6d-e22a-ff65-f911-daea3dde90a5@theobroma-systems.com>
Hi Quentin,
On Wed 2023-09-27 @ 09:59:57 AM, Quentin Schulz wrote:
> Hi Trevor,
>
> On 9/27/23 04:42, Trevor Woerner wrote:
> [...]
> > diff --git a/recipes-bsp/rkbin/rockchip-rkbin_git.bb b/recipes-bsp/rkbin/rockchip-rkbin_git.bb
> > new file mode 100644
> > index 000000000000..7fefb017053b
> > --- /dev/null
> > +++ b/recipes-bsp/rkbin/rockchip-rkbin_git.bb
> > @@ -0,0 +1,37 @@
> > +DESCRIPTION = "Rockchip Firmware and Tool Binaries"
> > +LICENSE = "Proprietary"
> > +LIC_FILES_CHKSUM = "file://LICENSE;md5=15faa4a01e7eb0f5d33f9f2bcc7bff62"
> > +
> > +SRC_URI = "git://github.com/rockchip-linux/rkbin;protocol=https;branch=master"
> > +SRCREV = "b4558da0860ca48bf1a571dd33ccba580b9abe23"
> > +
> > +PROVIDES += "trusted-firmware-a"
> > +PROVIDES += "optee-os"
> > +
> > +inherit bin_package deploy
> > +
> > +S = "${WORKDIR}/git"
> > +
> > +COMPATIBLE_MACHINE = ""
> > +COMPATIBLE_MACHINE:rk3588s = "rk3588s"
> > +
> > +PACKAGE_ARCH = "${MACHINE_ARCH}"
> > +
> > +do_install() {
> > + # Nothing in this recipe is useful in a filesystem
> > + :
> > +}
> > +
> > +PACKAGES = "${PN}"
> > +ALLOW_EMPTY:${PN} = "1"
> > +
> > +do_deploy() {
> > + # 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_2736MHz_v*.bin ${DEPLOYDIR}/ddr-rk3588.bin
> > +}
> > +
> > +addtask deploy after do_install
> > diff --git a/recipes-bsp/u-boot/u-boot%.bbappend b/recipes-bsp/u-boot/u-boot%.bbappend
> > index 050f55e124d4..f7800625aaf1 100644
> > --- a/recipes-bsp/u-boot/u-boot%.bbappend
> > +++ b/recipes-bsp/u-boot/u-boot%.bbappend
> > @@ -11,6 +11,12 @@ DEPENDS:append = " python3-pyelftools-native"
> > INIT_FIRMWARE_DEPENDS ??= ""
> > +EXTRA_OEMAKE:append:rk3588s = " \
> > + BL31=${DEPLOY_DIR_IMAGE}/bl31-rk3588.elf \
> > + ROCKCHIP_TPL=${DEPLOY_DIR_IMAGE}/ddr-rk3588.bin \
> > + "
> > +INIT_FIRMWARE_DEPENDS:rk3588s = " rockchip-rkbin:do_deploy"
> > +
>
> Mmmmmm thinking about this... I think we'll have a difficult time allowing
> rkbin for ddr.bin and upstream trusted-firmware-a from another recipe for
> bl31.elf because both would be installing the same bl31 file in the deploy
> directory. I guess we can postpone this problem until we have to handle it
> though because nothing comes to mind on how to handle this properly right
> now.
If/when that time comes, we could tweak the do_install()s of rockchip-rkbin
and/or tf-a to install or not install various pieces as required by the
specific case.
Thanks for reviewing!
next prev parent reply other threads:[~2023-09-27 11:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-27 2:42 [meta-rockchip][PATCH v4 0/2] rock-5b: add Trevor Woerner
2023-09-27 2:42 ` [meta-rockchip][PATCH v4 1/2] u-boot: rename firmware dependency Trevor Woerner
2023-09-27 2:42 ` [meta-rockchip][PATCH v4 2/2] rock-5b: add Trevor Woerner
2023-09-27 7:59 ` Quentin Schulz
2023-09-27 11:29 ` Trevor Woerner [this message]
2023-09-29 13:03 ` [meta-rockchip][PATCH v4 0/2] " 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=20230927112932.GA7200@localhost \
--to=twoerner@gmail.com \
--cc=quentin.schulz@theobroma-systems.com \
--cc=yocto@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.