Jump to content


moham96

Member Since 13 Jun 2018
Offline Last Active 15 Aug 2021 14:30
-----

#919851 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 16 August 2018 - 10:00

 

After removing the build directory I can build images successfully, I'm also facing the error that some users are facing where the screen stays black with only a text saying "Please wait: Booting", looking at the Uart logs, I see that some drivers (the Wlan support we added recently ) are delaying the boot and starting of enigma2:

[  138.741045@0] [aml_host_bus_fsm_show] sdio: err: wait for irq service, bus_fsm:0x8
[  138.748395@1] aml_sd_emmc_data_thread 2639 sdio: cmd:53
[  138.753741@1] brcmfmac: brcmf_sdiod_request_data: failed to write data F1@0x0a800, err: -110
[  138.764115@0] [aml_sd_emmc_irq] sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[  138.769246@0] [aml_host_bus_fsm_show] sdio: err: wait for irq service, bus_fsm:0x8
[  138.776587@1] aml_sd_emmc_data_thread 2639 sdio: cmd:53
[  138.781946@1] brcmfmac: brcmf_sdiod_request_data: failed to write data F1@0x0a800, err: -110
[  138.792312@0] [aml_sd_emmc_irq] sdio: resp_timeout,vstat:0xa1ff2800,virqc:3fff
[  138.797449@0] [aml_host_bus_fsm_show] sdio: err: wait for irq service, bus_fsm:0x8
[  138.804790@1] aml_sd_emmc_data_thread 2639 sdio: cmd:53
[  138.810137@1] brcmfmac: brcmf_sdiod_request_data: failed to write data F1@0x0a800, err: -110
[  138.818506@1] brcmfmac: brcmf_sdiod_regrw_helper: failed with -110
[  142.919236@0] [aml_sd_emmc_irq] sdio: resp_timeout,vstat:0xa1ff3800,virqc:3fff
[  142.920806@0] [aml_host_bus_fsm_show] sdio: err: wait for irq service, bus_fsm:0x8
[  142.928158@1] aml_sd_emmc_data_thread 2639 sdio: cmd:53
[  142.933526@1] brcmfmac: brcmf_sdiod_request_data: failed to read data F1@0x0a800, err: -110
I will try to take a look at it

I need a way to log using UART cable. Do you have the link or picture to show this cable? I need buy one.

I have rs232/UART P2 cable to log my Octagon sx88, but this Mecool I don't know.

Thanks.

 

Just google "uart usb cable" or "USB to TTL adapter"

I use this one https://www.aliexpre...2345829369.html

Keep in mind that you have to open the box and probably solder some pins if the Uart header is not populated.

if you don't want to open the box, amlogic has an sdio dongle that connects to the sdcard port and gives you (UART, JATG and sdcard) but I  don't know where they sell it

 

Regards




#918735 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 13 August 2018 - 15:09

Tested new image for K1 Pro. Here is the feedback:

Boot: OK as earlier.

Remote: Working as earlier.

WLAN: Wlan settings option available but when try to scan wireless networks, it keeps searching but does not find any network.

DVB-T: Same situation as earlier. After reboot, all channels lost and have to go through tuner setup again.

Resolution: Not OK. Earlier it was fine with full screen display at 1080p. Now interface covers only 60% of screen at 1080p as well as at 720p on all refresh rates, ( it has shrunk now).. 

change the skin to the fullnight hd and the resolution issue should be resolved




#918571 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 13 August 2018 - 09:03

On more thing which is noted in this as well as in the last image is that when the box is rebooted then the saved channels in the channel list are "dimmed" and all tuner configuration is also lost. We have to setup tuner again and rescan the channels like in initial setup.

This happens because of the multimode tuner, the avl6862 starts in DVBT when you booted which confuses enigma2 if it was shutdown on a different mode

I solved this issue manually on my box by compiling the create_nimsockets tool and the dvb-fe-tool and added two lines to the /etc/init.d/mecool-setup

dvb-fe-tool -d DVBS
/home/root/create_nimsockets

this runs each time the device is booted which sets the mode to DVBS and updates the nimsockets before enigma2 starts

It's not an ideal solution( not even a good workaround) and doesn't always work which is why I didn't add it to the repo




#918119 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 11 August 2018 - 17:11

mecool users:

update and build again, I added a demuxer workaround, now enigmacan grab the epg but still no image and I see timeout reading PAT,maybe this is a problem with the channel I tuned to so you need to try on a different channel.

 

one channel I tuned to I think streamed the ts stream but the amlogic codec crashed, unfortunately I can't reproduce so I can't find the problem




#917959 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 11 August 2018 - 11:28

 

When you can't play anything it means the problem is gstreamer.

I I play a file from gst-launch using playbin then the video goes through dvbvideosink and it doesn't detect the codec

 

root@k2pro:~# gst-launch-1.0 playbin uri=file:///home/root/test.mkv
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstDVBVideoSink:dvbvideosink0: There is no codec present that can handle the stream's type.
Additional debug info:
../git/gstdvbvideosink.c(1810): gst_dvbvideosink_set_caps (): /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstDVBVideoSink:dvbvideosink0:
hardware decoder can't handle streamtype 1
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
root@k2pro:~#
 

But If I remove the dvbvideosink plugins I can play files because it goes through  amlogic plugins.

Or I can set the video sink on the pipeline:

st-launch-1.0 playbin video-sink="amlvsink " uri=file:///home/root/test.mkv
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
[codec_init][725]############ pcodec->stream_typ 1
WARNING: from element /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:abin/GstAlsaSink:alsasink0: Could not get/set settings from/on resource.
Additional debug info:
../../../git/ext/alsa/gstalsasink.c(502): set_hwparams (): /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:abin/GstAlsaSink:alsasink0:
Unable to set buffer time 200000 for playback: Invalid argument
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock

I can only hear audio and no video for now but at least it plays.

 

So this a problem with the dvbvideosinkplugins since they don't detect libamcodec

 

I think openatv doesn't use dvbvideosink plugin and that's why it works, correct me if I'm wrong.

 

Can we tell enigma2 to use the amlvsink as a video sink and amlasink as audio sink or are we stuck with dvbvideosink  ?

 

note that this problem is not only with mecool devices, alien5 also has the same problems on pli

 

Small correction I can actually see the video but I have to run enigma2 before I run gst-launch ,apparently, the framebuffer needs to be setup by enigma2 first

 



#917947 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 11 August 2018 - 11:07

When you can't play anything it means the problem is gstreamer.

I I play a file from gst-launch using playbin then the video goes through dvbvideosink and it doesn't detect the codec

 

root@k2pro:~# gst-launch-1.0 playbin uri=file:///home/root/test.mkv
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstDVBVideoSink:dvbvideosink0: There is no codec present that can handle the stream's type.
Additional debug info:
../git/gstdvbvideosink.c(1810): gst_dvbvideosink_set_caps (): /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:vbin/GstDVBVideoSink:dvbvideosink0:
hardware decoder can't handle streamtype 1
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
root@k2pro:~#
 

But If I remove the dvbvideosink plugins I can play files because it goes through  amlogic plugins.

Or I can set the video sink on the pipeline:

st-launch-1.0 playbin video-sink="amlvsink " uri=file:///home/root/test.mkv
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
[codec_init][725]############ pcodec->stream_typ 1
WARNING: from element /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:abin/GstAlsaSink:alsasink0: Could not get/set settings from/on resource.
Additional debug info:
../../../git/ext/alsa/gstalsasink.c(502): set_hwparams (): /GstPlayBin:playbin0/GstPlaySink:playsink/GstBin:abin/GstAlsaSink:alsasink0:
Unable to set buffer time 200000 for playback: Invalid argument
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock

I can only hear audio and no video for now but at least it plays.

 

So this a problem with the dvbvideosinkplugins since they don't detect libamcodec

 

I think openatv doesn't use dvbvideosink plugin and that's why it works, correct me if I'm wrong.

 

Can we tell enigma2 to use the amlvsink as a video sink and amlasink as audio sink or are we stuck with dvbvideosink  ?

 

note that this problem is not only with mecool devices, alien5 also has the same problems on pli




#916971 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 9 August 2018 - 08:37

Mecool devices owners:

I just pushed an update to the repo, update and build a new image, you should now be able to scan and tune into channels(no picture yet)

some updates:

1- I solved the 64 bit issue thanks to crazycat69 help, so now enigma2 can function in 64 bit mode, hopefully we won't face any problem down the road.

2- Currently the tuner is working but you don't get picture, this is probably an issue with gstreamer and amlogic codecs.

3- You can do an automtic scan for channel but the tuner will lock after some time and will not find many channel and you have to reboot the device to get the tuner working again.

 

Regards




#915347 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 5 August 2018 - 08:13

For mecool devices owners,

I've solved the demuxer problem, now enigma2 can scan, tune and find and save channels, but there is no image, probably due to faulty gstreamer setup as I can't play any media type on the device either. as far as I know enigma2 depends on gstreamer's playbin(2) to function, I've installed the plugin and still can't get any image, needs more investigation.

in the mean time we need to find a way to build 32 bit userspace and 64 bit kernel

 

Regards




#914371 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 1 August 2018 - 17:53

News for mecool devices owners, I was able to get enigma2 work at tuning to frequency and scan by using 32 bit userspace programs (apparrently the avl6862 drivers only work if the program using them (enigma2 in our case) is compiled for armv7(32 bit) and not armv8(64 bit).

You can't compile an image yet since I can't find a way to tell bitbake to compile the whole userspace as armv7 except the kernel recipe as armv8.

also right now enigma2 doesn't function fully it only tunes, and the FE_SET_PROPERTY bad address error is gone, but still I can't find channels.

drivers log:

[ 3804.256802@2] AVL: avl6862_set_tone: tone: 1
[ 3804.257474@2] AVL: avl6862_set_voltage: volt: 2
[ 3804.271573@2] AVL: avl6862_set_voltage: volt: 1
[ 3804.283594@1] R848: r848_set_params: delivery_system=5 frequency=1136000 symbol_rate=30000000 bandwidth_hz=0
[ 3804.302367@1] R848: r848_set_params: R848_SetPllData for DVB-S
[ 3804.302562@1] R848: r848_set_params: R848_SetStandard=35
[ 3804.307821@1] R848: r848_set_params: R848_SetFrequency=1136000 KHz
[ 3804.314388@1] R848: R848_GetLockStatus: R848_GETLOCKSTATUS=0x79
[ 3804.319810@1] R848: r848_set_params: Tuner Locked.
[ 3804.325032@1] AVL: avl6862_set_dvbs: Freq:1136000 Mhz,sym:30000000 Khz
[ 3804.551320@1] remote: release ircode = 0x40,
[ 3804.551360@1] remote: scancode = 0x018f, maptable = 0,code:0x00000000
[ 3804.552128@1] 
[ 3804.562680@1] DMX: dmx_add_feed: dmx_add_feed: DMX_TYPE_SEC ret:-1 sf_ret:1
[ 3804.564884@1] DMX: dmx_alloc_chan: allocate channel(id:4 PID:8191)
[ 3804.571013@1] DMX: dmx_get_record_flag: channel:31 record_flag:0 linked:1
[ 3804.577736@1] DMX: dmx_enable: dmx->source:0 fec_sel:0 fec_core_sel:0 record:0 hi_bsf:0 dmx->dump_ts_select:0
[ 3804.587569@1] DMX: dmx_chan_add_filter: channel(id:4 PID:0x1fff) add filter(id:2)
[ 3804.594983@1] DMX: dmx_set_filter_regs: set filter (id:2) registers 1608
[ 3804.601628@1] DMX: dmx_set_filter_regs: write fm 8011:4001fff
[ 3804.607316@1] DMX: dmx_set_filter_regs: write fm 8021:84009fff
[ 3804.613095@1] DMX: dmx_set_filter_regs: write fm 8031:84009fff
[ 3804.618874@1] DMX: dmx_set_filter_regs: write fm 8041:84009fff
[ 3804.624652@1] DMX: dmx_set_filter_regs: write fm 8051:84009fff
[ 3804.630431@1] DMX: dmx_set_filter_regs: write fm 8061:84009fff
[ 3804.636210@1] DMX: dmx_set_filter_regs: write fm 8071:84009fff
[ 3804.641989@1] DMX: dmx_set_filter_regs: write fm 8081:84009fff
[ 3804.647767@1] DMX: dmx_set_filter_regs: write fm 8091:84009fff
[ 3804.653546@1] DMX: dmx_set_filter_regs: write fm 80a1:84009fff
[ 3804.659325@1] DMX: dmx_set_filter_regs: write fm 80b1:84009fff
[ 3804.665101@1] DMX: dmx_set_filter_regs: write fm 80c1:84009fff
[ 3804.670880@1] DMX: dmx_set_filter_regs: write fm 80d1:84009fff
[ 3804.676659@1] DMX: dmx_set_filter_regs: write fm 80e1:84009fff
[ 3804.682437@1] DMX: dmx_set_filter_regs: write fm 80f1:84009fff
[ 3804.688218@1] DMX: dmx_set_filter_regs: write fm comp 12
[ 3804.693479@1] DMX: dmx_add_feed: dmx_add_feed: DMX_TYPE_SEC ret:-1 sf_ret:1
[ 3804.700377@1] DMX: dmx_alloc_chan: allocate channel(id:5 PID:0)
[ 3804.706245@1] DMX: dmx_get_record_flag: channel:31 record_flag:0 linked:1
[ 3804.712971@1] DMX: dmx_enable: dmx->source:0 fec_sel:0 fec_core_sel:0 record:0 hi_bsf:0 dmx->dump_ts_select:0
[ 3804.722804@1] DMX: dmx_chan_add_filter: channel(id:5 PID:0x0) add filter(id:3)
[ 3804.729961@1] DMX: dmx_set_filter_regs: set filter (id:3) registers 1608
[ 3804.736604@1] DMX: dmx_set_filter_regs: write fm 8011:4000500
[ 3804.742295@1] DMX: dmx_set_filter_regs: write fm 8021:84008500
[ 3804.748074@1] DMX: dmx_set_filter_regs: write fm 8031:84008500
[ 3804.753853@1] DMX: dmx_set_filter_regs: write fm 8041:84008500
[ 3804.759631@1] DMX: dmx_set_filter_regs: write fm 8051:84008500
[ 3804.765410@1] DMX: dmx_set_filter_regs: write fm 8061:84008500
[ 3804.771189@1] DMX: dmx_set_filter_regs: write fm 8071:84008500
[ 3804.776967@1] DMX: dmx_set_filter_regs: write fm 8081:84008500
[ 3804.782746@1] DMX: dmx_set_filter_regs: write fm 8091:84008500
[ 3804.788525@1] DMX: dmx_set_filter_regs: write fm 80a1:84008500
[ 3804.794304@1] DMX: dmx_set_filter_regs: write fm 80b1:84008500
[ 3804.800083@1] DMX: dmx_set_filter_regs: write fm 80c1:84008500
[ 3804.805861@1] DMX: dmx_set_filter_regs: write fm 80d1:84008500
[ 3804.811640@1] DMX: dmx_set_filter_regs: write fm 80e1:84008500
[ 3804.817419@1] DMX: dmx_set_filter_regs: write fm 80f1:84008500
[ 3804.823197@1] DMX: dmx_set_filter_regs: write fm comp 12
[ 3804.828482@0] DMX: process_section: section ready:01000000
[ 3804.833895@0] DMX: process_section: 24. sec_busy:01000000 sec_num:3
[ 3805.295909@0] DMX: process_section: section ready:01000000
[ 3805.295963@0] DMX: process_section: 24. sec_busy:01000000 sec_num:3
[ 3805.771497@0] DMX: process_section: section ready:01000000
[ 3805.771546@0] DMX: process_section: 24. sec_busy:01000000 sec_num:3
[ 3806.246234@0] DMX: process_section: section ready:01000000
[ 3806.246281@0] DMX: process_section: 24. sec_busy:01000000 sec_num:3
[ 3806.721071@0] DMX: process_section: section ready:01000000
[ 3806.721122@0] DMX: process_section: 24. sec_busy:01000000 sec_num:3
[ 3807.196414@0] DMX: process_section: section ready:01000000
[ 3807.196462@0] DMX: process_section: 24. sec_busy:01000000 sec_num:3
[ 3807.671065@0] DMX: process_section: section ready:01000000
[ 3807.671114@0] DMX: process_section: 24. sec_busy:01000000 sec_num:3
[ 3808.145859@0] DMX: process_section: section ready:01000000
[ 3808.145905@0] DMX: process_section: 24. sec_busy:01000000 sec_num:3
[ 3808.620765@0] DMX: process_section: section ready:01000000
[ 3808.620815@0] DMX: process_section: 24. sec_busy:01000000 sec_num:3
[ 3808.830204@1] DMX: dmx_remove_filter: channel(id:5 PID:0x0) remove filter(id:3)
[ 3808.831870@1] DMX: dmx_set_filter_regs: set filter (id:3) registers 1608
[ 3808.838514@1] DMX: dmx_set_filter_regs: write fm 8011:4001fff
[ 3808.844201@1] DMX: dmx_set_filter_regs: write fm 8021:84009fff
[ 3808.849980@1] DMX: dmx_set_filter_regs: write fm 8031:84009fff
[ 3808.855758@1] DMX: dmx_set_filter_regs: write fm 8041:84009fff
[ 3808.861537@1] DMX: dmx_set_filter_regs: write fm 8051:84009fff
[ 3808.867316@1] DMX: dmx_set_filter_regs: write fm 8061:84009fff
[ 3808.873095@1] DMX: dmx_set_filter_regs: write fm 8071:84009fff
[ 3808.878873@1] DMX: dmx_set_filter_regs: write fm 8081:84009fff
[ 3808.884652@1] DMX: dmx_set_filter_regs: write fm 8091:84009fff
[ 3808.890431@1] DMX: dmx_set_filter_regs: write fm 80a1:84009fff
[ 3808.896209@1] DMX: dmx_set_filter_regs: write fm 80b1:84009fff
[ 3808.901988@1] DMX: dmx_set_filter_regs: write fm 80c1:84009fff
[ 3808.907767@1] DMX: dmx_set_filter_regs: write fm 80d1:84009fff
[ 3808.913546@1] DMX: dmx_set_filter_regs: write fm 80e1:84009fff
[ 3808.919324@1] DMX: dmx_set_filter_regs: write fm 80f1:84009fff
[ 3808.925105@1] DMX: dmx_set_filter_regs: write fm comp 12
[ 3808.930366@1] DMX: dmx_remove_feed: dmx[0]_rm_recchan[5]
[ 3808.935626@1] DMX: dmx_free_chan: free channel(id:5 PID:0x0)
[ 3808.941239@1] DMX: dmx_get_record_flag: channel:31 record_flag:0 linked:1
[ 3808.947964@1] DMX: dmx_enable: dmx->source:0 fec_sel:0 fec_core_sel:0 record:0 hi_bsf:0 dmx->dump_ts_select:0
[ 3808.957796@1] DMX: dmx_remove_filter: channel(id:4 PID:0x1fff) remove filter(id:3)
[ 3808.965293@1] DMX: dmx_set_filter_regs: set filter (id:3) registers 1608
[ 3808.971935@1] DMX: dmx_set_filter_regs: write fm 8011:4001fff
[ 3808.977627@1] DMX: dmx_set_filter_regs: write fm 8021:84009fff
[ 3808.983406@1] DMX: dmx_set_filter_regs: write fm 8031:84009fff
[ 3808.989185@1] DMX: dmx_set_filter_regs: write fm 8041:84009fff
[ 3808.994963@1] DMX: dmx_set_filter_regs: write fm 8051:84009fff
[ 3809.000742@1] DMX: dmx_set_filter_regs: write fm 8061:84009fff
[ 3809.006521@1] DMX: dmx_set_filter_regs: write fm 8071:84009fff
[ 3809.012300@1] DMX: dmx_set_filter_regs: write fm 8081:84009fff
[ 3809.018079@1] DMX: dmx_set_filter_regs: write fm 8091:84009fff
[ 3809.023857@1] DMX: dmx_set_filter_regs: write fm 80a1:84009fff
[ 3809.029636@1] DMX: dmx_set_filter_regs: write fm 80b1:84009fff
[ 3809.035415@1] DMX: dmx_set_filter_regs: write fm 80c1:84009fff
[ 3809.041193@1] DMX: dmx_set_filter_regs: write fm 80d1:84009fff
[ 3809.046972@1] DMX: dmx_set_filter_regs: write fm 80e1:84009fff
[ 3809.052751@1] DMX: dmx_set_filter_regs: write fm 80f1:84009fff
[ 3809.058529@1] DMX: dmx_set_filter_regs: write fm comp 12
[ 3809.063791@1] DMX: dmx_remove_feed: dmx[0]_rm_recchan[4]
[ 3809.069052@1] DMX: dmx_free_chan: free channel(id:4 PID:0x1fff)
[ 3809.074919@1] DMX: dmx_get_record_flag: channel:31 record_flag:0 linked:1
[ 3809.081646@1] DMX: dmx_enable: dmx->source:0 fec_sel:0 fec_core_sel:0 record:0 hi_bsf:0 dmx->dump_ts_select:0
[ 3809.093243@1] DMX: dmx_add_feed: dmx_add_feed: DMX_TYPE_SEC ret:-1 sf_ret:1
[ 3809.098380@1] DMX: dmx_alloc_chan: allocate channel(id:4 PID:8191)
[ 3809.104505@1] DMX: dmx_get_record_flag: channel:31 record_flag:0 linked:1
[ 3809.111230@1] DMX: dmx_enable: dmx->source:0 fec_sel:0 fec_core_sel:0 record:0 hi_bsf:0 dmx->dump_ts_select:0
[ 3809.121063@1] DMX: dmx_chan_add_filter: channel(id:4 PID:0x1fff) add filter(id:3)
[ 3809.128479@1] DMX: dmx_set_filter_regs: set filter (id:3) registers 1608
[ 3809.135122@1] DMX: dmx_set_filter_regs: write fm 8011:4420442
[ 3809.140813@1] DMX: dmx_set_filter_regs: write fm 8021:84008400
[ 3809.146592@1] DMX: dmx_set_filter_regs: write fm 8031:84008400
[ 3809.152370@1] DMX: dmx_set_filter_regs: write fm 8041:84008400
[ 3809.158149@1] DMX: dmx_set_filter_regs: write fm 8051:84008400
[ 3809.163927@1] DMX: dmx_set_filter_regs: write fm 8061:84008400
[ 3809.169706@1] DMX: dmx_set_filter_regs: write fm 8071:84008400
[ 3809.175485@1] DMX: dmx_set_filter_regs: write fm 8081:84008400
[ 3809.181263@1] DMX: dmx_set_filter_regs: write fm 8091:84008400
[ 3809.187042@1] DMX: dmx_set_filter_regs: write fm 80a1:84008400
[ 3809.192821@1] DMX: dmx_set_filter_regs: write fm 80b1:84008400
[ 3809.198600@1] DMX: dmx_set_filter_regs: write fm 80c1:84008400
[ 3809.204378@1] DMX: dmx_set_filter_regs: write fm 80d1:84008400
[ 3809.210157@1] DMX: dmx_set_filter_regs: write fm 80e1:84008400
[ 3809.215936@1] DMX: dmx_set_filter_regs: write fm 80f1:84008400
[ 3809.221715@1] DMX: dmx_set_filter_regs: write fm comp 12
[ 3809.226977@1] DMX: dmx_add_feed: dmx_add_feed: DMX_TYPE_SEC ret:-1 sf_ret:1
[ 3809.233876@1] DMX: dmx_alloc_chan: allocate channel(id:5 PID:17)
[ 3809.239829@1] DMX: dmx_get_record_flag: channel:31 record_flag:0 linked:1
[ 3809.246556@1] DMX: dmx_enable: dmx->source:0 fec_sel:0 fec_core_sel:0 record:0 hi_bsf:0 dmx->dump_ts_select:0
[ 3809.256388@1] DMX: dmx_chan_add_filter: channel(id:5 PID:0x11) add filter(id:4)
[ 3809.263632@1] DMX: dmx_set_filter_regs: set filter (id:4) registers 1608
[ 3809.270274@1] DMX: dmx_set_filter_regs: write fm 8012:5421fff
[ 3809.275966@1] DMX: dmx_set_filter_regs: write fm 8022:85009fff
[ 3809.281745@1] DMX: dmx_set_filter_regs: write fm 8032:85009fff
[ 3809.287523@1] DMX: dmx_set_filter_regs: write fm 8042:85009fff
[ 3809.293302@1] DMX: dmx_set_filter_regs: write fm 8052:85009fff
[ 3809.299081@1] DMX: dmx_set_filter_regs: write fm 8062:85009fff
[ 3809.304860@1] DMX: dmx_set_filter_regs: write fm 8072:85009fff
[ 3809.310638@1] DMX: dmx_set_filter_regs: write fm 8082:85009fff
[ 3809.316417@1] DMX: dmx_set_filter_regs: write fm 8092:85009fff
[ 3809.322196@1] DMX: dmx_set_filter_regs: write fm 80a2:85009fff
[ 3809.327975@1] DMX: dmx_set_filter_regs: write fm 80b2:85009fff
[ 3809.333753@1] DMX: dmx_set_filter_regs: write fm 80c2:85009fff
[ 3809.339532@1] DMX: dmx_set_filter_regs: write fm 80d2:85009fff
[ 3809.345311@1] DMX: dmx_set_filter_regs: write fm 80e2:85009fff
[ 3809.351090@1] DMX: dmx_set_filter_regs: write fm 80f2:85009fff
[ 3809.356868@1] DMX: dmx_set_filter_regs: write fm comp 22
[ 3810.531394@0] DMX: process_section: section ready:01000000
[ 3810.531450@0] DMX: process_section: 24. sec_busy:01000000 sec_num:4
[ 3811.862395@1] DMX: dmx_remove_filter: channel(id:5 PID:0x11) remove filter(id:4)
[ 3811.864153@1] DMX: dmx_set_filter_regs: set filter (id:4) registers 1608
[ 3811.870793@1] DMX: dmx_set_filter_regs: write fm 8012:1fff1fff
[ 3811.876570@1] DMX: dmx_set_filter_regs: write fm 8022:9fff9fff
[ 3811.882348@1] DMX: dmx_set_filter_regs: write fm 8032:9fff9fff
[ 3811.888127@1] DMX: dmx_set_filter_regs: write fm 8042:9fff9fff
[ 3811.893906@1] DMX: dmx_set_filter_regs: write fm 8052:9fff9fff
[ 3811.899685@1] DMX: dmx_set_filter_regs: write fm 8062:9fff9fff
[ 3811.905464@1] DMX: dmx_set_filter_regs: write fm 8072:9fff9fff
[ 3811.911242@1] DMX: dmx_set_filter_regs: write fm 8082:9fff9fff
[ 3811.917021@1] DMX: dmx_set_filter_regs: write fm 8092:9fff9fff
[ 3811.922800@1] DMX: dmx_set_filter_regs: write fm 80a2:9fff9fff
[ 3811.928578@1] DMX: dmx_set_filter_regs: write fm 80b2:9fff9fff
[ 3811.934357@1] DMX: dmx_set_filter_regs: write fm 80c2:9fff9fff
[ 3811.940136@1] DMX: dmx_set_filter_regs: write fm 80d2:9fff9fff
[ 3811.945915@1] DMX: dmx_set_filter_regs: write fm 80e2:9fff9fff
[ 3811.951693@1] DMX: dmx_set_filter_regs: write fm 80f2:9fff9fff
[ 3811.957473@1] DMX: dmx_set_filter_regs: write fm comp 12
[ 3811.962732@1] DMX: dmx_remove_feed: dmx[0]_rm_recchan[5]
[ 3811.967993@1] DMX: dmx_free_chan: free channel(id:5 PID:0x11)
[ 3811.973690@1] DMX: dmx_get_record_flag: channel:31 record_flag:0 linked:1
[ 3811.980414@1] DMX: dmx_enable: dmx->source:0 fec_sel:0 fec_core_sel:0 record:0 hi_bsf:0 dmx->dump_ts_select:0
[ 3811.990247@1] DMX: dmx_remove_filter: channel(id:4 PID:0x1fff) remove filter(id:4)
[ 3811.997748@1] DMX: dmx_set_filter_regs: set filter (id:4) registers 1608
[ 3812.004390@1] DMX: dmx_set_filter_regs: write fm 8012:1fff1fff
[ 3812.010169@1] DMX: dmx_set_filter_regs: write fm 8022:9fff9fff
[ 3812.015947@1] DMX: dmx_set_filter_regs: write fm 8032:9fff9fff
[ 3812.021726@1] DMX: dmx_set_filter_regs: write fm 8042:9fff9fff
[ 3812.027505@1] DMX: dmx_set_filter_regs: write fm 8052:9fff9fff
[ 3812.033284@1] DMX: dmx_set_filter_regs: write fm 8062:9fff9fff
[ 3812.039062@1] DMX: dmx_set_filter_regs: write fm 8072:9fff9fff
[ 3812.044841@1] DMX: dmx_set_filter_regs: write fm 8082:9fff9fff
[ 3812.050620@1] DMX: dmx_set_filter_regs: write fm 8092:9fff9fff
[ 3812.056399@1] DMX: dmx_set_filter_regs: write fm 80a2:9fff9fff
[ 3812.062177@1] DMX: dmx_set_filter_regs: write fm 80b2:9fff9fff
[ 3812.067956@1] DMX: dmx_set_filter_regs: write fm 80c2:9fff9fff
[ 3812.073735@1] DMX: dmx_set_filter_regs: write fm 80d2:9fff9fff
[ 3812.079514@1] DMX: dmx_set_filter_regs: write fm 80e2:9fff9fff
[ 3812.085292@1] DMX: dmx_set_filter_regs: write fm 80f2:9fff9fff
[ 3812.091071@1] DMX: dmx_set_filter_regs: write fm comp 12
[ 3812.096332@1] DMX: dmx_remove_feed: dmx[0]_rm_recchan[4]
[ 3812.101593@1] DMX: dmx_free_chan: free channel(id:4 PID:0x1fff)
[ 3812.107460@1] DMX: dmx_get_record_flag: channel:31 record_flag:0 linked:1
[ 3812.114187@1] DMX: dmx_enable: dmx->source:0 fec_sel:0 fec_core_sel:0 record:0 hi_bsf:0 dmx->dump_ts_select:0
[ 3815.278553@1] AVL: avl6862_set_tone: tone: 1
[ 3815.279228@1] AVL: avl6862_set_voltage: volt: 2
[ 3815.282761@3] AVL: avl6862_set_voltage: volt: 2

enigma2 log

ActionMap] Keymap 'SetupActions' -> Action = 'save'
nim 0
is compatible with DVB-S
add sat transponder
Add Sat: frequ: 10886 symbol: 30000 pol: 0 fec: 0 inversion: 2 modulation: 1 system: 0 rolloff0 pilot2 is_id-1 pls_mode1 pls_code0
orbpos: 70
[Skin] Processing screen: ServiceScan
ServiceScanCreateSummary
[SKIN] Parsing embedded skin <embedded-in-'ServiceScanSummary'>
[Skin] Processing screen: <embedded-in-'ServiceScanSummary'>
[eDVBFrontend] opening frontend 0
[eDVBChannel] getDemux cap=00
[eDVBResourceManager] allocate demux cap=00
[eDVBResourceManager] allocating demux adapter=0, demux=0, source=-1 fesource=0
[eDVBDemux] open demux /dev/dvb/adapter0/demux0
[eDVBDemux] DMX_SET_SOURCE Frontend0 failed: Invalid argument
[eDVBFrontend] (0)tune
[eDVBSatelliteEquipmentControl] direct_connected 1
[eDVBSatelliteEquipmentControl] canTune 1
[eDVBSatelliteEquipmentControl] lnb 0 found
[eDVBSatelliteEquipmentControl] sat 70 found
[eDVBSatelliteEquipmentControl] ret1 15000
[eDVBSatelliteEquipmentControl] ret5 15000
[eDVBSatelliteEquipmentControl] ret 15000, score old 0
[eDVBSatelliteEquipmentControl] score new 15000
[eDVBSatelliteEquipmentControl] final score 15005
[eDVBSatelliteEquipmentControl] RotorCmd ffffffff, lastRotorCmd ffffffff
[eDVBFrontend] prepare_sat System 0 Freq 10886000 Pol 0 SR 30000000 INV 2 FEC 0 orbpos 70 system 0 modulation 1 pilot 2, rolloff 0, is_id -1, pls_mode 1, pls_code 0
[eDVBFrontend] tuning to 1136 mhz
[eDVBChannel] OURSTATE: tuning
[eDVBFrontend] invalidate current switch params
[eDVBFrontend] setVoltage 2
[eDVBFrontend] sleep 10ms
[eDVBFrontend] set sequence pos 3
[eDVBFrontend] update current switch params
[eDVBFrontend] startTuneTimeout 5000
[eDVBFrontend] setFrontend 1
[eDVBFrontend] setting frontend 0
[eDVBFrontend] (0)fe event: status 0, inversion off, m_tuning 1
[eDVBFrontend] sleep 500ms
[eDVBFrontend] (0)fe event: status 1f, inversion off, m_tuning 2
[eDVBChannel] OURSTATE: ok
[eDVBDemux] open demux /dev/dvb/adapter0/demux0
[eDVBSectionReader] DMX_SET_FILTER pid=0
[eDVBScan] got pat, err -1
[eDVBDemux] open demux /dev/dvb/adapter0/demux0
[eDVBSectionReader] DMX_SET_FILTER pid=17
[eDVBScan] got sdt -1
[eDVBScan] channel done!
[eDVBScan] the current channel's ID was not corrected - not adding channel.
[eDVBScan] no channels left: 1 scanned, 0 unavailable, 0 database.
[eDVBDB] Renumbering...
[eDVBDB] ---- saving lame channel db
[eDVBDB] saved 0 channels and 0 services!
[eComponentScan] scan done!
[eDVBFrontend] close frontend 0

it's a problem with the demuxer I think, maybe a problem with the amldecoder library




#911624 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 26 July 2018 - 03:59

 

 

Problem lies with the dts files included with the recipes. I replaced with the dts obtained from decompiled dtb from CoreELEC, then it boots OK. But now remote is not working, while it was working OK with last night's image.

I will share new test images shortly.

I did use the coreelec dtbs in the meta-amlogic repo, the official coreelec dtbs don't have remote support because they use lirc for remote which uses meson-ir driver , while we use remotecfg tool which uses meson-remote driver, I enabled meson-remote  in the latest commits https://github.com/P...1f3af751b876686

Also I just diffed the dts files you uploaded against the dts files produced by openpli and there is no important difference, only the openvfd node that coreelec added recently(which is not important for boot) so whatever is preventing booting the dts files are not the problem

▶ diff gxbb_p200_k1_plus.dts k1plusopen 
1100,1102c1100,1102
< 	le-vfd {
< 		compatible = "le,vfd";
< 		dev_name = "le-vfd";
---
> 	openvfd {
> 		compatible = "open,vfd";
> 		dev_name = "openvfd";

~/Downloads/DTS                                                                                                                               ⍉
▶ diff gxbb_p200_k2_pro.dts k2proopen 
1100,1102c1100,1102
< 	le-vfd {
< 		compatible = "le,vfd";
< 		dev_name = "le-vfd";
---
> 	openvfd {
> 		compatible = "open,vfd";
> 		dev_name = "openvfd";

 

while it was working OK with last night's image.

can you tell which commit that made the images not bootable? try to build an image and test boot it with each commit and see what commit caused the images to not boot

 

https://github.com/P...commits/develop

0 Links

 

Yes I can try that, can you guide how to disable all commits and enable one by one for building the image?

Since I have only K1 Pro, so I will try this for K1 Pro only, so that I may test those images myself.

 

Ok can you try these images and tell me which one works and which one doesn't ?(these are k1 pro images)

https://drive.google...DtRaQt2tpO7ZVUE




#911200 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 25 July 2018 - 08:00

 

 

Problem lies with the dts files included with the recipes. I replaced with the dts obtained from decompiled dtb from CoreELEC, then it boots OK. But now remote is not working, while it was working OK with last night's image.

I will share new test images shortly.

I did use the coreelec dtbs in the meta-amlogic repo, the official coreelec dtbs don't have remote support because they use lirc for remote which uses meson-ir driver , while we use remotecfg tool which uses meson-remote driver, I enabled meson-remote  in the latest commits https://github.com/P...1f3af751b876686

Also I just diffed the dts files you uploaded against the dts files produced by openpli and there is no important difference, only the openvfd node that coreelec added recently(which is not important for boot) so whatever is preventing booting the dts files are not the problem

▶ diff gxbb_p200_k1_plus.dts k1plusopen 
1100,1102c1100,1102
< 	le-vfd {
< 		compatible = "le,vfd";
< 		dev_name = "le-vfd";
---
> 	openvfd {
> 		compatible = "open,vfd";
> 		dev_name = "openvfd";

~/Downloads/DTS                                                                                                                               ⍉
▶ diff gxbb_p200_k2_pro.dts k2proopen 
1100,1102c1100,1102
< 	le-vfd {
< 		compatible = "le,vfd";
< 		dev_name = "le-vfd";
---
> 	openvfd {
> 		compatible = "open,vfd";
> 		dev_name = "openvfd";

 

while it was working OK with last night's image.

can you tell which commit that made the images not bootable? try to build an image and test boot it with each commit and see what commit caused the images to not boot

 

https://github.com/P...commits/develop

0 Links

 

Yes I can try that, can you guide how to disable all commits and enable one by one for building the image?

Since I have only K1 Pro, so I will try this for K1 Pro only, so that I may test those images myself.

 

well if you're not familiar with git then wait untill i finish the build I'm running and I will build iimages for each commit if I can and you guys can test it

I had to reset the build so It is building from start so this might take some time, sit tight ;) ;)




#910292 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 23 July 2018 - 10:28

 

 

I had the proc entry stb/frontend/0/mode to enable multitype tuner

 

http://www.mediafire...q/procfs.tar.gz

 

Now enigma can switch the mode but i cannot scan (now i can scan only dvb-t) for this error:

[eDVBFrontend] opening frontend 0
[eDVBChannel] getDemux cap=00
[eDVBResourceManager] allocate demux cap=00
[eDVBResourceManager] allocating demux adapter=0, demux=0, source=-1 fesource=0
[eDVBDemux] open demux /dev/dvb/adapter0/demux0
[eDVBDemux] DMX_SET_SOURCE Frontend0 failed: Invalid argument
[eDVBFrontend] (0)tune
[eDVBFrontend] tune setting type to 2 from 0
[eDVBChannel] OURSTATE: tuning
[eDVBFrontend] startTuneTimeout 5000
[eDVBFrontend] setVoltage 0
[eDVBFrontend] setFrontend 1
[eDVBFrontend] setting frontend 0
FE_SET_PROPERTY failed: Bad address

I suspect a wrong demux allocation and it can crash FE_SET_PROPERTY

so, we're back to square one, the "FE_SET_PROPERTY failed: Bad address" needs somone who understand the avl6862 driver

 

 

 

I can't understand why same driver on "True Linux distribution" work well with tvheadend.

I read a commit with "set property fix" message on branch r484a

 

Well actually it doesn't work with tvheadend either, I think if you build tvheadend from the official repo, then tvheadend won't detect the card ( I could be wrong though, I tried it once a long time ago).

I think afl1 also patched the tvheadend version that is shipped with the coreelec to work with the avl6862

 

I'm trying now to build the driver with previous commits by afl1




#908844 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 18 July 2018 - 18:03

@persianprince I've made a working coreelec-linux recipe and added a config for the old k2pro version, I've tested the recipe it compiles the kernel and dtb file successfully but I didn't test if it compiles the whole sd image, I need some time to test for that (due to my shitty internet connection)
you can see my changes here: https://github.com/m...6/meta-amlogic/
If you can test it I can make a pull request




#907447 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 13 July 2018 - 09:18

 

I've ported the e2procfs for the k2pro on the 3.14.29 kernel now I have some of the proc/stb nodes(some of them are just set to null)

I've loaded the avl6862 drivers and I have /dev/dvb/adapter0/frontend0

for /proc/bus/nim_sockets most of the tools I've tried fails to detect that the avl6862 support muliple standards(dvb-s,dvb-s2 and dvb-t) and instead they identify it as dvb-t frontend, I've tried linkdroid-cnim and create_nimsockets

and they both result in the following:

 

NIM Socket 0:
    Type: DVB-T2
    Name: Availink avl6862
    Has_Outputs: no
    Frontend_Device: 0

Unfortunately I can't test dvb-T2, I can only test dvb-s and dvb-s2 so I wrote the following to the /proc/bus/nim_scokets

 

 

NIM Socket 0:
    Type: DVB-S
    Name: Availink avl6862
    Has_Outputs: no
    Frontend_Device: 0

now enigma2 sees  the tuner as dvb-s and I can use the setup and set the satellite, but the scan doesn't find any channels, when running a scan I get this error in the console

 

 

FE_SET_PROPERTY failed: Bad address

the error is repeated with every frequency it scans.

So what is the cause of this error ? a particular /proc/stb  node missing ? How can I collect more info about this error(enable debuggig ?)

note that the avl6862 driver uses dvb api version 3 (I think) and when running enigma I get this  in the console:

 

DVB_API_VERSION 5 DVB_API_VERSION_MINOR 10

So maybe enigma2 is compiled for dvb api version 5 and this causes it to not being able to communicate correctly with the avl6862 ?

Would appreciate if any of enigma2 experts can help me debug this

 

Thanks

can you share your how you ported e2procfs ,plaese?

thanks

 

Right now the rtc part is causing the kernel to crash I'm trying to solve this and I will post it on github soon.

 

PS: I've never programmed in C so this might take some time.

 

Thanks




#907015 Howto build unofficial pli for your unsupported receiver

Posted by moham96 on 11 July 2018 - 22:36

 

I've ported the e2procfs for the k2pro on the 3.14.29 kernel now I have some of the proc/stb nodes(some of them are just set to null)

I've loaded the avl6862 drivers and I have /dev/dvb/adapter0/frontend0

for /proc/bus/nim_sockets most of the tools I've tried fails to detect that the avl6862 support muliple standards(dvb-s,dvb-s2 and dvb-t) and instead they identify it as dvb-t frontend, I've tried linkdroid-cnim and create_nimsockets

and they both result in the following:

 

NIM Socket 0:
    Type: DVB-T2
    Name: Availink avl6862
    Has_Outputs: no
    Frontend_Device: 0

Unfortunately I can't test dvb-T2, I can only test dvb-s and dvb-s2 so I wrote the following to the /proc/bus/nim_scokets

 

 

NIM Socket 0:
    Type: DVB-S
    Name: Availink avl6862
    Has_Outputs: no
    Frontend_Device: 0

now enigma2 sees  the tuner as dvb-s and I can use the setup and set the satellite, but the scan doesn't find any channels, when running a scan I get this error in the console

 

 

FE_SET_PROPERTY failed: Bad address

the error is repeated with every frequency it scans.

So what is the cause of this error ? a particular /proc/stb  node missing ? How can I collect more info about this error(enable debuggig ?)

note that the avl6862 driver uses dvb api version 3 (I think) and when running enigma I get this  in the console:

 

DVB_API_VERSION 5 DVB_API_VERSION_MINOR 10

So maybe enigma2 is compiled for dvb api version 5 and this causes it to not being able to communicate correctly with the avl6862 ?

Would appreciate if any of enigma2 experts can help me debug this

 

Thanks

 

Very Very good work :)

 

If you need i can scan DVB-T

 

Well I just tested dvb-t (without antenna) and it give the same error (FE_SET_PROPERTY failed: Bad address) So it probably doesn't work either.