* 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* Re: Amlogic S4 (S805X2) video decoder firmware for linux-firmware
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
0 siblings, 1 reply; 3+ messages in thread
From: Xianwei Zhao @ 2026-11-23 3:04 UTC (permalink / raw)
To: Paul Menzel, Arden Jin, zhentao.guo
Cc: Neil Armstrong, Martin Blumenstingl, Kevin Hilman, linux-amlogic,
linux-media, Jerome Brunet
Hi Paul,
A colleague of ours(zhentao.guo@amlogic.com) knows this part better.
Hi Zhentao,
Could you please take a look? Thanks!
On 2026/11/22 17:18, Paul Menzel wrote:
>
> 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* Re: Amlogic S4 (S805X2) video decoder firmware for linux-firmware
2026-11-23 3:04 ` Xianwei Zhao
@ 2026-11-23 7:35 ` Zhentao Guo
0 siblings, 0 replies; 3+ messages in thread
From: Zhentao Guo @ 2026-11-23 7:35 UTC (permalink / raw)
To: Xianwei Zhao, Paul Menzel, Arden Jin, Hui Zhang
Cc: Neil Armstrong, Martin Blumenstingl, Kevin Hilman, linux-amlogic,
linux-media, Jerome Brunet
Dear Paul,
> Hi Paul,
> A colleague of ours(zhentao.guo@amlogic.com) knows this part better.
>
> Hi Zhentao,
> Could you please take a look? Thanks!
>
> On 2026/11/22 17:18, Paul Menzel wrote:
>>
>> 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?
In fact, Amlogic is currently working on upstream decoder for the S4,
including stateless decoder driver patchset:
https://lore.kernel.org/linux-amlogic/20261022-b4-s4-vdec-upstream-v12-0-616240978792@amlogic.com/
<https://lore.kernel.org/linux-amlogic/20261022-b4-s4-vdec-upstream-v12-0-616240978792@amlogic.com/>,
along with the matching firmware submission:
https://lore.kernel.org/linux-amlogic/20261116094040.4176202-1-zhentao.guo@amlogic.com/.
The current firmware submission covers the S4 platform and the H.264
codec; we will extend it to more platforms and more codec formats in the
future. And of course, we plan to make these submissions ourselves.
>>
>> 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?
Unlike the legacy chips that already supported in mainline (such as G12,
SM1, etc.), the S4 and the newer chips can only accept firmware that is
loaded into secure memory by BL32 and then read by the AMRISC hardware
currently. The microcode on production devices is also loaded following
this same procedure. The legacy chips can support the unsigned firmware
loaded by CPU. The stateless decoder for the S4 will also support these
legacy chips in the next year.
>>
>> 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?
The g12a_h264.bin does not work on S4, and no more single-instance H264
microcode can run on S4 and the newer SOCs. All the new SOCs can only
use the h264_multi firmware.
>>
>>
>> Kind regards,
>>
>> Paul
>>
>>
>> [1]:
>> https://nest-open-source.googlesource.com/manifest_repos/media_modules
Best regards,
Zhentao
_______________________________________________
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®