From: Ferass El Hafidi <vitali64pmemail@protonmail.com>
To: sjg@chromium.org
Cc: neil.armstrong@linaro.org, u-boot-amlogic@groups.io,
u-boot@lists.denx.de, alpernebiyasak@gmail.com,
linux-amlogic@lists.infradead.org, mark.kettenis@xs4all.nl
Subject: Re: [PATCH v2 0/1] meson: Demonstration of using binman to produce the image
Date: Wed, 30 Aug 2023 17:53:31 +0000 [thread overview]
Message-ID: <CV61D7ULLVZ0.3OCFZ743L1KSE@flaptop> (raw)
Hi Simon,
> So I wonder how best to move this forward so that we can build things
> using binman and everything works?
It's still not ready yet, but I'm working on porting U-Boot SPL to some
Amlogic SoCs [1]. I'm currently working on Amlogic S905 boards, but
eventually I'll work on Amlogic S905X devices too. And speaking of
signing, Jonas Karlman wrote amlimage, and integrated it into mkimage,
and I applied his patch to my tree. There's a few things to be aware of
about Amlogic signing and binaries in general, however.
amlimage was intended for use with U-Boot SPL, which obviously has
no support for Amlogic's FIP format and as such amlimage will only do as
little as possible to get the bootROM to load U-Boot SPL. Most of the
packaging format is handled by BL2. The fact that the signing process is
completly different across SoC generations makes it difficult to
implement them all into one single tool (and by which I mean all of it,
not just signing BL2 for the bootROM to run it, that's mostly the same
across SoCs). amlimage has been confirmed to work on GXBB (ODROID-C2 and
the KII Pro set-top box), GXL (librecomputer lepotato), and SM1 (ODROID-C4).
My U-Boot SPL port is still rather incomplete. As of today, it still
can't boot anything from any storage device. The goal eventually is to
be able to load upstream TF-A BL31 and U-Boot+linux.
While Amlogic distributes proprietary BL31 binaries upstream Trusted
Firmware-A has a port for some Amlogic SoCs [2], but as far as I know
SM1 (which is the SoC generation your ODROID-C4 is using) is still
unsupported. GXBB, GXL, AXG, and G12A are all supported however, but the
overall port still lacks some features the proprietary implementation
has.
As for the SCP firmware (aka. BL30) I'm not aware of any
reverse-engineering efforts for that.
Honestly, in my opinion, including proprietary and poorly-written
Amlogic utilities lacking a proper license, into U-Boot looks like a bad idea.
[1]: https://git.vitali64.duckdns.org/misc/u-boot-kii-pro.git/log/?h=wip/spl
[2]: https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/tree/plat/amlogic
Cheers.
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next reply other threads:[~2023-08-30 17:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-30 17:53 Ferass El Hafidi [this message]
2023-08-31 3:37 ` [PATCH v2 0/1] meson: Demonstration of using binman to produce the image Simon Glass
2023-08-31 7:54 ` neil.armstrong
2023-08-31 10:25 ` Ferass El Hafidi
-- strict thread matches above, loose matches on Subject: below --
2023-04-01 18:54 Simon Glass
2023-04-01 21:27 ` Mark Kettenis
[not found] ` <CAPnjgZ0Js43JOi3xaeY8tYuELSPXWL-PCBq1-iANLs1074MzbQ@mail.gmail.com>
2023-04-03 8:10 ` Christian Hewitt
2023-04-05 18:38 ` Simon Glass
2023-04-08 3:34 ` Da Xue
2023-04-19 1:49 ` Simon Glass
2023-04-01 6:25 Simon Glass
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=CV61D7ULLVZ0.3OCFZ743L1KSE@flaptop \
--to=vitali64pmemail@protonmail.com \
--cc=alpernebiyasak@gmail.com \
--cc=linux-amlogic@lists.infradead.org \
--cc=mark.kettenis@xs4all.nl \
--cc=neil.armstrong@linaro.org \
--cc=sjg@chromium.org \
--cc=u-boot-amlogic@groups.io \
--cc=u-boot@lists.denx.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