S905X4 built in DVB

I used the latest nightly 20251105 and AVL6862-22.0.6.3

First, I tried the parallel DTB. It gave an Ir2c error. Therefore, tvheadend and dvbv5-scan did not perform a scan.

parelel_dtb_dmesg.txt (74.2 KB)

paralelevb.txt (1.6 KB)

Couldn't find demux device node
WARNING  device dvb0.demux0 not found

Then I tried the dtb series. Dmesg saw avl6762, but I couldn’t find it in either tvheadend or scanv5.

[   17.540651] meson-g12a-pinctrl pinctrl@ff800014: invalid function tsin_a_ao in map table
[   17.540672] meson-g12a-pinctrl pinctrl@ff800014: invalid function tsin_a_ao in map table

serial_dtb_dmesg.txt (74.0 KB)

I am sending the Android dtb and logs.

dtb.img (256 KB)

2dtb.img (92 KB)

gpio.txt (671 Bytes)

dvb.txt (45.5 KB)

ts.txt (67.7 KB)

error.txt (26.9 KB)

dmesgdvb-t.txt (2.5 KB)

dmesg.txt (284.0 KB)

parallel and serial dtb files are exactly the same ragarding i2c setup, and in dmesg from serial dtb there are no i2c errors. Don’t know what You did, but it is for sure not related to dtb. Maybe You rebooted somehow from android which turned off the power to the avl ? I don’t know. Try again.

those pinctrl errors should happen from the beginning, the ts0 input pins configuration was wrong in all dtb files I sent You, I don’t understand why it worked before … Nevertheless try this, I hope the pin configuration is now correct:
sm1_s905x3_avl6762_serial.dtb (77.0 KB)

Thank you very much for your efforts. Dvb-c is working now. :joy: During this process, I received very strange dmesg logs. I got two different results with the same dtb. I did a bunch of fresh installs.

Ok great, the box is MagicSee C500 Pro ? and the DVB-C is on TS0 serial input ?

The working dtb files are in this latest message. According to this, since DVB-C is working, you should know whether ts0 is serial or not. Because I only did a channel scan. I’ll send dmesg if needed.

-STB: Mgicsee C500 pro 4gb ram/32gb mmc

sm1_s905x3_avl6762_serial.dtb (77.0 KB)

working-dvb-c-_dmesg.txt (109.5 KB)

working-dvb-c-_dmesgdvb.txt (34.1 KB)

@taki I compiled the driver for avl6261, You can try it:
AVL6862-22.0.6.3.zip (527.5 KB)
and use this dtb:
sm1_s905x3_magicsee_c500_pro_4g.dtb (77.6 KB)

Thanks. Tvheadend doesnt see avl6261 but

 avl62x1:avl62x1_attach INFO: driver version 3.8.6
[   48.560702] 
[   48.560710] avl62x1:avl_bsp_assoc_i2c_adapter(): assoc I2C for demod_id 0
[   48.562446] i2c i2c-2: avl_bsp_linux: i2c wr failed=-6 len=3
[   48.562465] avl62x1:avl62x1_attach ERROR: attach failed reading id
[   48.562472] Demod: attach demod1 [id 28] fail
[   48.562478] Demod: adapter null, call aml_dvb_get_adapter
[   48.562512] amlogic-dvb-demux dvb-demux: DVB: registering adapter 0 frontend 0 (Availink AVL6762)...
[   48.568124] Demod: demod1 [id 28] had not attached
[   48.568141] aml_dvb_extern_attach_work demod 0 attach done
[   48.568283] Demod: demod0 [id 15] had attached
[   48.568300] aml_attach_detach_dtvdemod: cb id 28
[   48.568304] avl62x1:avl62x1_attach INFO: driver version 3.8.6
[   48.568304] 
[   48.568313] avl62x1:avl_bsp_assoc_i2c_adapter(): assoc I2C for demod_id 0
[   48.568439] i2c i2c-2: avl_bsp_linux: i2c wr failed=-6 len=3
[   48.568449] avl62x1:avl62x1_attach ERROR: attach failed reading id
[   48.568463] Demod: attach demod1 [id 28] fail
[   48.568469] Demod: demod0 [id 15] had registered.
[   48.568473] Demod: demod1 [id 28] had not attached

dmesg_avl62xx.txt (77.2 KB)

grep_dvb.txt (1.9 KB)

maybe i2c address is wrong, I took it from the availink repo. Do:

i2cdetect -y 2

I’m out right now, so I’ll try i2c2 again. But after dmesg appeared during the new rules setup, I ran i2cdetec. It found nothing for i2c, but only 0x14 for i2c3. I wonder if I’m using a common pin for sda and scl.

There might be wrong i2c configuration, try with this:
sm1_s905x3_magicsee_c500_pro_4g.dtb (77.6 KB)

CoreELEC:~ # i2cdetect -y 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- 14 -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
CoreELEC:~ # i2cdetect -y 3
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- --
10: -- -- -- -- 14 -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
CoreELEC:~ #

newdmesg.txt (78.2 KB)

newdvb.txt (2.7 KB)

Is it working ? I think that in tvheadend there should be two frontends. In dmesg there were added two frontends but with the same index … put output of:
ls -al /dev/dvb/adapter0

I scanned dvb-s bu no find signal and channels. I will try

CoreELEC:~ # ls -al /dev/dvb/adapter0
total 0
drwxr-xr-x    2 root     root           300 Oct 13 18:02 .
drwxr-xr-x    3 root     root            60 Oct 13 18:01 ..
crw-rw----    1 root     video     212,   6 Oct 13 18:02 ca0
crw-rw----    1 root     video     212,  22 Oct 13 18:02 ca1
crw-rw----    1 root     video     212,   4 Oct 13 18:02 demux0
crw-rw----    1 root     video     212,  20 Oct 13 18:02 demux1
crw-rw----    1 root     video     212,  36 Oct 13 18:02 demux2
crw-rw----    1 root     video     212,   5 Oct 13 18:02 dvr0
crw-rw----    1 root     video     212,  21 Oct 13 18:02 dvr1
crw-rw----    1 root     video     212,  37 Oct 13 18:02 dvr2
crw-rw----    1 root     video     212,   3 Oct 13 18:02 frontend0
crw-rw----    1 root     video     212,  19 Oct 13 18:02 frontend1
crw-rw----    1 root     video     212,   7 Oct 13 18:02 net0
crw-rw----    1 root     video     212,  23 Oct 13 18:02 net1
crw-rw----    1 root     video     212,  39 Oct 13 18:02 net2

It looks OK, in tv headend also. actually in tvheadend the #0 is for frontend 0 and #1 is for frontend1 .
So first thing is to make sure that the DVB-S tuner works. I made a DTB with only DVB-S tuner and DVB-T removed. Try it:
sm1_s905x3_magicsee_c500_pro_4g_only_avl6261.dtb (77.0 KB)

If it will not work do the scan with dvbv5-scan (the same as You did for mecool K5 here S905X4 built in DVB - #169 by rozpruwacz) and paste output here

I am trying

CoreELEC:~ # dmesg | grep -i dvb
[    2.089616] dvb power gpio invalid
[    2.089735] aml_dvb_extern_init: OK, version: V1.28
[   46.561017] probe amlogic dvb driver [V2.02]
[   46.561192] aml_dvb_get_adapter need register adapter first.
[   46.561195] DVB: registering new adapter (amlogic-dvb)
[   46.566469] DVB: Set DMX0 TS_RECORDER_ENABLE to 0
[   46.566479] DVB: Set DMX1 TS_RECORDER_ENABLE to 0
[   46.566482] DVB: Set DMX2 TS_RECORDER_ENABLE to 0
[   46.566485] DVB: reset ASYNC FIFOs
[   46.566759] DVB: Set DMX0 TS_RECORDER_ENABLE to 0
[   46.566765] DVB: Set DMX1 TS_RECORDER_ENABLE to 0
[   46.566768] DVB: Set DMX2 TS_RECORDER_ENABLE to 0
[   46.566770] DVB: reset ASYNC FIFOs
[   46.566775] DVB:dmx_reset_dmx_hw_ex_unlock into
[   46.566816] DVB: demux0 smallsec buf disable
[   46.566820] DVB: demux0 timeout disable
[   46.566823] DVB: demux0 timeout enable:timeout(9000),ch(0xfffffff8),match(1)
[   46.566869] DVB: demux0 smallsec buf disable
[   46.566871] DVB: demux0 timeout disable
[   46.566873] DVB: demux0 timeout enable:timeout(9000),ch(0xfffffff8),match(1)
[   49.549576] Demod: adapter null, call aml_dvb_get_adapter
[   49.549587] amlogic-dvb-demux dvb-demux: DVB: registering adapter 0 frontend 0 (Availink avl62x1)...
[   49.553949] aml_dvb_extern_attach_work demod 0 attach done
[   49.560871] aml_dvb_extern_attach_work demod 0 attach done
[   50.553787] amlogic-dvb-demux dvb-demux: DVB: adapter 0 frontend 0 frequency 0 out of range (950000..2150000)
[   60.802256] Modules linked in: ir_rc6_decoder ir_nec_decoder meson_ir rc_core 8021q amvdec_avs2_fb(O) amvdec_av1_fb(O) amvdec_h265_fb(O) amvdec_vp9_fb(O) amvdec_vp9(O) amvdec_av1(O) amvdec_vc1(O) hci_uart btqca serdev amvdec_mmpeg4(O) btintel btbcm amvdec_mmpeg12(O) amvdec_mmjpeg(O) amvdec_h266(O) amvdec_h265(O) bluetooth amvdec_mh264(O) amvdec_h264mvc(O) amvdec_mavs(O) amvdec_avs3(O) amvdec_avs2(O) mali_kbase(O) aic8800_bsp(O) rtw_8822cs(O) rtw_8822c(O)
rtw_sdio(O) rtw_core(O) dvb_meson(O) openvfd(O) avl62x1(O) av201x aml_hardware_dmx(O) stream_input(O) pts_server(O) decoder_common(O) firmware(O) media_clock(O) nfsd nfs_acl nfnetlink autofs4
CoreELEC:~ #
CoreELEC:~ # ls -al /dev/dvb/adapter0
total 0
drwxr-xr-x    2 root     root           280 Oct 13 18:02 .
drwxr-xr-x    3 root     root            60 Oct 13 18:01 ..
crw-rw----    1 root     video     212,   6 Oct 13 18:02 ca0
crw-rw----    1 root     video     212,  22 Oct 13 18:02 ca1
crw-rw----    1 root     video     212,   4 Oct 13 18:02 demux0
crw-rw----    1 root     video     212,  20 Oct 13 18:02 demux1
crw-rw----    1 root     video     212,  36 Oct 13 18:02 demux2
crw-rw----    1 root     video     212,   5 Oct 13 18:02 dvr0
crw-rw----    1 root     video     212,  21 Oct 13 18:02 dvr1
crw-rw----    1 root     video     212,  37 Oct 13 18:02 dvr2
crw-rw----    1 root     video     212,   3 Oct 13 18:02 frontend0
crw-rw----    1 root     video     212,   7 Oct 13 18:02 net0
crw-rw----    1 root     video     212,  23 Oct 13 18:02 net1
crw-rw----    1 root     video     212,  39 Oct 13 18:02 net2
CoreELEC:~ #

[  167.285767] Acquire TS
[  177.601439] Acquire TS
[  187.917769] Acquire TS
[  198.221756] Acquire TS
[  208.513780] Acquire TS
[  218.843709] Acquire TS
[  229.124708] Acquire TS
[  239.468960] Acquire TS
[  249.771018] Acquire TS
[  260.092976] Acquire TS
[  270.399024] Acquire TS
[  280.695017] Acquire TS
[  290.999018] Acquire TS
[  301.323013] Acquire TS
[  311.619019] Acquire TS
[  321.915021] Acquire TS
[  332.225748] Acquire TS
[  342.521785] Acquire TS
[  352.825755] Acquire TS
[  363.123111] Acquire TS
[  373.451699] Acquire TS
[  383.757753] Acquire TS
[  394.053750] Acquire TS
[  404.007805] Acquire TS
[  404.385754] Acquire TS
[  414.679703] Acquire TS
[  424.977748] Acquire TS
[  435.273747] Acquire TS
[  445.595698] Acquire TS
[  455.900118] Acquire TS
[  466.215752] Acquire TS
[  476.503720] Acquire TS

Tested and

CoreELEC:~ # dvbv5-scan -l UNIVERSAL -S 1 /storage/.kodi/addons/service.tvheadend43/dvb-scan/dvb-s/Turksat-3A-42.0E
Using LNBf UNIVERSAL
        Old European Universal. Nowadays mostly replaced by Astra 19.2E
        Freqs     : 10800 to 11800 MHz, LO: 9750 MHz
        Freqs     : 11600 to 12700 MHz, LO: 10600 MHz
ERROR    command BANDWIDTH_HZ (5) not found during retrieve
Cannot calc frequency shift. Either bandwidth/symbol-rate is unavailable (yet).
Scanning frequency #1 10952840
RF     (0x01)                                                                Scanning frequency #2 10958000                                               RF     (0x01)                                                                Scanning frequency #3 10964300                                               RF     (0x01)                                                                Scanning frequency #4 10967300                                               RF     (0x01)                                                                Scanning frequency #5 10975000                                               RF     (0x01)                                                                Scanning frequency #6 10980000                                               RF     (0x01)                                                                Scanning frequency #7 10985100                                               RF     (0x01)                                                                Scanning frequency #8 10986100                                               RF     (0x01)                                                                Scanning frequency #9 10998100                                               RF     (0x01)                                                                Scanning frequency #10 11007100                                              RF     (0x01)                                                                Scanning frequency #11 11012000                                              RF     (0x01)                                                                Scanning frequency #12 11026100                                              RF     (0x01)                                                                Scanning frequency #13 11045000                                              RF     (0x01)                                                                Scanning frequency #14 11053000                                              RF     (0x01)                                                                Scanning frequency #15 11054000                                              RF     (0x01)                                                                Scanning frequency #16 11062000                                              RF     (0x01)                                                                Scanning frequency #17 11069000                                              RF     (0x01)                                                                Scanning frequency #18 11082600                                              RF     (0x01)                                                                Scanning frequency #19 11091500                                              RF     (0x01)                                                                Scanning frequency #20 11096000                                              RF     (0x01)                                                                Scanning frequency #21 11100500                                              RF     (0x01)                                                                Scanning frequency #22 11105000                                              RF     (0x01)                                                                Scanning frequency #23 11109500                                              RF     (0x01)                                                                Scanning frequency #24 11127080                                              ERROR    FE_SET_PROPERTY: Invalid argument
ERROR    dvb_fe_set_parms failed: Invalid argument
Scanning frequency #25 11127840
ERROR    FE_SET_PROPERTY: Invalid argument
ERROR    dvb_fe_set_parms failed: Invalid argument
Scanning frequency #26 11128580
ERROR    FE_SET_PROPERTY: Invalid argument
ERROR    dvb_fe_set_parms failed: Invalid argument
Scanning frequency #27 11129340
ERROR    FE_SET_PROPERTY: Invalid argument
ERROR    dvb_fe_set_parms failed: Invalid argument
Scanning frequency #28 11130030
ERROR    FE_SET_PROPERTY: Invalid argument
ERROR    dvb_fe_set_parms failed: Invalid argument
Scanning frequency #29 11132000
RF     (0x01)                                                                Scanning frequency #30 11139100                                              RF     (0x01)                                                                Scanning frequency #31 11178300                                              RF     (0x01)                                                                Scanning frequency #32 11180000                                              RF     (0x01)                                                                Scanning frequency #33 11345000                                              RF     (0x01)                                                                Scanning frequency #34 11460300                                              RF     (0x01)                                                                Scanning frequency #35 11469300                                              RF     (0x01)                                                                Scanning frequency #36 11478220                                              RF     (0x01)                                                                Scanning frequency #37 11487220                                              RF     (0x01)                                                                Scanning frequency #38 11503100                                              RF     (0x01)                                                                Scanning frequency #39 11503500                                              RF     (0x01)                                                                Scanning frequency #40 11510000                                              RF     (0x01)                                                                Scanning frequency #41 11523500                                              RF     (0x01)                                                                Scanning frequency #42 11526000                                              RF     (0x01)                                                                Scanning frequency #43 11558000                                              RF     (0x01)                                                                Scanning frequency #44 11598100                                              RF     (0x01)                                                                Scanning frequency #45 11606200                                              RF     (0x01)                                                                Scanning frequency #46 11676000                                              RF     (0x01)                                                                Scanning frequency #47 12515000                                              RF     (0x01)                                                                Scanning frequency #48 12524000                                              RF     (0x01)                                                                Scanning frequency #49 12530000                                              RF     (0x01)                                                                Scanning frequency #50 12559000                                              RF     (0x01)                                                                Scanning frequency #51 12570800                                              RF     (0x01)                                                                Scanning frequency #52 12574300                                              RF     (0x01)                                                                Scanning frequency #53 12577000                                              RF     (0x01)                                                                Scanning frequency #54 12589000                                              RF     (0x01)                                                                Scanning frequency #55 12605000                                              RF     (0x01)                                                                Scanning frequency #56 12610000                                              RF     (0x01)                                                                Scanning frequency #57 12634000                                              RF     (0x01)                                                                Scanning frequency #58 12641000                                              RF     (0x01)                                                                Scanning frequency #59 12642000                                              RF     (0x01)                                                                Scanning frequency #60 12653000                                              RF     (0x01)                                                                Scanning frequency #61 12655000                                              RF     (0x01)                                                                Scanning frequency #62 12669500                                              RF     (0x01)                                                                Scanning frequency #63 12685000                                              RF     (0x01)                                                                Scanning frequency #64 12728900                                              ERROR    frequency: 12728.90 MHz is out of LNBf range
ERROR    FE_SET_PROPERTY: Invalid argument
ERROR    dvb_fe_set_parms failed: Invalid argument
Scanning frequency #65 12729000
ERROR    frequency: 12729.00 MHz is out of LNBf range
ERROR    FE_SET_PROPERTY: Invalid argument
ERROR    dvb_fe_set_parms failed: Invalid argument
CoreELEC:~ #

dvbv5scan.txt (10.1 KB)

ERROR    FE_SET_PROPERTY: Invalid argument
ERROR    dvb_fe_set_parms failed: Invalid argument

Unfortunately this looks like a problem with the avl6261 driver code. I don’t know how to fix that.