HDR10+ on Amlogic S905D and S905Y2

Thanks. I started with a simple method, but it didn’t give me anything interesting.

CoreELEC (official): 19.2-Matrix_rc2 (Amlogic-ng.arm)
CO:~ # journalctl -kf
– Journal begins at Tue 2021-02-02 17:29:47 EET. –
Jun 23 20:06:32 CO kernel: snd_spdif_dai: set normal 512 fs /4 fs
Jun 23 20:06:33 CO kernel: snd_spdif_dai: aiu 958 playback enable
Jun 23 20:06:33 CO kernel: snd_spdif_dai: aiu 958 playback disable
Jun 23 20:06:33 CO kernel: snd_spdif_dai: set normal 512 fs /4 fs
Jun 23 20:06:33 CO kernel: snd_spdif_dai: aiu 958 playback enable
Jun 23 20:06:33 CO kernel: snd_spdif_dai: aiu 958 playback disable
Jun 23 20:06:33 CO kernel: snd_spdif_dai: set normal 512 fs /4 fs
Jun 23 20:06:34 CO kernel: snd_spdif_dai: aiu 958 playback enable
Jun 23 20:06:34 CO kernel: snd_spdif_dai: aiu 958 playback disable
Jun 23 20:06:34 CO kernel: snd_spdif_dai: set normal 512 fs /4 fs
Jun 23 20:07:15 CO kernel: audio_dsp: buf=0
Jun 23 20:07:15 CO kernel: audio_dsp: IEC958_mode_raw=0

—REBOOT Box—

Yeah, sadly this doesn’t help.
I’d expect to see an output with errors.
Have you tried a different power supply? Sometimes bad power supply can cause weird issues.
Other than that, we need to follow options 2 or 3, as 1 didn’t give us any useful results.

I have changed power supplies.
I’m trying to order SDIO Debug Board.
I am already wondering.

Received the CoreELEC Team SDIO Debug Board, connected it.
Result - https://drive.google.com/file/d/1CCuvCnpaZBta8Y7iN7WkCSEXpl1coGj3/view?usp=sharing

Nothing :thinking:

Please set correlec to

coreelec='nopkmute'

in the config.ini file, reboot and then see if you get proper output in UART console.

Ok.
Here is the new result -
CI:~ # journalctl -kf
[ 64.525290@1] fb: mem_free_work, free memory: addr:800000
WARNING: Unimplemented Sip Call: 0x8200004a
WARNING: Unimplemented Sip Call: 0x8200004a
[ 72.582388@3] hdmitx: hw: set audio
[ 72.582432@3] hdmitx: hw: hdmitx tx_aud_src = 0, audio_param->channel_num = 1, hdev->aud_output_ch = 0
[ 72.589606@3] hdmitx: fs = 2, cd = 4, tmds_clk = 148500
[ 72.594727@3] hdmitx: hw: aud_n_para = 6272
[ 72.598897@3] hdmitx: hw: set channel status
[ 72.603183@3] hdmitx: audio: Audio Type: PCM
[ 72.607330@3] hdmitx: audio: set audio param
WARNING: Unimplemented Sip Call: 0x8200004a
WARNING: Unimplemented Sip Call: 0x8200004a
WARNING: Unimplemented Sip Call: 0x8200004a
[ 84.056941@3] VID: VD1 off
[ 84.061874@2] The fw has been loaded.
[ 84.061920@2] vdec_init, dev_name:ammvdec_h265, vdec_type=VDEC_TYPE_FRAME_BLOCK
[ 84.077556@3] [LOCAL], the fw (hevc_mmu) will be loaded.
[ 84.077815@3] ppmgr local_init
[ 84.080481@3] di_receiver_event_fun: vframe provider reg ppmgr
[ 84.087749@3] DI: reg f
[ 84.088717@1] ppmgr local_init
[ 84.093497@2] vdec->port_flag=0x102, port_flag=0x10b
[ 84.166286@1] snd_spdif_dai: enterd aml_spdif_play,set_clock:5,sample_rate=4
[ 84.167724@1] hdmitx: hw: set audio
[ 84.171744@1] DI bypass all 3840x2160-0x501000.
[ 84.171745@1] hdmitx: hw: hdmitx tx_aud_src = 0, audio_param->channel_num = 1, hdev->aud_out

—REBOOT Box—

One more attempt -

CI:~ # dmesg|paste
http://ix.io/3sXn
CI:~ #
WARNING: Unimplemented Sip Call: 0x8200004a
WARNING: Unimplemented Sip Call: 0x8200004a
[ 93.896910@1] hdmitx: hw: set audio
[ 93.896957@1] hdmitx: hw: hdmitx tx_aud_src = 0, audio_param->channel_num = 1, hdev->aud_output_ch = 0
[ 93.904216@1] hdmitx: fs = 2, cd = 4, tmds_clk = 148500
[ 93.909391@1] hdmitx: hw: aud_n_para = 6272
[ 93.913479@1] hdmitx: hw: set channel status
[ 93.917676@1] hdmitx: audio: Audio Type: PCM
[ 93.921865@1] hdmitx: audio: set audio param
[ 94.060143@0] VID: VD1 off
[ 94.063559@0] The fw has been loaded.
[ 94.063613@0] vdec_init, dev_name:ammvdec_h265, vdec_type=VDEC_TYPE_FRAME_BLOCK
[ 94.079814@3] [LOCAL], the fw (hevc_mmu) will be loaded.
[ 94.080121@3] ppmgr local_init
[ 94.082651@3] di_receiver_event_fun: vframe provider reg ppmgr
[ 94.089911@2] DI: reg f
[ 94.091715@2] ppmgr local_init
[ 94.096368@1] vdec->port_flag=0x102, port_flag=0x10b
[ 94.164560@1] DI bypass all 3840x2160-0x501000.

—REBOOT Box—

Is this the UART log?

Yes exactly

What is the Android version installed on your box?

Android version 7.1.1
CoreELEC 19.2-Matrix_rc2 instaled to eMMC

Judging by the WARNING: Unimplemented Sip Call: 0x8200004a messages, it seems that your Android image uses an old bootloader.
You’ll need to find and flash a newer image, with which there will not be any more such errors and see if the problem still occurs.

Unfortunately, there were no newer versions Android for this box.

You could try a custom ROM, or upgrade your device. With the problematic bootloader on your box we can’t do much to help. HDR10+ most definitely works with S905D and S905X devices, using the same CE version, so it is something on your side that is causing the problem.

welp, because mine also reboots, i don’t think i can be of much help here.

s905x 1gb box that has this problem is too old/slow to justify spending money on buying the debug board. in any event, the original box was something called SmallRT I believe originally with Android 5 or so. It was since then updated to ATVExperience (so the boot logo has changed to this - cannot exactly sure what version it was but it was at least 2 years ago). Since then I’ve wiped the eMMC using CE tool and been running CE on this box.

You can SSH into the device, run journalctl -kf, which will start dumping all dmesg output into the SSH session. Maybe this will allow us to catch the kernel oops before it restarts.

I did so - HDR10+ on Amlogic S905D and S905Y2 - #17 by igor469

Yes, I know. I was replying to LLK123.

tried, but nothing other than the following before it reboots itself.

CoreELEC:~ # journalctl -kf
– Journal begins at Tue 2021-02-02 15:29:47 UTC. –
Jul 16 17:42:12 CoreELEC kernel: hdmitx: audio: set audio param
Jul 16 17:42:12 CoreELEC kernel: snd_spdif_dai: enterd aml_spdif_play,set_clock:5,sample_rate=4
Jul 16 17:42:12 CoreELEC kernel: hdmitx: hw: set audio
Jul 16 17:42:12 CoreELEC kernel: hdmitx: hw: hdmitx tx_aud_src = 0, audio_param->channel_num = 1, hdev->aud_output_ch = 0
Jul 16 17:42:12 CoreELEC kernel: hdmitx: fs = 3, cd = 4, tmds_clk = 148352
Jul 16 17:42:12 CoreELEC kernel: hdmitx: hw: aud_n_para = 5824
Jul 16 17:42:12 CoreELEC kernel: hdmitx: hw: set channel status
Jul 16 17:42:12 CoreELEC kernel: hdmitx: audio: Audio Type: PCM
Jul 16 17:42:12 CoreELEC kernel: hdmitx: audio: set audio param
Jul 16 17:42:57 CoreELEC kernel: fb: mem_free_work, free memory: addr:800000
Jul 16 17:43:21 CoreELEC kernel: VID: VD1 off
Jul 16 17:43:21 CoreELEC kernel: vfm_map_store:rm default
Jul 16 17:43:21 CoreELEC kernel: vfm_map_store:add default

I found new ROM with version Android 7.1.2 for KI Pro and installed it.
Message “WARNING: Unimplemented Sip Call: 0x8200004a” did not appear.
Done new experiment in the following sequence

  1. Burned the box USB Burning Tool - image with Android 7.1.1
  2. Upgrated Android to version 7.1.2
  3. Boot from USB - CE 19.2 ( CoreELEC-Amlogic-ng.arm-19.2-Matrix_nightly_20210717-Generic.img.gz) with coreelec=‘nopkmute’ in the config.ini
  4. Worked through UART -
    CoreELEC:~ # dmesg|paste
    http://ix.io/3thR
    CoreELEC:~ # journalctl -kf
    – Journal begins at Sat 2021-07-17 17:19:28 UTC. –
    Jul 17 17:22:55 CoreELEC kernel: snd_spdif_dai: set normal 512 fs /4 fs
    Jul 17 17:22:56 CoreELEC kernel: snd_spdif_dai: aiu 958 playback enable
    Jul 17 17:22:56 CoreELEC kernel: snd_spdif_dai: aiu 958 playback disable
    Jul 17 17:22:56 CoreELEC kernel: snd_spdif_dai: set normal 512 fs /4 fs
    Jul 17 17:22:57 CoreELEC kernel: snd_spdif_dai: aiu 958 playback enable
    Jul 17 17:22:58 CoreELEC kernel: snd_spdif_dai: aiu 958 playback disable
    Jul 17 17:22:58 CoreELEC kernel: snd_spdif_dai: set normal 512 fs /4 fs
    Jul 17 17:22:59 CoreELEC kernel: snd_spdif_dai: aiu 958 playback enable
    Jul 17 17:22:59 CoreELEC kernel: snd_spdif_dai: aiu 958 playback disable
    Jul 17 17:22:59 CoreELEC kernel: snd_spdif_dai: set normal 512 fs /4 fs
    [ 283.800194@1] audio_dsp: buf=0
    [ 283.800238@1] audio_dsp: IEC958_mode_raw=0
    [ 283.801893@1] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
    [ 283.808989@1] audio_dsp: last mode 0,now 0
    [ 283.819743@1] snd_spdif_dai: set normal 512 fs /4 fs
    [ 283.820131@3] snd_spdif_dai: set normal 512 fs /4 fs
    [ 283.825755@2] snd_spdif_dai: aiu 958 playback enable
    Jul 17 17:24:03 CoreELEC kernel: audio_dsp: buf=0
    Jul 17 17:24:03 CoreELEC kernel: audio_dsp: IEC958_mode_raw=0
    Jul 17 17:24:03 CoreELEC kernel: audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
    Jul 17 17:24:03 CoreELEC kernel: audio_dsp: last mode 0,now 0
    Jul 17 17:24:03 CoreELEC kern[ 284.108773@2] snd_spdif_dai: aiu 958 playback disable
    [ 284.112518@3] snd_spdif_dai: set normal 512 fs /4 fs
    el: snd_spdif_dai: set normal 512 fs /4 fs
    Jul 17 17:24:03 CoreELEC kernel: snd_spdif_dai: set normal 512 fs /4 fs
    Jul 17 17:24:03 CoreELEC kernel: snd_spdif_dai: aiu 958 playback enable
    [ 284.177403@0] VID: VD1 off
    [ 284.179150@2] The fw has been loaded.
    [ 284.179204@2] vdec_init, dev_name:ammvdec_h265, vdec_type=VDEC_TYPE_FRAME_BLOCK
    [ 284.189122@2] snd_spdif_dai: set normal 512 fs /4 fs
    [ 284.191381@2] [LOCAL], the fw (hevc_mmu) will be loaded.
    [ 284.192078@1] audio_dsp: buf=0
    [ 284.192087@1] audio_dsp: IEC958_mode_raw=0
    [ 284.192177@1] audio_dsp: IEC958_mode_codec= 0, IEC958 type 2 CH PCM
    [ 284.192180@1] audio_dsp: last mode 0,now 0
    [ 284.210352@1] snd_spdif_dai: set normal 512 fs /4 fs
    [ 284.210371@1] hdmitx: hw: set audio
    [ 284.210382@1] hdmitx: hw: hdmitx tx_aud_src = 0, audio_param->channel_num = 1, hdev->aud_output_ch = 0
    [ 284.210421@1] hdmitx: fs = 3, cd = 4, tmds_clk = 148500
    [ 284.210425@1] hdmitx: hw: aud_n_para = 6144
    [ 284.210445@1] hdmitx: hw: set channel status
    [ 284.210506@1] hdmitx: audio: Audio Type: PCM
    [ 284.210509@1] hdmitx: audio: set audio param
    [ 284.210935@1] snd_spdif_dai: set normal 512 fs /4 fs
    [ 284.213177@1] snd_spdif_dai: aiu 958 playback enable

—> Press Play <—

[ 284.262615@3] ppmgr local_init
[ 284.265434@3] di_receiver_event_fun: vframe provider reg ppmgr
[ 284.272199@3] DI: reg f
[ 284.273648@1] ppmgr local_init
[ 284.277588@1] vdec->port_flag=0x102, port_flag=0x10b
[ 284.357629@1] DI bypass all 3840x2160-0x501000.

—> Reboot Box <—