[Plugin] Linuxserver.io - Unraid DVB


Recommended Posts

1 minute ago, CHBMB said:

cx23885 present in the release? I'm afk at the moment so can't check.

@CHBMB Yeah the driver is there:

root@USS-Enterprise:~# find /lib/modules/4.12.14-unRAID | grep cx23885
/lib/modules/4.12.14-unRAID/kernel/drivers/media/pci/cx23885
/lib/modules/4.12.14-unRAID/kernel/drivers/media/pci/cx23885/altera-ci.ko.xz
/lib/modules/4.12.14-unRAID/kernel/drivers/media/pci/cx23885/cx23885.ko.xz

Just throws a dirty error when trying to load it

Link to comment
4 minutes ago, CHBMB said:

Problem is Hauppage only explicitly support Ubuntu, not even sure where to report an error.

@CHBMB I did find this: https://patchwork.kernel.org/patch/9717037/
Unsure if it is related, the videobuf2_memops errors are exactly the same, So I wonder if the solution they suggest would work (Enable VB2).

Am happy to test if you want to provide me a test build

Edited by ProGEEK
Link to comment

Any chance I can get you on board with this then?  I'm pretty time poor at the moment, and debugging cards that I don't own is a major pain in the ass.

 

Compiling the kernel for the LibreELEC build involves two scripts.

 

1. https://github.com/CHBMB/Unraid-DVB/blob/master/build_scripts/kernel-compile-module.sh

2. https://github.com/CHBMB/Unraid-DVB/blob/master/build_scripts/libreelec-module.sh

 

Now when you look at them please bear in mind I don't actually work with Linux/computers at all.  So go easy on me!

 

 

  • Like 1
Link to comment
6 minutes ago, CHBMB said:

Packages are pulled from Slackware current, so shouldn't be out of date.

the FILE_LIST my build seems to be pulling is out of date (Must be a mirror out of sync)
I managed to get a build done, but it caused my server to hose itself - Parity drive went nuts - Do you having this running in a test env for your builds? e.g. a test/dev version of unraid or do you build these on your live server ?

Edited by ProGEEK
Link to comment
6 hours ago, CHBMB said:

@ProGEEK & @Zan Try replacing bzmodules and bzfirmware of the current LibreELEC rc9f release with the ones in this zip file and reboot.  See if that fixes the Hauppage issue.

 

No luck,

 

Still getting the modprobe cx23885 errors from before.

 

I'll try to build it as well, using your script @CHBMB, and just step through the media_build part to see what Mauro and Matthias are referring to in this https://patchwork.kernel.org/patch/9717037/

Might take me a few days, so I'll let you know how I go then.

Link to comment
On 9/25/2017 at 9:09 AM, Zan said:

 

No luck,

 

Still getting the modprobe cx23885 errors from before.

 

I'll try to build it as well, using your script @CHBMB, and just step through the media_build part to see what Mauro and Matthias are referring to in this https://patchwork.kernel.org/patch/9717037/

Might take me a few days, so I'll let you know how I go then.

I just can't figure it out. Have tried a few things including deleting of the compressed modules from the original kernel compile of kernel-compile-module.sh, as per https://www.linuxtv.org/wiki/index.php/How_to_Obtain,_Build_and_Install_V4L-DVB_Device_Drivers

 

and still no luck.

 

@ProGEEK, my process was to create a stock 6-4-0-rc9f USB stick using the unraid USB creator tool (https://forums.lime-technology.com/topic/59025-unraid-usb-creator-tool-version-01-beta/), then just ran the following steps:

mkdir /unraid-dvb
cd /unraid-dvb
wget https://raw.githubusercontent.com/CHBMB/Unraid-DVB/master/user.scripts/scripts/unraid-dvb/script .
sed -i -e 's/mnt\/disk1\//unraid-/g' script
chmod +x script
./script
sed '/libre/d' /unraid-dvb/build.sh | sed '/tbs-os/d' | sed '/dd-module/d' | sed '/upload/d' | sed '$ s/&& \//' > /unraid-dvb/build-new.sh
chmod +x /unraid-dvb/build-new.sh
#Remove compressed modules as per https://www.linuxtv.org/wiki/index.php/How_to_Obtain,_Build_and_Install_V4L-DVB_Device_Drivers
for file in `find /lib/modules -name "*.ko"`; do if [[ -e $file.xz ]]; then rm $file.xz; fi; done
/unraid-dvb/media-build-2017-09-20/make reload
/unraid-dvb/media-build-2017-09-20/depmod -a
rm /unraid-dvb/6-4-0-rc9f/tbs-crazy-dvbst/bzmodules
mksquashfs /lib/modules/4.12.14-unRAID/ /unraid-dvb/6-4-0-rc9f/tbs-crazy-dvbst/bzmodules -keep-as-directory -noappend

 

Link to comment
38 minutes ago, CHBMB said:

Ok guys, keep at it, I'm also chatting to cvh over at libreelec about this and he's been helpful, and there's something else we can try, but I'm struggling a bit with free time at the moment but give me a week or so and hopefully I'll get a chance.

My Theory is that the compiled modules cannot find the symbols needed that are compiled into the kernel.

These USUALLY live at /boot/System.map-$(uname -r)
https://en.wikipedia.org/wiki/System.map#Filesystem_location

I am testing a build by building the kernel, trying to load the module (With the System.map file missing) then im gonna move this file into position and see if there is a difference.

I'm near the end of the build so will report back in an hour or so

EDIT: Nope, No-go. As far as I can tell, FRAME_VECTOR isnt being included in the kernel, and im unsure why.
 

root@Tower:/mnt/user/UnRAID/kernel# cat /proc/kallsyms | grep frame_vector_create
root@Tower:/mnt/user/UnRAID/kernel#

Run the same on my laptop:

[rdavies@USS-Stargazer build]$ cat /proc/kallsyms | grep frame_vector_create
ffffffff86223780 T frame_vector_create
[rdavies@USS-Stargazer build]$

So need to work out why this isnt being included in the build when it is specified in the config

Edited by ProGEEK
Link to comment
  • Squid locked this topic
Guest
This topic is now closed to further replies.