Skip to content
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

Can't load drivers #5

Open
kotuk opened this issue Aug 11, 2018 · 9 comments
Open

Can't load drivers #5

kotuk opened this issue Aug 11, 2018 · 9 comments

Comments

@kotuk
Copy link

kotuk commented Aug 11, 2018

./load
modprobe: ERROR: could not insert 'videobuf2_v4l2': Invalid argument
modprobe: ERROR: could not insert 'videobuf2_v4l2': Invalid argument
insmod: ERROR: could not insert module ntv2video.ko: Unknown symbol in module

Linux UbuntuServer 4.4.0-93-generic #116~14.04.1-Ubuntu SMP Mon Aug 14 16:07:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

@davids635
Copy link
Contributor

Hi -

Unless you are logged in as root you must "sudo ./load". If this does not work you might try installing v4l-utils and try again.

Dave

@chris-ritsen
Copy link

I'm on arch linux. I was getting a similar error (videobuf2-core missing), but it seems to be included as videobuf2-common on this distro. I'm not sure about this though.

@kotuk
Copy link
Author

kotuk commented Aug 14, 2018

v4l-utils installed, to run sudo ./load but still same error.

before was videobuf2-core missing, but afrer reinstalling TBS drivers i see that error:
modprobe: ERROR: could not insert 'videobuf2_v4l2': Invalid argument
modprobe: ERROR: could not insert 'videobuf2_v4l2': Invalid argument
insmod: ERROR: could not insert module ntv2video.ko: Unknown symbol in module

@chris-ritsen
Copy link

chris-ritsen commented Apr 4, 2019

Linux www 5.0.5-arch1-1-ARCH #1 SMP PREEMPT Wed Mar 27 17:53:10 UTC 2019 x86_64 GNU/Linux
sudo ./load
insmod: ERROR: could not insert module ntv2video.ko: Unknown symbol in module

I'm also getting build errors related to the following lines:

ntv2_params.c
do_gettimeofday(&tv);

ntv2_v4l2ops.c
.vidioc_cropcap = ntv2_cropcap,

@davids635
Copy link
Contributor

Hi -

Thanks for reporting this. I will look into it as soon as I have a system with a 5.0 kernel.

Dave

@davids635
Copy link
Contributor

I have update the driver to fix the build errors.

@chris-ritsen
Copy link

chris-ritsen commented May 18, 2019

Working on 5.1.2 also. On Arch Linux, I'm using these modifications to the load script:

-/sbin/modprobe videobuf2-core
+/sbin/modprobe videobuf-vmalloc
+/sbin/modprobe videobuf2-common
+/sbin/modprobe videobuf2-dma-contig
+/sbin/modprobe videobuf2-dma-sg
+/sbin/modprobe videobuf2-dvb
+/sbin/modprobe videobuf2-memops
+/sbin/modprobe videobuf2-v4l2

I doubt all of those are required; I basically included anything related to videobuf2 until it worked. It probably only needs videobuf2-common.

@chris-ritsen
Copy link

No longer working for me on Arch Linux 5.4.13. Fails while loading the driver:
https://gist.github.com/chris-ritsen/79686bc1d99350cb34f221bd2be23db1

@chris-ritsen
Copy link

chris-ritsen commented Feb 11, 2020

Hi. Looks like you have some videobuf-* modules linked in which will not work. The driver requires videobuf2-*. It appears the videobuf2-core module name has been changed to videobuf2-common. I have fixed the "make load" to load the correct module. This works for me in 5.3. Let me know if it works for you. Thanks.

Can you try on 5.4? I don't think I had ever had any problems on 5.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants