Jump to content


Photo

Howto build unofficial pli for your unsupported receiver


  • This topic is locked This topic is locked
2740 replies to this topic

Re: Howto build unofficial pli for your unsupported receiver #1281 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 10 June 2018 - 18:26

k1pro has two tuners:

avl6211 dvb-s2
avl6862 dvb-t2

I need to check my patch again.

Open Vision sources: https://github.com/OpenVisionE2


Re: Howto build unofficial pli for your unsupported receiver #1282 mariusz762

  • New Member
  • 2 posts

0
Neutral

Posted 10 June 2018 - 20:51

i wait compile KII pro S905 old



Re: Howto build unofficial pli for your unsupported receiver #1283 takitr

  • Senior Member
  • 77 posts

+24
Neutral

Posted 10 June 2018 - 21:43

Here k1pro k2 pro k1 plus tuner drivers
https://github.com/C...amlogic/dvb-avl
Here is add patch
https://github.com/C...b88e97930b528bf

Otherhand e2 procfs searching 3 embedded
tuner

Re: Howto build unofficial pli for your unsupported receiver #1284 edud2k

  • Member
  • 6 posts

+1
Neutral

Posted 10 June 2018 - 21:48

k1pro has two tuners:

avl6211 dvb-s2
avl6862 dvb-t2

I need to check my patch again.

correct is 3 tunners:S2 , T2 and C ( tuner hybrid)



Re: Howto build unofficial pli for your unsupported receiver #1285 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 11 June 2018 - 04:55

I tried it and I got it OK without changing anything. I think this is a 4K problem and I can't help you with that because I have no 4K TVs to try.

Attached Files


Edited by zeros, 11 June 2018 - 04:55.

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: Howto build unofficial pli for your unsupported receiver #1286 engineerkhan15

  • Senior Member
  • 145 posts

+18
Neutral

Posted 11 June 2018 - 05:18

 

Thanks for your time, so meta-amlogic is ok now and it builds just fine but dvb support (avl patch) is not ok.

Tomorrow I will share 3 more test images:

1- without avl patch
2- with avl patch but different k1pro.dts
3- with avl patch but different kernel config

At least now we can add more models based on what we have in meta-amlogic but not just me, please contribute and share the needed sources with me so I can do things faster.

For example k2pro, what we know about it?

 

Here is what I have found about KI Plus, KII Pro, KI Pro and KIII Pro:

 

KI Plus: Amlogic S905 , Mali T450, RAM 1 GB DDR3, ROM 8 GB, Tuner AVL6862 (Hybrid Tuner DVB-S2/T2)

KII Pro (Old version): Amlogic S905, Mali T450, RAM 2 GB DDR3, ROM 16 GB, Tuner AVL6862 (Hybrid Tuner DVB-S2/T2)

KII Pro (New version): Amlogic S905D, Mali T450, RAM 2 GB DDR3, ROM 16 GB, Tuner AVL6862 (Hybrid Tuner DVB-S2/T2)

KI Pro: Amlogic S905D, Mali T450, RAM 2 GB DDR4, ROM 16 GB, Tuner AVL6862 (Combo Tuner DVB-S2/C2/T2)

KIII Pro: Amlogic S912, Mali T820, RAM 3 GB DDR3, ROM 16 GB, Tuner AVL6862 (Combo Tuner DVB-S2/C2/T2)

 

So what I found is that tuner is same in all, i.e, AVL6862.
 


Edited by engineerkhan15, 11 June 2018 - 05:20.


Re: Howto build unofficial pli for your unsupported receiver #1287 engineerkhan15

  • Senior Member
  • 145 posts

+18
Neutral

Posted 11 June 2018 - 06:55

 

At least now we can add more models based on what we have in meta-amlogic but not just me, please contribute and share the needed sources with me so I can do things faster.

 

I have a suggestion, can we replace existing linux kernel in the recipe with this https://github.com/C...nux-amlogic.git?

In this case, we have the kernel source of AVL6862 included and this source works well with all KI, KII and KIII boxes (in case of LibreELEC and CoreELEC).



Re: Howto build unofficial pli for your unsupported receiver #1288 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 11 June 2018 - 07:26

 

 

At least now we can add more models based on what we have in meta-amlogic but not just me, please contribute and share the needed sources with me so I can do things faster.

 

I have a suggestion, can we replace existing linux kernel in the recipe with this https://github.com/C...nux-amlogic.git?

In this case, we have the kernel source of AVL6862 included and this source works well with all KI, KII and KIII boxes (in case of LibreELEC and CoreELEC).

 

 

I'm doing something similar but it's not just a rename, wait for a new test image :)


Open Vision sources: https://github.com/OpenVisionE2


Re: Howto build unofficial pli for your unsupported receiver #1289 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 11 June 2018 - 09:03

I did push some updates regarding warnings so now you will see less errors, I was sick of those myself.


Open Vision sources: https://github.com/OpenVisionE2


Re: Howto build unofficial pli for your unsupported receiver #1290 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 11 June 2018 - 10:00

I did add new recipes for linux-mecool from CoreELEC but now I can't compile it, try it yourself ...


Open Vision sources: https://github.com/OpenVisionE2


Re: Howto build unofficial pli for your unsupported receiver #1291 engineerkhan15

  • Senior Member
  • 145 posts

+18
Neutral

Posted 11 June 2018 - 10:08

Thanks a  lot. I will try now.



Re: Howto build unofficial pli for your unsupported receiver #1292 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 11 June 2018 - 10:15

Is there any working bitbake recipe for amlogic that has the avl sources? Because I can't find even 1 working version on this planet.


Open Vision sources: https://github.com/OpenVisionE2


Re: Howto build unofficial pli for your unsupported receiver #1293 ftp21_

  • Senior Member
  • 73 posts

+9
Neutral

Posted 11 June 2018 - 10:31

I did add new recipes for linux-mecool from CoreELEC but now I can't compile it, try it yourself ...

 

I try:

http://dpaste.com/3S9862D



Re: Howto build unofficial pli for your unsupported receiver #1294 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 11 June 2018 - 10:40

I did try https://github.com/C...C/linux-amlogic (both amlogic-3.14-osmc and amlogic-3.14.y branches) with no luck.

 

I have no idea how to compile a kernel for k1pro.


Open Vision sources: https://github.com/OpenVisionE2


Re: Howto build unofficial pli for your unsupported receiver #1295 ftp21_

  • Senior Member
  • 73 posts

+9
Neutral

Posted 11 June 2018 - 11:09

I did try https://github.com/C...C/linux-amlogic (both amlogic-3.14-osmc and amlogic-3.14.y branches) with no luck.

 

I have no idea how to compile a kernel for k1pro.

 

I find also AlexElec Kernel

https://github.com/A...EC/AlexELEC-AML

 

How i can modify the defconfig to compile this kernel?



Re: Howto build unofficial pli for your unsupported receiver #1296 Persian Prince

  • Senior Member
  • 1,982 posts

+247
Excellent

Posted 11 June 2018 - 11:18

 

I did try https://github.com/C...C/linux-amlogic (both amlogic-3.14-osmc and amlogic-3.14.y branches) with no luck.

 

I have no idea how to compile a kernel for k1pro.

 

I find also AlexElec Kernel

https://github.com/A...EC/AlexELEC-AML

 

How i can modify the defconfig to compile this kernel?

 

 

I don't know, you tell me as I can't compile myself ...


Open Vision sources: https://github.com/OpenVisionE2


Re: Howto build unofficial pli for your unsupported receiver #1297 engineerkhan15

  • Senior Member
  • 145 posts

+18
Neutral

Posted 11 June 2018 - 13:12

 

I don't know, you tell me as I can't compile myself ...

 

Please check, if it or something like it will work?

DESCRIPTION = "Linux kernel for the mecool device"
SECTION = "kernel"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

COMPATIBLE_MACHINE = "k1pro"

DEPENDS = "lzop-native virtual/${TARGET_PREFIX}gcc"

inherit kernel machine_kernel_pr

MACHINE_KERNEL_PR_append = ".2"

LOCALVERSION ?= ""

SRC_URI[md5sum] = "914bbd4442c3fe880a9d7f922bec0be3"
SRC_URI[sha256sum] = "c34cebda340545f9d3c9867994114ce4549cc22f4194d3ed07accfc10bc48a1e"

SRC_URI += "https://github.com/persianpros/linux-amlogic/archive/amlogic-3.14-osmc.zip \
    file://defconfig \
    file://${MACHINE}.dts \
"

S = "${WORKDIR}/linux-amlogic-amlogic-3.14-osmc"
B = "${WORKDIR}/build"

do_configure_prepend () {
   cp -f ${WORKDIR}/${MACHINE}.dts ${S}/arch/arm64/boot/dts/amlogic/
}

do_compile_prepend () {
  oe_runmake ${B}/drivers/amlogic/dvb-avl/
  install -d ${B}/drivers/amlogic/dvb-avl/
  cp -fr ${S}/drivers/amlogic/dvb-avl/aml.o  ${B}/drivers/amlogic/dvb-avl/
  cp -fr ${S}/drivers/amlogic/dvb-avl/aml_fe.o  ${B}/drivers/amlogic/dvb-avl/
  cp -fr ${S}/drivers/amlogic/dvb-avl/avl6862.o  ${B}/drivers/amlogic/dvb-avl/
  cp -fr ${S}/drivers/amlogic/dvb-avl/r848a.o  ${B}/drivers/amlogic/dvb-avl/
  cp -fr ${S}/drivers/amlogic/dvb-avl/aml_dvb.o  ${B}/drivers/amlogic/dvb-avl/
  cp -fr ${S}/drivers/amlogic/dvb-avl/aml_dmx.o  ${B}/drivers/amlogic/dvb-avl/
  if test -n "${KERNEL_DEVICETREE}"; then
      for DTB in ${KERNEL_DEVICETREE}; do
          if echo ${DTB} | grep -q '/dts/'; then
              bbwarn "${DTB} contains the full path to the the dts file, but only the dtb name should be used."
              DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'`
          fi
          oe_runmake ${DTB}
      done
  # Create directory, this is needed for out of tree builds
  mkdir -p ${B}/arch/arm64/boot/dts/amlogic/
  fi
}

do_compile_append() {
    cp ${B}/arch/arm64/boot/dts/amlogic/${MACHINE}.dtb ${B}/arch/arm64/boot/
}

do_rm-work() {
}


Re: Howto build unofficial pli for your unsupported receiver #1298 engineerkhan15

  • Senior Member
  • 145 posts

+18
Neutral

Posted 11 June 2018 - 15:02

There is problem in compiling the linux-mecool kernel due to certain configuration mismatches.

However, by adding the oe_runmake command in the kernel recipe I was able to get "aml_dmx.o", "aml_dvb.o", "aml_fe.o", "avl6862.o", "r848a.o" files from the "dvb-avl" folder in the linux-mecool kernel.

So, it means that if we just add the "dvb-avl" folder from "linux-mecool" to "linux-linkdroid" kernel at path "/drivers/amlogic/" and add "oe_runmake ${S}/drivers/amlogic/dvb-avl/" command in the recipe then we can compile the dvb driver for AVL6862.

So we can replace the dvb driver installation lines in the recipe, somewhat like:

  do_compile_prepend () {
  oe_runmake ${S}/drivers/amlogic/dvb-avl/
  install -d ${B}/drivers/amlogic/dvb-avl/
  cp -fr ${S}/drivers/amlogic/dvb-avl/aml_fe.o  ${B}/drivers/amlogic/dvb-avl/
  cp -fr ${S}/drivers/amlogic/dvb-avl/avl6862.o  ${B}/drivers/amlogic/dvb-avl/
  cp -fr ${S}/drivers/amlogic/dvb-avl/r848a.o  ${B}/drivers/amlogic/dvb-avl/
  cp -fr ${S}/drivers/amlogic/dvb-avl/aml_dvb.o  ${B}/drivers/amlogic/dvb-avl/
  cp -fr ${S}/drivers/amlogic/dvb-avl/aml_dmx.o  ${B}/drivers/amlogic/dvb-avl/

Here r848 is the tuner chip and avl6862 is the demodulator chip (I think).



Re: Howto build unofficial pli for your unsupported receiver #1299 candu

  • Member
  • 10 posts

0
Neutral

Posted 12 June 2018 - 08:52

Hi! For me on DM 920 blind scan is not working. Any idea to solved?

 

Thanks!


Edited by candu, 12 June 2018 - 08:53.


Re: Howto build unofficial pli for your unsupported receiver #1300 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 12 June 2018 - 21:13

Does with PLI blind scan working at all? Which boxes are supported?
If it doesn't work on any supported boxes, we don't have anything to talk about.

Edited by zeros, 12 June 2018 - 21:14.

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz



64 user(s) are reading this topic

0 members, 64 guests, 0 anonymous users