From: Michael Riesch <michael.riesch@wolfvision.net>
To: ptxdist@pengutronix.de, m.tretter@pengutronix.de
Subject: Re: [ptxdist] [PATCH v5 2/5] add package for rockchip firmware binaries
Date: Fri, 28 Jan 2022 14:46:32 +0100 [thread overview]
Message-ID: <438c3c3a-101f-0b17-bf46-9243da296e1c@wolfvision.net> (raw)
In-Reply-To: <20220128125908.GA11273@pengutronix.de>
Hi again,
On 1/28/22 13:59, Michael Olbrich wrote:
> On Fri, Jan 28, 2022 at 01:46:25PM +0100, Michael Riesch wrote:
>> On 1/28/22 13:31, Michael Olbrich wrote:
>>> On Mon, Jan 24, 2022 at 01:09:39PM +0100, Michael Riesch wrote:
>>>> Rockchip provides the SDRAM initialization as well as BL31/BL32
>>>> firmware for their SoCs in binary form. Add a package that downloads
>>>> those binaries for further use in e.g., barebox.
>>>>
>>>> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
>>>> [revised and extended Kconfig]
>>>> Signed-off-by: Michael Riesch <michael.riesch@wolfvision.net>
>>>> ---
>>>> platforms/firmware-rockchip.in | 41 +++++++++++++++++++
>>>> rules/firmware-rockchip.make | 74 ++++++++++++++++++++++++++++++++++
>>>> 2 files changed, 115 insertions(+)
>>>> create mode 100644 platforms/firmware-rockchip.in
>>>> create mode 100644 rules/firmware-rockchip.make
>>>>
>>>> diff --git a/platforms/firmware-rockchip.in b/platforms/firmware-rockchip.in
>>>> new file mode 100644
>>>> index 000000000..aa702416d
>>>> --- /dev/null
>>>> +++ b/platforms/firmware-rockchip.in
>>>> @@ -0,0 +1,41 @@
>>>> +## SECTION=non_free_firmware
>>>> +
>>>> +menuconfig FIRMWARE_ROCKCHIP
>>>> + bool
>>>> + prompt "Rockchip firmware binaries "
>>>> + help
>>>> + Rockchip prebuilt SDRAM initialization and TF-A binaries.
>>>> +
>>>> +if FIRMWARE_ROCKCHIP
>>>> +
>>>> +config FIRMWARE_ROCKCHIP_RK3566_SDRAM
>>>
>>> I still don't like the sub-options here. But I'm still thinking about
>>> whether this part should go into PTXdist itself, so no need to touch this
>>> for now.
>>
>> Care to give us some insight in your current state of reasoning as to
>> whether or not this should enter ptxdist?
>
> It's still somewhat unclear to me, but it seems that all of these files are
> only useful for one specific board. I'm reluctant to add it just for that.
OK, let me emphasize once more that the same OP-TEE/TF-A binaries are
currently used to kick-start
- the Rockchip RK3568 EVB1
- the Pine64 Quartz64 board (RK3566)
- the BananaPi R2 Pro (RK3568)
and possibly more, so that's at least more than one ;-) As I already
stated in [0] there are no alternatives at the moment, so any RK356x
board is bound to require this until Rockchip finally opens up their
TF-A magic.
Eventually the RK356x boards will not need this package anymore, but I
would guess for the promised-for-some-years-and-finally-to-be-released
RK3588 the situation will be quite similar. I believe the package can be
extended to provide those binaries once they are available, as Rockchip
tends to provide the binaries for all SoCs in the same GitHub repository.
The SDRAM init blobs are more specific, but in some form they will
always be required (unless someone really brave steps up and
reverse-engineers the SDRAM initialization, which I don't see coming).
Then it would be nice to provide a rule file that downloads the binaries
and puts them into sysroot. Other rule files can use them subsequently.
Convinced? ;-)
Best regards,
Michael
>
> But it could also serve as an example for this whole infrastructure...
>
> Michael
>
[0]
https://lore.ptxdist.org/ptxdist/b2e89ae2-0ad6-4ac5-5355-3fa64ebde78c@wolfvision.net/
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
next prev parent reply other threads:[~2022-01-28 13:46 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-24 12:09 [ptxdist] [PATCH v5 0/5] Add support for Rockchip firmware blobs Michael Riesch
2022-01-24 12:09 ` [ptxdist] [PATCH v5 1/5] platforms: add section for non-free " Michael Riesch
2022-01-24 12:09 ` [ptxdist] [PATCH v5 2/5] add package for rockchip firmware binaries Michael Riesch
2022-01-28 12:31 ` Michael Olbrich
2022-01-28 12:46 ` Michael Riesch
2022-01-28 12:59 ` Michael Olbrich
2022-01-28 13:46 ` Michael Riesch [this message]
2022-01-24 12:09 ` [ptxdist] [PATCH v5 3/5] scripts: add helper to inject files into a source directory Michael Riesch
2022-01-28 12:27 ` Michael Olbrich
2022-01-24 12:09 ` [ptxdist] [PATCH v5 4/5] barebox: add integration of firmware blobs Michael Riesch
2022-01-28 12:28 ` Michael Olbrich
2022-01-24 12:09 ` [ptxdist] [RFC PATCH v5 5/5] barebox.rockchip: add binary firmware blobs for quartz64 and rk3568-evb1 Michael Riesch
2022-01-28 12:33 ` Michael Olbrich
2022-01-28 15:26 ` Michael Riesch
2022-01-28 16:10 ` Michael Olbrich
2022-01-28 16:48 ` Michael Riesch
2022-01-28 20:08 ` Michael Olbrich
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=438c3c3a-101f-0b17-bf46-9243da296e1c@wolfvision.net \
--to=michael.riesch@wolfvision.net \
--cc=m.tretter@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox