Jump to content


Photo

AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD)

DVB-T

  • Please log in to reply
18 replies to this topic

#1 ambrosa

  • Senior Member
  • 161 posts

+35
Good

Posted 1 December 2011 - 20:56

I'm only an hobbyist, not an expert C coder but during past weeks I'm increasing my knowledge about OpenPli, Enigma2 and DVB-T driver.
It's funny :P (my wife hate me :wacko: )
Many thanks to Gennar1, Skaman, Xgaz : they are "patient" with me :rolleyes:

I've 4 DVB-T USB stick and I'm trying to have a better driver code for them.
In my opinion AverMedia A867 (aka italian "SKY Digital Key" 'blue LED' version, see NOTE1) is the best: cheap (about 15-20 euros), HD capable, very fast zap, very high sensitivity and stable. It's based on AF9035 and MX5007T (you can buy on eBay)

But I've see that during OpenPli A867 driver compile there are many many warnings and driver lacks completely SNR value.
So I've take OpenPli dvb-usb-a867.patch file and I've started a clean-up code process and added SNR management.
My effort is here: https://github.com/a...67_kernel_3.0.0
The same driver can be compiled without any change in Ubuntu 11.10 and CT9100 kernel 3.1.0

Now driver is faster, smaller, no warnings at all and SNR is OK :D . It looks stable.
DVB-T zap is faster than satellite ! URGH !

I add here my patch: you can simple overwrite openembedded/recipes/linux/linux-etxx00/dvb-usb-a867.patch file. No need to change anything in linux-etxx00_3.1.0.bb or the patch order.


In next days I'll try to have a better code for my RTL2832 driver, so stay tuned ;)

-------

But I've discovered a strange problem about PliHD skin.
Some OpenPli versions ago , the PliHD second infobar show in upper right corner 3 coloured bars for SNR, AGC,BER

Now I've no infos. I've only numeric SNR% in the first infobar (lower right corner). No bar also for sat channels. Any idea ?

------

NOTE1: there are 2 type of "Sky Digital Key": one is Avermedia A867 and the stick has a "blue" LED. The second stick has a "green" LED and it's based on a unsupported chipset, so don't buy it.
STB: Clarke Tech ET9100
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #2 ambrosa

  • Senior Member
  • 161 posts

+35
Good

Posted 1 December 2011 - 21:12

I forgot !

A problem about dvb-a867 ipk install process (also with previous original version).
During IPK install at the and it's showed an error message about "cannot found dvb_a867"
Well, driver is dvb-a867 but if I do an lsmod
dvb_a867			  211646  2
it's with an underscore.

Probably there is a mismatch somewhere about dvb-a867 and dvb_a867

Strange, I've named my driver dvb-usb-a867
a867_af903x-core.c:	.name	   = "dvb-usb-a867",

Openembedded change module name ?
Anyway there is no problem using dvb-a867 but there is a mismatch "-" and "_"

Edited by ambrosa, 1 December 2011 - 21:15.

STB: Clarke Tech ET9100
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #3 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 1 December 2011 - 21:22

are you sure you attached the correct patch?
There are no functional differences compared to the current version, except:

-some it9135 stuff (from the it9135 patch) has been added to Kconfig and Makefile (as a result, the it9135 patch won't apply anymore)
-<dvb-usb.h> replaced by "dvb-usb.h" at one location, and "dvb-usb.h" replaced by <dvb-usb.h> on another

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #4 DrAk3

  • Senior Member
  • 85 posts

+2
Neutral

Posted 1 December 2011 - 21:22





But I've discovered a strange problem about PliHD skin.
Some OpenPli versions ago , the PliHD second infobar show in upper right corner 3 coloured bars for SNR, AGC,BER

Now I've no infos. I've only numeric SNR% in the first infobar (lower right corner). No bar also for sat channels. Any idea ?



ty for your support!!! :)

i confirm that in the last week releases of pli HD skin in the second info bar the signal bars disappears... is this a bug?

D.

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #5 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 1 December 2011 - 21:23

Probably there is a mismatch somewhere about dvb-a867 and dvb_a867


no, depmod and modprobe don't mind, they allow - and _ to be used interchangably

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #6 ambrosa

  • Senior Member
  • 161 posts

+35
Good

Posted 1 December 2011 - 21:50

are you sure you attached the correct patch?
There are no functional differences compared to the current version, except:

-some it9135 stuff (from the it9135 patch) has been added to Kconfig and Makefile (as a result, the it9135 patch won't apply anymore)
-<dvb-usb.h> replaced by "dvb-usb.h" at one location, and "dvb-usb.h" replaced by <dvb-usb.h> on another


Opps ! I've said before: I'm not an expert. Sorry. I've made a mistake with git diff
I attach here the correct patch.

Anyway for my mistake I've send you before the ORIGINAL patch as you can find in openembedded/recipes/linux/linux-etxx00/dvb-usb-a867.patch
And into the original patch there is the same it9135 code about Kconfig and Makefile :
diff --git a/drivers/media/dvb/dvb-usb/Kconfig b/drivers/media/dvb/dvb-usb/Kconfig
index 4fc22e1..841a82f 100644
--- a/drivers/media/dvb/dvb-usb/Kconfig
+++ b/drivers/media/dvb/dvb-usb/Kconfig
@@ -382,3 +382,12 @@ config DVB_USB_TECHNISAT_USB2
	 depends on DVB_USB
	 help
	   Say Y here to support the ITE IT9135 based DVB-T USB2.0 receiver
+
+config DVB_A867
+	tristate "Avermedia A867 DVB receiver"
+	depends on DVB_USB
+	default m
+	help
+		Choose Y or M here if you have an Avermedia A867 device
+
+		To compile this driver as a module, choose M here
diff --git a/drivers/media/dvb/dvb-usb/Makefile b/drivers/media/dvb/dvb-usb/Makefile
index 4e1d137..c5badf1 100644
--- a/drivers/media/dvb/dvb-usb/Makefile
+++ b/drivers/media/dvb/dvb-usb/Makefile
@@ -98,6 +98,13 @@ obj-$(CONFIG_DVB_USB_TECHNISAT_USB2) += dvb-usb-technisat-usb2.o
dvb-usb-af9035-objs = af9035.o
obj-$(CONFIG_DVB_USB_AF9035) += dvb-usb-af9035.o
 
+dvb-a867-objs := a867_af903x-core.o a867_af903x-devices.o a867_af903x-drv.o \
+			a867_af903x-fe.o a867_af903x-tuner.o a867_cmd.o a867_standard.o \
+			a867_demodulator.o a867_demodulatorextend.o a867_usb2impl.o \
+			a867_user.o a867_mxl5007t.o a867_Maxlinear_MXL5007.o a867_Afa_AF9007.o
+
+obj-$(CONFIG_DVB_A867) += dvb-a867.o
+
EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core/ -Idrivers/media/dvb/frontends/
# due to tuner-xc3028
EXTRA_CFLAGS += -Idrivers/media/common/tuners
(...omissis...)

and the "dvb-usb.h" replaced ... I've not replaced it !

I've extracted linux-3.1.0 kernel source, then I've applied (as bitbake does)
file://fix-proc-cputype.patch
file://dvb-usb-af9035.patch
file://dvb-usb-it9135.patch
file://tda18218-7mhz-lopass.patch
file://dvb-usb-a867.patch
and then changed a867 .[ch] files with mine. Then create a patch with "git diff" (now it's right)

During patch process I've see some patch "hunk" about it9135. I suppose that problem exists since many versions ago but it's not mine.
And I've see some "hunk" in other patch. All files are successfullt patched but with some "hunk" warning. No more.

Check my new patch, please.

Attached Files


STB: Clarke Tech ET9100
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #7 ambrosa

  • Senior Member
  • 161 posts

+35
Good

Posted 1 December 2011 - 21:51


Probably there is a mismatch somewhere about dvb-a867 and dvb_a867


no, depmod and modprobe don't mind, they allow - and _ to be used interchangably


I suppose some IPK "postinstall" script problem...
STB: Clarke Tech ET9100
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #8 ambrosa

  • Senior Member
  • 161 posts

+35
Good

Posted 2 December 2011 - 08:28

I've left untouched Makefile but in my opinion it's better than module dvb-a867 it will be renamed as "dvb-usb-a867" : this is more 'compliant' for dvb-usb devices.
In my Ubuntu version I compile as dvb-usb-a867 and it works.

But for this step there is need some changes in a867 IPK creation and other .patch applyed after dvb-usb-a867.patch can have problems.
I.e. my dvb-usb-rtl2832u.patch modify Makefile/KConfig after a867 and perhaps it can fail.

Edited by ambrosa, 2 December 2011 - 08:29.

STB: Clarke Tech ET9100
Mass storage: internal SATA-II HDD 1TB WD10EACS GreenPower 5400rpm
Mass storage: external USB pen drive 2GB
Firmware: OpenPLi kernel 3.x.x
Tuner A: AVL2108 (DVB-S2) HotBird 13E
Tuner B: AVL2108 (DVB-S2) HotBird 13E
Tuner C: AverMedia A867 (DVB-T HD) (AF9035 + MXL5007T)
TV: plasma PANASONIC GT30 fullHD
Audio: PCM through HDMI (no Dolby decoder)

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #9 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 2 December 2011 - 14:53

I agree: when I ported the patch from kernel 2.6.31 to kernel 3.0.3, I did not change the name of the driver, leaving it to "dvb-a867", but as this driver depends on "dvb-usb", in order to conform with other similar drivers, the correct name should be "dvb-usb-a867".

By the way, I tested your new version of the driver and it works perfectly, including the SNR bar in Enigma2.

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #10 gazza

  • Member
  • 1 posts

0
Neutral

Posted 8 December 2011 - 16:43

i've recompiled the kernel but i can't find the dvb-a867 module.
how can'i compile only the module?

Ivan

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #11 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 10 December 2011 - 15:30

In general, after you have setup the building environment for OpenPli, you can compile the kernel, including modules, with this commands:


cd path_to/build-et9x00/
source env.source
bitbake linux-etxx00-3.1.0 -c clean -f -D
bitbake linux-etxx00-3.1.0 -c build -f -D

When the last command finishes (it will take some time!), you will find the kernel sources along with the compiled kernel modules in the directory:

build-et9x00/tmp/work/et9x00-oe-linux/linux-etxx00-3.1.0-r6.9/linux-3.1.0/

and you can find the ipk packages containing the kernel modules into:

build-et9x00/tmp/deploy/ipk/et9x00/

Edited by Gennar1, 10 December 2011 - 15:30.


Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #12 MarsArtis

  • Member
  • 6 posts

0
Neutral

Posted 1 June 2012 - 12:07

anybody could please share the dvb-usb-a867_3.1.1.fw?

or which should be present in /lib/firmware to have the
a867 working?

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #13 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 1 June 2012 - 12:46

No firmware file is needed with the OpenPli a867 driver (as the firmware is embedded in the driver code).
I don't know where this dvb-usb-a867_3.1.1.fw file is mentioned, but for sure it's not an OpenPli file and it's not needed on OpenPli images.

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #14 MarsArtis

  • Member
  • 6 posts

0
Neutral

Posted 6 June 2012 - 09:30

Thx Gennar1, (I suppose you are italian as I am)
I was pointing to the .fw because i thought that the a867 like a835 needed .FW.
indeed, I was wondering why the kernel-module-dvb-usb-a867_3.1.1-r4.16_vuduo.ipk was not containing any .FW.

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #15 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 7 June 2012 - 14:59

As I said in the previous post, the firmware is embedded in the driver so no external package is needed.
The package your are quoting is not from OpenPli, but it should work just fine as the kernel is the same.
You may only need to create the proper /etc/modutils/ entry in order to load the driver at boot.

After installing the ipk package, try this:

echo dvb-usb-a867 > /etc/modutils/dvb-usb-a867
update-modules
reboot


Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #16 nabilosat

  • Member
  • 24 posts

0
Neutral

Posted 5 January 2013 - 14:55

hi I have a dm800se do I install the drivers and get my A867? thanks

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #17 antrabe

  • Senior Member
  • 199 posts

0
Neutral

Posted 4 March 2013 - 20:31

its possible to find kernel-module-dvb-usb-a835_3.1.1-r4.16_vuduo.ipk for af9035?

Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #18 rosario08

  • Member
  • 1 posts

0
Neutral

Posted 3 March 2014 - 18:04

hi I have a dm800se do I install the drivers and get my A867? thanks 
  •  


Re: AverMedia A867 "SKY Digital Key" new patch (and strange problem with PliHD) #19 alexwilmac

  • Member
  • 9 posts

0
Neutral

Posted 20 October 2016 - 13:25

Hello,
I've always used the Sky usb stick (blu led) under BlackHole, before with a VU+Duo2 and now with a Solo4K.

But it doesn't work with OpenPLI (and also OpenBH and some other images I've tried).

The strange is that, installing the driver A9035 by the image itself, it is somehow recognised but it does not tune any channel.

How can I install it as .ipk or somewhat under OpenPLI?

 




8 user(s) are reading this topic

0 members, 8 guests, 0 anonymous users