OK - will try to monitor the hauppauge engineer's repo...although you should just be able to sync with that for any updates.
If you want - I can compile with the other 4 patches he provided and test.
OK - will try to monitor the hauppauge engineer's repo...although you should just be able to sync with that for any updates.
If you want - I can compile with the other 4 patches he provided and test.
OK - changed the media_build to PKG_VERSION="2017-04-17-rpi" and compiled the LE 8 temp_mb-haup with only the add linux-229.1-em28xx-Hauppauge-DualHD-DVB-ATSC-second-tuner-suppor.patch - bingo - both ATSC tuners showing and working. I'm guessing the LE 9 issues are with other parts of the build.
Not sure if the other patches will help with stability or other issues - but I can confirm that the single patch will enable the two tuners of the wintv-dualHD on LE 8!! Thank you CvH for your help.
Hopefully this can be added in to the mainline of the LE builds so others can use this available usb dual tuner.
Looking at Ubuntu-media-tree-kernel-builder/patches/ubuntu-zesty-4.10.0 at master · b-rad-NDi/Ubuntu-media-tree-kernel-builder · GitHub shows the patch was originally designed for ubuntu 4.10.0 - but has a set of patches to media tree runing up to 2017-05-30-04-20 --- if we could possibly match that for LE 8 I can try to compile it again.
Also as an update - I compiled the master branch (LE 9) with the patch and it finished. It showed the 2 tuners in tvh, but they wouldn't actually tune to any services...so there may be some other patches needed. Of course, could just be alpha issues...so I'm happy to build and test the LE 8 version.
Thanks again CvH for your help!
One more update - it actually looks like Puffin Chunks adapted the ptach for the older kernel. If we try just this version hauppage_winTV_dualHD_DVB_PuffinChunks_4.9.y.diff - Google Drive on the LE 8 build - it may work.
------oops - that patch isn't formatted for our builds.
I think his issue is Jessie has the older linux kernel. It's the same error I received when trying to use the patches on LE 8. The media tree needs to be updated before the patches can be run on the older kernels.
CvH - I attempted to compile for the RPi2/3 off of your repo with the temp_mb_haup branch - but received the error
jm@jm-VirtualBox:/media/jm/Build/LibreELEC.tv$ PROJECT=RPi DEVICE=RPi2 ARCH=arm make
./scripts/image release
=================================================================================
ERROR: You need to specify a valid device for the RPi project
=================================================================================
Valid devices for project: RPi
- CHANGELOG CONTRIBUTING.md Makefile README.md config create_tar.sh distributions licenses packages projects scripts tools
Makefile:9: recipe for target 'release' failed
make: *** [release] Error 1
Display More
Do I need to compile from a different base and add in the hauppauge patch? Sorry if this is a basic question.
Adding that patch to media build did allow the second tuner to show up in tvh. However scanning muxes is not showing any service reception - so I'm wondering if I'll need to bring over the other patches - or so I need to update the tvheadend addon. The Leia build seems to be using HTS Tvheadend 4.1.2415 ~ LibreELEC Tvh-addon v9.0.109
Thanks CvH for pointing out the media-build patch location! I'll try to add in the other patches tomorrow.
The patch applies...
APPLY PATCH (common - default) packages/linux/patches/default/0001-em28xx-Hauppauge-DualHD-DVB-ATSC-second-tuner-suppor.patch
patching file drivers/media/usb/em28xx/em28xx-cards.c
Hunk #3 succeeded at 3221 (offset -3 lines).
Hunk #4 succeeded at 3415 (offset -3 lines).
Hunk #5 succeeded at 3456 (offset -3 lines).
Hunk #6 succeeded at 3563 (offset -3 lines).
Hunk #7 succeeded at 3657 (offset -3 lines).
Hunk #8 succeeded at 3738 (offset -5 lines).
Hunk #9 succeeded at 3835 (offset -5 lines).
patching file drivers/media/usb/em28xx/em28xx-core.c
patching file drivers/media/usb/em28xx/em28xx-dvb.c
patching file drivers/media/usb/em28xx/em28xx.h
Hunk #3 succeeded at 625 (offset 1 line).
Hunk #4 succeeded at 687 (offset 1 line).
Hunk #5 succeeded at 702 (offset 1 line).
Hunk #6 succeeded at 735 (offset 1 line).
Display More
But only one tuner shows up. I'm thinking something will need a patch in the media tree?? I'll try to dig in later tonight.
Tried it - recompiled with only the 0001 patch - same result. I'm guessing I will need to rework something in the media tree patch or the patch needs to be applied somewhere else during the build.
I'll keep experimenting and see what I can come up with. At least we're getting closer!
CvH I will test with the next build.
Also -I believe the engineer from Hauppauge will return next week and has asked to have the patch added to the the mainline. Not sure if there is additional work to be done on their end, but hopefully that happens in time for 4.12 - he may have missed that submission window.
OK - that explains it. It just means that something else needs to be patched in the LE version of the kernel.
I'm new to compiling and patching - so trying to sort out what needs patching is a bit of a challenge.
I can see that the patches were applied properly to the linux 4.11.4 build folder...perhaps someone with LE build knowledge can let me know if the patches actually need to be applied somewhere else - like the media_build-2017-04-17-rpi folder??
If you have an HDhomerun - the script gets the lineup/channel listing from the HDhomerun instead of using the schedules direct settings for lineup. That also means the channel filter option is not necessary as you have created your channel list with the hdromerun itself.
When you get a chandce - please try adding more days and mnake sure the error doesn't return.
Thanks!
Which version of LE are you running?
The log shows an error in trying to grab a specific station schedule...it seems that the date format got messed up - which is weird.
Nothing on the schedules direct site has indicated that they made a change. I will do some testing.
Can you provde the zip and name of the lineup that you are using so I can check the data?
leading_edjge - did you modify the patch at all? If so can you please share your modifications?
I compiled the latest Leia Rpi2/3 build last night (which includes kernel 4.11.5) with all 5 of the patches and I can still only see 1 front end. Perhaps adding the other 4 patches messed something else up?
Unfortunately the patches haven't been worked into linux mainstream kernel yet. The good news is hauppauge has finally started contributing to getting it working.
If you're planning to compile a build, you could try to take the 5 patches from here: Ubuntu-media-tree-kernel-builder/patches/ubuntu-zesty-4.10.0/extra at master · b-rad-NDi/Ubuntu-media-tree-kernel-builder · GitHub and see if they work in the rpi build. Place them in your http://libreelec.tv/projects/rpi2/patches/linux folder.
I'm guessing more will need to be changed than just those to make it work - but that's the test I would try -- I just don't have a build environment setup for rpi right now. Hopefully someone here ( crazycat ) will be able to provide more insight.
-- P.S. Happy to test a build if you compile it!
I'm actually going to try to compile it this way tonight and see what happens. Nothing like messing around in order to learn!
The question is what platform you want it working on. Both tuners work on my ubuntu installation (after using the ppa installation) - but only one works on my rpi install running a an LE Leia alpha version.
Nothing for amlogic until someone backports the patch as it is stuck on the old 3.1x kernel.
Thanks...my RPi3 running 9.0 alpha builds loads 1 ATSC tuner. 8.x builds do not show any tuners.
For AMLogic...we'll all just have to wait for an updated kernel...or someone to backport.
crazycat or CvH - Wondering if the work that has been done with this PPA installation for the WinTV-DualHD could be used to get the LE kernel updated for us to use the WinTV-DualHD on rpi or amlogic boxes?
The patch currently fixes the drivers/firmware/kernel on ubuntu builds.