mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
From: Paul Menzel <pmenzel@molgen.mpg.de>
To: Xianwei Zhao <xianwei.zhao@amlogic.com>,
	Arden Jin <Arden.Jin@amlogic.com>
Cc: Neil Armstrong <neil.armstrong@linaro.org>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	Kevin Hilman <khilman@baylibre.com>,
	linux-amlogic@lists.infradead.org, linux-media@vger.kernel.org,
	Jerome Brunet <jbrunet@baylibre.com>
Subject: Amlogic S4 (S805X2) video decoder firmware for linux-firmware
Date: Sun, 22 Nov 2026 10:18:06 +0100	[thread overview]
Message-ID: <cda06da6-e7e0-4522-b1ab-ec542d4703d2@molgen.mpg.de> (raw)

Dear Xianwei, dear Arden,


Before buying a Chromecast with Google TV HD (boreal, Amlogic 
S805X2/S4), I would like to sort out the firmware situation.

linux-firmware has meson/vdec/*.bin for GXBB up to SM1 under 
LICENSES/LICENSE.amlogic_vdec, extracted from Amlogic’s July 2019 
release (linux-firmware commits e04cc56d and fb505a69, with Arden in 
Cc). There is nothing for S4.

In the media_modules sources Google published for boreal [1] (package 
v0.4.66, commit 1752357, built 2024-12-27), I found:

1.  firmware/S805X2/video_ucode.bin and firmware/S805X2G/video_ucode.bin 
are NEWP packages: only the headers are in plaintext, and the microcode 
is encrypted and loaded through OP-TEE (TEE_SMC_LOAD_VIDEO_FW).

2.  The headers record the CRC32 of the plaintext. Each of the 14 S4 
entries has the CRC32 and size of an entry in the generic plaintext 
package firmware/video_ucode.bin:

     - SM1 builds: h264_multi, mpeg12_multi, vc1, xvid_multi, avs_multi, 
h264_mvc
     - G12A builds: hevc, h264_multi_mmu
     - T5D builds: vp9_mmu, hevc_mmu, hevc_mmu_swap
     - SC2 av1_mmu, T7 avs2_mmu, G12B mjpeg_multi

3.  None of them is byte-identical to a file in linux-firmware, and the 
current package no longer contains the single-instance H.264 and 
MPEG-1/2 microcode that the mainline driver loads (g12a_h264.bin, 
gxl_mpeg12.bin).

The files carry no license, so I cannot submit them myself. My questions:

1.  Does Amlogic agree to distributing the S4 video decoder firmware in 
linux-firmware under LICENSE.amlogic_vdec? Concretely, the plaintext 
builds S4 uses, as meson/vdec/s4_*.bin. Would you prefer to submit them 
yourself, or to ack a submission from me?

2.  The mainline driver loads the microcode from the non-secure world, 
by pointing (HEVC_)IMEM_DMA_ADR at a coherent buffer. Does this work on 
S4, or does the DOS block only accept microcode loaded by BL32? If the 
latter, is the SMC interface documented, and does the BL32 on production 
S4 devices include the microcode?

3.  Does g12a_h264.bin work on S4, or is there an S4 build of the 
single-instance H.264 microcode? Or should the mainline driver use 
h264_multi on newer SoCs?


Kind regards,

Paul


[1]: https://nest-open-source.googlesource.com/manifest_repos/media_modules

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

             reply	other threads:[~2026-11-22  9:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-22  9:18 Paul Menzel [this message]
2026-11-23  3:04 ` Xianwei Zhao
2026-11-23  7:35   ` Zhentao Guo

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=cda06da6-e7e0-4522-b1ab-ec542d4703d2@molgen.mpg.de \
    --to=pmenzel@molgen.mpg.de \
    --cc=Arden.Jin@amlogic.com \
    --cc=jbrunet@baylibre.com \
    --cc=khilman@baylibre.com \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-media@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=xianwei.zhao@amlogic.com \
    /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

all inboxes | Powered by JetHome®