New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dvbloopback: Unknown symbol dvb_usercopy (err 0) #36
Comments
If you are using a 3.13 or up kernel, you need the newest kernel patch, that goes for v4l based sources too, no matter how old they are. Kind regards, |
I just updated my Ubuntu 14.10 to kernel 3.16.0-31-generic and have the same problem getting ffdecsawrapper to run. The configure script with kernel patching went ok, but when the startup script tries to load the dvbloopback module dmesg outputs "dvbloopback: no symbol version for dvb_usercopy" and then "dvbloopback: Unknown symbol dvb_usercopy (err -22)" I think I have the latest kernel patch, included when pulling from the git repository.. rm -r ffdecsawrapper.old Regards, |
Hi Magnus, The ability to omit the internal 'dvb_usercopy' was introduced in FFdecsawrapper in 2d0afc3 But I hesitated to actually make it effective. So now I did. The patch exports 'dvb_usercopy' , so we should not need an internal copy anymore. Well, as I announced, I can not test a minor part of the functionality anymore: decryption. |
@Erik-NA : your patch should look like this You'll have to find th proper arguement, like patch -p0 or p1 etc. |
It does not work. FFdecsawrapper starts, and also MythTV. But when checking status in MythWeb it says "Unable to connect to the master backend at 192.168.0.10:6543. Is it running?" which it normally does when ffdecsawrapper is not working. |
I also made my own patch, which turned out to be exactly as yours. |
Hi! I'm using a stock ubuntu kernel and have been running ffdecsawrapper successfully for at least a couple of years... The last successful kernel was 3.16.0-28-generic that I've been running since dec 21. Today I rebooted my mythtv-backend server with the new kernel 3.16.0-31-generic that I received with apt-get dist-upgrade the other day... I then initiated the normal procedure, updating ffdecsawrapper (including the kernel patching) as described in my last post... It has always worked perfectly and I was surprised that it did'nt today... Something must have happened in either the ffdecsawrapper codebase or the stock ubuntu kernel since december... I'll keep trying to find out what's wrong, but I wanted to give you some more information about my problems.. |
Some information about my DVB-adapter from dmesg output... [ 39.020618] cx88[0]: subsystem: 0070:6906, board: Hauppauge WinTV-HVR4000(Lite) DVB-S/S2 [card=69,autodetected], frontend(s): 1 /Magnus |
@mhlund : that's not an answer to my question |
I'm using the stock Ubuntu kernel in 14.10 and my card is supported in it. ... or maybe I don't understand your question? |
Dmesg output: |
@mhlund well, if you don't have to compile out of kernel drivers, I guess this is clear. I'll think of any thinko I've maybe made with latest patches. While I'm at it , you should be fine using the stable branch. @Erik-NA : shouldn't it show some firmware loading? Please also try the stable branch and pastebin the output of dmesg again. |
@bas-t Yep! That worked! Thanks! |
Ffdecsawrapper stable branch is working with the TBS-patch above! |
Hmm.. it should work with latest patches on master branch. Meanwhile: why does it work on all of my tests? |
Have tested again with trunk and mythTv will not start. No clues is displayed in dmesg either. |
Huh? more stuttering? So you had stuttering before, that should not happen at all. But you are right, it is not a FFdecsawrapper issue. |
Well, I don't think it's an issue with how mythbuntu packages mythtv that gives me the following errors when ffdecsawrapper tries to load the dvbloopback module into the kernel. dvbloopback: no symbol version for dvb_usercopy Mythbuntus kernel is the same as the ubuntu stock kernel so if there is a problem with the kernel in ubuntu it should be the same for all the different versions of *buntu... I'm still trying to figure out what makes the stable branch work but not the master... |
@mhlund No, mythtv packaging is indeed not the cause of this error. EXPORT_SYMBOL(dvb_usercopy); in dvbdev.c (or it is misplaced, malformed or something) It's the stuttering (and other issues I don't remember anymore) that are related to mythtv packaging. Mind you, mythtv packaging on Debian is even worse... |
Question: The mutex patch for 3.13 kernel differs from the 2.6.38 patch. Is this a consequence of changes in ffdecsawrapper? |
There is no such patch anymore, I don't support 2.x series kernels anymore. |
Well, that was only partial true. |
Anyhow, Unknown symbol dvb_usercopy (err 0) is just a matter of using proper patch. |
I agree, but as the patch is included in this distribution and the configure script claims to patch the kernel I think it indeed is an issue in the FFdecsawrapper code if the correct patch is not used in the process... |
@mhlund : as I stated, I'll try to find some time to review the kernel patching routine, it might need some updates. |
@mhlund : dit you recieve the following message at the end of the ./configure process: 'Your kernel is properly patched. You should reboot your machine now.' |
@mhlund : second question, what gets downloaded when you do: apt-get source linux-image- Hmm, damned markdown: the uname -r part should be surounded by backticks. |
@mhlund :I found the cause. Though the kernel gets the right patch, it does not change Module.symvers file. |
@mhlund : please test again, should be fixed now. |
@bas-t As far as I can see now it works after your latest patch... My kernel was already patched with the stable branch, but everything compiled ok, the modules were replaced in /lib/modules, and loaded after reboot. Thanks! :) |
You are welcome! |
Today I reinstalled using kernel 3.16.0-31-generic. Imported my old mythtvdatabase, compiled the TBS driver with the new patch and ffdecsawrapper master bransch. MythTV will not start. No error in dmesg. FFdecsawrapper log says: Mar 5 22:18:56.605 dvr: Starting thread on /dev/dvb/adapter7/dvr1
The thread scheduling parameters indicate:
policy = 0
priority = 0
Mar 5 22:18:56.605 : Listening on port 5456
sched_setscheduler: Operation not permitted
Mar 5 22:20:52.589 CAM(core.net): idle timeout, disconnected localhost:15000 I also removed the capture cards in the database and found out that Mythtvbackend setup freezes when configuring a new capture card, at the moment when I select the dvb loopback adapter. I cannot swear that this is related to the TBS driver or ffdecsawrapper because of my reinstallation, but I'm starting to run out of clues now ... |
@Erik-NA |
Then, It can be related to the TBS driver and probably something related to the changes in the kernel in combination with the new Mutex patch? |
@Erik-NA Just to rule out the mostly bogus closed source drivers from official tbs site, you could try the open source version from Luis Alves. That should work. But it still leaves you with the mythbuntu issues. However, you choose to run mythbuntu, so deal with it. |
Proper procedure is here: But start with a clean kernel. |
@Erik-NA I've been able to reproduce this just now. I did not yet investigate the cause, but I will. |
Cannot thank you enough! My family is not happy currently...either am I. |
Tested again with TBS drivers and ffdecsawrapper master branch. MythTv does not start, however: |
Upstream changes in the v4l media tree bring quite a few problems. From the looks of it, I've to completely revise the dvbloopback module to address these issues. But I don't use FFdecsawrapper myself anymore, so somone else will have to do that. However, you can try to build your driver in-tree. I coded support for it for a guy named Wessel, it is not tested yet. But I guess it will work. The configure script is written for Debian, so it should work for Ubuntu. Do (as root): git clone https://github.com/bas-t/saa716x-intree.git -b wessel && cd saa716x-intree This builds a patched vanilla 3.19 kernel, with a couple of TBS driver modules in the kernel tree. TBS 6984 is supported. It also installs any missing build deps. Hope it works for you. |
I have some comments to this. They may or may not be relevant. I have a TBS6680 adapter. I am running Debian Wheezy, and I am compiling my own kernel from www.kernel.org. At the moment, I think my only option for the kernel modules is using http://www.tbsdtv.com/download/document/common/linux-tbs-drivers_150130.tar.bz2 I first tested with kernel 3.14.35. Patched the TBS source with the v4l.patch from http://www.lursen.org/wiki/V4l_and_ffdecsawrapper#v4l When compiling ffdecsawrapper (from master) everything seems OK, but mythtvbackup seems to lock up. Mythfrontend cannot contact the backend. I am unable to stop mythbackend without using 'kill -9'. By trying different commits, I found that fcf186c is the last commit that works (some tips for anyone trying this: 11c4899 gives a compile error, 43120a0 compiles OK, but does not work. I also tested with kernel 3.19.1. To compile the TBS source I had to use this patch:
See: https://bitbucket.org/CrazyCat/linux-tbs-drivers/issue/25/build-error-with-kernel-319-error-struct I still had to use commit fcf186c to get it working. I also tested the stable branch, without luck. Hope this can be of some help to someone. |
Just updated both kernel and the TBS DVB S2 card v4l driver for TBS 6984 (http://www.tbsdtv.com/download/document/common/linux-tbs-drivers_150130.tar.bz2) patched with the linux-2.6.38-dvb-mutex patch.
When starting a fresh compiled (and github synced version) of ffdecsawrapper, the following error is displayed: " ERROR: could not insert 'dvbloopback': Unknown symbol in module, or unknown parameter (see dmesg)". Dmesg output: "dvbloopback: Unknown symbol dvb_usercopy (err 0)"
Running on Mythbuntu 14.04 using kernel 3.13.0-46-generic
The text was updated successfully, but these errors were encountered: