• Bug#1050968: ITP: rkbin -- Pre-built Rockchip bootloader firmware binar

    From Vagrant Cascadian@21:1/5 to Christopher Obbard on Tue Mar 18 19:20:01 2025
    On 2023-08-31, Christopher Obbard wrote:
    Package name : rkbin
    Version : 0.0.0~git20230726.b4558da
    Upstream Contact: Kever Yang <kever.yang@rock-chips.com>
    URL : https://github.com/rockchip-linux/rkbin
    License : Copyright © 2017-2023,Rockchip Electronics Co.,
    Ltd. All rights reserved.
    Programming Lang: n/a; prebuilt firmware binaries
    Description : Pre-built Rockchip bootloader firmware binaries (for embedded targets)

    This package contains the Rockchip bootloader firmware binaries, primarily used for targets where no open-source versions is yet released.
    The pre-built firmware consists of builds of Arm Trusted Firmware, OP-TEE
    and U-Boot. There are also some closed-source tools in this repo, build for amd64. These will be stripped from the upstream source package as I do
    not (yet) see a need for these.

    This package is required to build U-Boot for some embedded targets such as rk3588, rk3566, rk3568. All of these will eventually have open-source firmware, but it is still useful for new processors in the future where U-Boot support will be merged long before the initial DRAM bringup and trusted firmware.

    Arm Trusted Firmware for some of these rk35xx variants is now supported
    in the Debian packaging and upstream. I think the only thing left for
    rk3588 is the DDR training binaries from rkbin:

    https://www.collabora.com/news-and-blog/blog/2024/02/21/almost-a-fully-open-source-boot-chain-for-rockchips-rk3588/

    Not sure about the other rk35xx variants.


    I expect this package will go into non-free-firmware.

    I *think* this license looks plausible for non-free-firmware:

    https://github.com/rockchip-linux/rkbin/blob/master/LICENSE

    Rockchip hereby grants to you a non-exclusive license (a) to use, copy,
    distribute the Software; (b) to modify any source code as part of Software(if
    any) and sublicense, distribute such modifications.
    Except as expressively authorized by Rockchip in writing, you may NOT:
    (a) decompile, reverse-engineer, dissemble, or attempt to derive any source
    code from the Software;
    (b) remove or obscure any copyright, patent, or trademark statement or notices
    contained in the Software.

    Those exclusions might make it hard for folks to come up with free implementations, though. :(


    live well,
    vagrant

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZ9m1jAAKCRDcUY/If5cW qs0LAQDrU7VYQY81a5AHaXjQ2hys7HpEij7T/SCzbGnInQOrEwEAsgvmmfgV2HZz 4VmNjbGzhDLMchIxdaJhEuL6wsEC1ws=ni41
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christopher Obbard@21:1/5 to vagrant@debian.org on Sat Mar 22 03:10:01 2025
    Hi Vagrant and Kever,

    On Tue, 18 Mar 2025, 18:22 Vagrant Cascadian, <vagrant@debian.org> wrote:

    On 2023-08-31, Christopher Obbard wrote:
    Package name : rkbin
    Version : 0.0.0~git20230726.b4558da
    Upstream Contact: Kever Yang <kever.yang@rock-chips.com>
    URL : https://github.com/rockchip-linux/rkbin
    License : Copyright © 2017-2023,Rockchip Electronics Co.,
    Ltd. All rights reserved.
    Programming Lang: n/a; prebuilt firmware binaries
    Description : Pre-built Rockchip bootloader firmware binaries (for
    embedded targets)

    This package contains the Rockchip bootloader firmware binaries,
    primarily
    used for targets where no open-source versions is yet released.
    The pre-built firmware consists of builds of Arm Trusted Firmware, OP-TEE and U-Boot. There are also some closed-source tools in this repo, build
    for
    amd64. These will be stripped from the upstream source package as I do
    not (yet) see a need for these.

    This package is required to build U-Boot for some embedded targets such
    as
    rk3588, rk3566, rk3568. All of these will eventually have open-source firmware, but it is still useful for new processors in the future where U-Boot support will be merged long before the initial DRAM bringup and trusted firmware.

    Arm Trusted Firmware for some of these rk35xx variants is now supported
    in the Debian packaging and upstream. I think the only thing left for
    rk3588 is the DDR training binaries from rkbin:


    https://www.collabora.com/news-and-blog/blog/2024/02/21/almost-a-fully-open-source-boot-chain-for-rockchips-rk3588/

    Not sure about the other rk35xx variants.


    @Kever I wonder if rockchip plan to open source the RAM training into
    u-boot like other platforms?

    This would remove need for rbkin in Debian.

    PS: I don't have time to look at packaging robin until the late summer. If someone else wishes to do it, I'd happily help with reviewing and sponsor
    an upload into Debian.

    Chris



    I expect this package will go into non-free-firmware.

    I *think* this license looks plausible for non-free-firmware:

    https://github.com/rockchip-linux/rkbin/blob/master/LICENSE

    Rockchip hereby grants to you a non-exclusive license (a) to use, copy,
    distribute the Software; (b) to modify any source code as part of Software(if
    any) and sublicense, distribute such modifications.
    Except as expressively authorized by Rockchip in writing, you may NOT:
    (a) decompile, reverse-engineer, dissemble, or attempt to derive any
    source
    code from the Software;
    (b) remove or obscure any copyright, patent, or trademark statement or notices
    contained in the Software.

    Those exclusions might make it hard for folks to come up with free implementations, though. :(


    live well,
    vagrant


    <div dir="auto"><div>Hi Vagrant  and Kever,<br><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, 18 Mar 2025, 18:22 Vagrant Cascadian, &lt;<a href="mailto:vagrant@debian.org">vagrant@debian.org</a>&gt; wrote:<
    </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2023-08-31, Christopher Obbard wrote:<br>
    &gt;   Package name    : rkbin<br>
    &gt;   Version         : 0.0.0~git20230726.b4558da<br>
    &gt;   Upstream Contact: Kever Yang &lt;<a href="mailto:kever.yang@rock-chips.com" target="_blank" rel="noreferrer">kever.yang@rock-chips.com</a>&gt;<br>
    &gt;   URL             : <a href="https://github.com/rockchip-linux/rkbin" rel="noreferrer noreferrer" target="_blank">https://github.com/rockchip-linux/rkbin</a><br>
    &gt;   License         : Copyright © 2017-2023,Rockchip Electronics Co.,<br>
    &gt;   Ltd. All rights reserved.<br>
    &gt;   Programming Lang: n/a; prebuilt firmware binaries<br>
    &gt;   Description     : Pre-built Rockchip bootloader firmware binaries (for embedded targets)<br>
    &gt;<br>
    &gt; This package contains the Rockchip bootloader firmware binaries, primarily<br>
    &gt; used for targets where no open-source versions is yet released.<br>
    &gt; The pre-built firmware consists of builds of Arm Trusted Firmware, OP-TEE<br>
    &gt; and U-Boot. There are also some closed-source tools in this repo, build for<br>
    &gt; amd64. These will be stripped from the upstream source package as I do<br> &gt; not (yet) see a need for these.<br>

    &gt; This package is required to build U-Boot for some embedded targets such as<br>
    &gt; rk3588, rk3566, rk3568. All of these will eventually have open-source<br> &gt; firmware, but it is still useful for new processors in the future where<br>
    &gt; U-Boot support will be merged long before the initial DRAM bringup and<br> &gt; trusted firmware.<br>

    Arm Trusted Firmware for some of these rk35xx variants is now supported<br>
    in the Debian packaging and upstream. I think the only thing left for<br> rk3588 is the DDR training binaries from rkbin:<br>

      <a href="https://www.collabora.com/news-and-blog/blog/2024/02/21/almost-a-fully-open-source-boot-chain-for-rockchips-rk3588/" rel="noreferrer noreferrer" target="_blank">https://www.collabora.com/news-and-blog/blog/2024/02/21/almost-a-fully-open-
    source-boot-chain-for-rockchips-rk3588/</a><br>

    Not sure about the other rk35xx variants.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">@Kever I wonder if rockchip plan to open source the RAM training into u-boot like other platforms?</div><div dir="auto"><br></div><div dir="
    auto">This would remove need for rbkin in Debian.</div><div dir="auto"><br></div><div dir="auto">PS: I don&#39;t have time to look at packaging robin until the late summer. If someone else wishes to do it, I&#39;d happily help with reviewing and 
    sponsor an upload into Debian.</div><div dir="auto"><br></div><div dir="auto">Chris</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote gmail_quote_container"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #
    ccc solid;padding-left:1ex">


    &gt; I expect this package will go into non-free-firmware.<br>

    I *think* this license looks plausible for non-free-firmware:<br>

    <a href="https://github.com/rockchip-linux/rkbin/blob/master/LICENSE" rel="noreferrer noreferrer" target="_blank">https://github.com/rockchip-linux/rkbin/blob/master/LICENSE</a><br>

      Rockchip hereby grants to you a non-exclusive license (a) to use, copy,<br>   distribute the Software; (b) to modify any source code as part of Software(if<br>
      any) and sublicense, distribute such modifications.<br>
      Except as expressively authorized by Rockchip in writing, you may NOT:<br>   (a) decompile, reverse-engineer, dissemble, or attempt to derive any source<br>
      code from the Software;<br>
      (b) remove or obscure any copyright, patent, or trademark statement or notices<br>
      contained in the Software.<br>

    Those exclusions might make it hard for folks to come up with free<br> implementations, though. :(<br>


    live well,<br>
      vagrant<br>
    </blockquote></div></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kever Yang@21:1/5 to Christopher Obbard on Thu Mar 27 11:10:02 2025
    This is a multi-part message in MIME format.
    Hi Christopher,

    On 2025/3/22 09:58, Christopher Obbard wrote:
    Hi Vagrant  and Kever,

    On Tue, 18 Mar 2025, 18:22 Vagrant Cascadian, <vagrant@debian.org> wrote:

    On 2023-08-31, Christopher Obbard wrote:
    >   Package name    : rkbin
    >   Version         : 0.0.0~git20230726.b4558da
    >   Upstream Contact: Kever Yang <kever.yang@rock-chips.com>
    >   URL             : https://github.com/rockchip-linux/rkbin
    >   License         : Copyright © 2017-2023,Rockchip Electronics Co.,
    >   Ltd. All rights reserved.
    >   Programming Lang: n/a; prebuilt firmware binaries
    >   Description     : Pre-built Rockchip bootloader firmware
    binaries (for embedded targets)
    >
    > This package contains the Rockchip bootloader firmware binaries,
    primarily
    > used for targets where no open-source versions is yet released.
    > The pre-built firmware consists of builds of Arm Trusted
    Firmware, OP-TEE
    > and U-Boot. There are also some closed-source tools in this
    repo, build for
    > amd64. These will be stripped from the upstream source package
    as I do
    > not (yet) see a need for these.

    > This package is required to build U-Boot for some embedded
    targets such as
    > rk3588, rk3566, rk3568. All of these will eventually have
    open-source
    > firmware, but it is still useful for new processors in the
    future where
    > U-Boot support will be merged long before the initial DRAM
    bringup and
    > trusted firmware.

    Arm Trusted Firmware for some of these rk35xx variants is now
    supported
    in the Debian packaging and upstream. I think the only thing left for
    rk3588 is the DDR training binaries from rkbin:

    https://www.collabora.com/news-and-blog/blog/2024/02/21/almost-a-fully-open-source-boot-chain-for-rockchips-rk3588/

    Not sure about the other rk35xx variants.


    @Kever I wonder if rockchip plan to open source the RAM training into
    u-boot like other platforms?

    I have check internally for this topic, there is no plan for open source
    the ddr init binary recently for rk35xx SoCs.

    Rockchip already provide the source based ddrbin_tool to modify the ddr
    binary with all the possible

    parameter which may need by customers.

    So it would be better for the rkbin can merge into the Debian
    non-free-firmware package.


    Thanks,

    - Kever


    This would remove need for rbkin in Debian.

    PS: I don't have time to look at packaging robin until the late
    summer. If someone else wishes to do it, I'd happily help with
    reviewing and  sponsor an upload into Debian.

    Chris



    > I expect this package will go into non-free-firmware.

    I *think* this license looks plausible for non-free-firmware:

    https://github.com/rockchip-linux/rkbin/blob/master/LICENSE

      Rockchip hereby grants to you a non-exclusive license (a) to
    use, copy,
      distribute the Software; (b) to modify any source code as part
    of Software(if
      any) and sublicense, distribute such modifications.
      Except as expressively authorized by Rockchip in writing, you
    may NOT:
      (a) decompile, reverse-engineer, dissemble, or attempt to derive
    any source
      code from the Software;
      (b) remove or obscure any copyright, patent, or trademark
    statement or notices
      contained in the Software.

    Those exclusions might make it hard for folks to come up with free
    implementations, though. :(


    live well,
      vagrant

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <p>Hi Christopher,<br>
    </p>
    <div class="moz-cite-prefix">On 2025/3/22 09:58, Christopher Obbard
    wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAP03Xeo3=R=0KR=wp+rE8SQT6FS_wvUz4wft+ik5w=j8=LAAxg@mail.gmail.com">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <div dir="auto">
    <div>Hi Vagrant  and Kever,<br>
    <br>
    <div class="gmail_quote gmail_quote_container">
    <div dir="ltr" class="gmail_attr">On Tue, 18 Mar 2025, 18:22
    Vagrant Cascadian, &lt;<a href="mailto:vagrant@debian.org"
    moz-do-not-send="true" class="moz-txt-link-freetext">vagrant@debian.org</a>&gt;
    wrote:<br>
    </div>
    <blockquote class="gmail_quote"
    style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On
    2023-08-31, Christopher Obbard wrote:<br>
    &gt;   Package name    : rkbin<br>
    &gt;   Version         : 0.0.0~git20230726.b4558da<br>
    &gt;   Upstream Contact: Kever Yang &lt;<a
    href="mailto:kever.yang@rock-chips.com" target="_blank"
    rel="noreferrer" moz-do-not-send="true"
    class="moz-txt-link-freetext">kever.yang@rock-chips.com</a>&gt;<br>
    &gt;   URL             : <a
    href="https://github.com/rockchip-linux/rkbin"
    rel="noreferrer noreferrer" target="_blank"
    moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/rockchip-linux/rkbin</a><br>
    &gt;   License         : Copyright © 2017-2023,Rockchip
    Electronics Co.,<br>
    &gt;   Ltd. All rights reserved.<br>
    &gt;   Programming Lang: n/a; prebuilt firmware binaries<br>
    &gt;   Description     : Pre-built Rockchip bootloader
    firmware binaries (for embedded targets)<br>
    &gt;<br>
    &gt; This package contains the Rockchip bootloader
    firmware binaries, primarily<br>
    &gt; used for targets where no open-source versions is yet
    released.<br>
    &gt; The pre-built firmware consists of builds of Arm
    Trusted Firmware, OP-TEE<br>
    &gt; and U-Boot. There are also some closed-source tools
    in this repo, build for<br>
    &gt; amd64. These will be stripped from the upstream
    source package as I do<br>
    &gt; not (yet) see a need for these.<br>
    <br>
    &gt; This package is required to build U-Boot for some
    embedded targets such as<br>
    &gt; rk3588, rk3566, rk3568. All of these will eventually
    have open-source<br>
    &gt; firmware, but it is still useful for new processors
    in the future where<br>
    &gt; U-Boot support will be merged long before the initial
    DRAM bringup and<br>
    &gt; trusted firmware.<br>
    <br>
    Arm Trusted Firmware for some of these rk35xx variants is
    now supported<br>
    in the Debian packaging and upstream. I think the only
    thing left for<br>
    rk3588 is the DDR training binaries from rkbin:<br>
    <br>
      <a href="https://www.collabora.com/news-and-blog/blog/2024/02/21/almost-a-fully-open-source-boot-chain-for-rockchips-rk3588/"
    rel="noreferrer noreferrer" target="_blank"
    moz-do-not-send="true" class="moz-txt-link-freetext">https://www.collabora.com/news-and-blog/blog/2024/02/21/almost-a-fully-open-source-boot-chain-for-rockchips-rk3588/</a><br>
    <br>
    Not sure about the other rk35xx variants.<br>
    </blockquote>
    </div>
    </div>
    <div dir="auto"><br>
    </div>
    <div dir="auto">@Kever I wonder if rockchip plan to open source
    the RAM training into u-boot like other platforms?</div>
    </div>
    </blockquote>
    <p>I have check internally for this topic, there is no plan for open
    source the ddr init binary recently for rk35xx SoCs.</p>
    <p>Rockchip already provide the source based ddrbin_tool to modify 
    the ddr binary with all the possible</p>
    <p>parameter which may need by customers.<br>
    </p>
    <p>So it would be better for the rkbin can merge into the Debian
    non-free-firmware package. <br>
    </p>
    <p><br>
    </p>
    <p>Thanks,</p>
    <p>- Kever<br>
    </p>
    <blockquote type="cite" cite="mid:CAP03Xeo3=R=0KR=wp+rE8SQT6FS_wvUz4wft+ik5w=j8=LAAxg@mail.gmail.com">
    <div dir="auto">
    <div dir="auto"><br>
    </div>
    <div dir="auto">This would remove need for rbkin in Debian.</div>
    <div dir="auto"><br>
    </div>
    <div dir="auto">PS: I don't have time to look at packaging robin
    until the late summer. If someone else wishes to do it, I'd
    happily help with reviewing and  sponsor an upload into
    Debian.</div>
    <div dir="auto"><br>
    </div>
    <div dir="auto">Chris</div>
    <div dir="auto"><br>
    </div>
    <div dir="auto">
    <div class="gmail_quote gmail_quote_container">
    <blockquote class="gmail_quote"
    style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    <br>
    <br>
    &gt; I expect this package will go into non-free-firmware.<br>
    <br>
    I *think* this license looks plausible for
    non-free-firmware:<br>
    <br>
    <a href="https://github.com/rockchip-linux/rkbin/blob/master/LICENSE"
    rel="noreferrer noreferrer" target="_blank"
    moz-do-not-send="true" class="moz-txt-link-freetext">https://github.com/rockchip-linux/rkbin/blob/master/LICENSE</a><br>
    <br>
      Rockchip hereby grants to you a non-exclusive license
    (a) to use, copy,<br>
      distribute the Software; (b) to modify any source code
    as part of Software(if<br>
      any) and sublicense, distribute such modifications.<br>
      Except as expressively authorized by Rockchip in
    writing, you may NOT:<br>
      (a) decompile, reverse-engineer, dissemble, or attempt
    to derive any source<br>
      code from the Software;<br>
      (b) remove or obscure any copyright, patent, or
    trademark statement or notices<br>
      contained in the Software.<br>
    <br>
    Those exclusions might make it hard for folks to come up
    with free<br>
    implementations, though. :(<br>
    <br>
    <br>
    live well,<br>
      vagrant<br>
    </blockquote>
    </div>
    </div>
    </div>
    </blockquote>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)