mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
* Amlogic S4 (S805X2) video decoder firmware for linux-firmware
@ 2026-11-22  9:18 Paul Menzel
  2026-11-23  3:04 ` Xianwei Zhao
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Menzel @ 2026-11-22  9:18 UTC (permalink / raw)
  To: Xianwei Zhao, Arden Jin
  Cc: Neil Armstrong, Martin Blumenstingl, Kevin Hilman, linux-amlogic,
	linux-media, Jerome Brunet

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-23  7:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-22  9:18 Amlogic S4 (S805X2) video decoder firmware for linux-firmware Paul Menzel
2026-11-23  3:04 ` Xianwei Zhao
2026-11-23  7:35   ` Zhentao Guo

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®