sc0710 icon indicating copy to clipboard operation
sc0710 copied to clipboard

Installation help

Open joaoescribano opened this issue 2 years ago • 17 comments

Hello, I'm trying to install the driver on my machine but I got no success... as far I understood I should make the objects (which seems ok):

escribano@escribano:/media/dados/sources/sc0710$ make all
make -C /lib/modules/5.15.0-41-generic/build M=/media/dados/sources/sc0710 modules
make[1]: Entrando no diretório '/usr/src/linux-headers-5.15.0-41-generic'
  CC [M]  /media/dados/sources/sc0710/sc0710-cards.o
  CC [M]  /media/dados/sources/sc0710/sc0710-core.o
  CC [M]  /media/dados/sources/sc0710/sc0710-i2c.o
/media/dados/sources/sc0710/sc0710-i2c.c: In function ‘sc0710_i2c_read_hdmi_status’:
/media/dados/sources/sc0710/sc0710-i2c.c:177:6: warning: unused variable ‘i’ [-Wunused-variable]
  177 |  int i;
      |      ^
  CC [M]  /media/dados/sources/sc0710/sc0710-dma-channel.o
  CC [M]  /media/dados/sources/sc0710/sc0710-dma-channels.o
  CC [M]  /media/dados/sources/sc0710/sc0710-dma-chains.o
  CC [M]  /media/dados/sources/sc0710/sc0710-dma-chain.o
  CC [M]  /media/dados/sources/sc0710/sc0710-things-per-second.o
  CC [M]  /media/dados/sources/sc0710/sc0710-video.o
  CC [M]  /media/dados/sources/sc0710/sc0710-audio.o
  LD [M]  /media/dados/sources/sc0710/sc0710.o
  MODPOST /media/dados/sources/sc0710/Module.symvers
  CC [M]  /media/dados/sources/sc0710/sc0710.mod.o
  LD [M]  /media/dados/sources/sc0710/sc0710.ko
make[1]: Saindo do diretório '/usr/src/linux-headers-5.15.0-41-generic'

But when i try to "load" (as i understood it will load the module into my kernel) i got this message:

escribano@escribano:/media/dados/sources/sc0710$ sudo make load
make -C /lib/modules/5.15.0-41-generic/build M= modules
make[1]: Entering in directory '/usr/src/linux-headers-5.15.0-41-generic'
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'.  Stop.
make[1]: *** [arch/x86/Makefile:213: archheaders] Erro 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-41-generic'
make: *** [Makefile:14: all] Erro 2

When i try to run without sudo, i got a different error output:

escribano@escribano:/media/dados/sources/sc0710$ make load
make -C /lib/modules/5.15.0-41-generic/build M=/media/dados/sources/sc0710 modules
make[1]: Entering in directory '/usr/src/linux-headers-5.15.0-41-generic'
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-41-generic'
sudo dmesg -c >/dev/null
sudo cp /dev/null /var/log/debug
#sudo modprobe videobuf2-core
sudo modprobe videobuf2-common
sudo modprobe videodev
#sudo modprobe videobuf-dma-sg
sudo modprobe videobuf-vmalloc
sudo insmod ./sc0710.ko \
	thread_dma_poll_interval_ms=2 \
	dma_status=0
insmod: ERROR: could not insert module ./sc0710.ko: Invalid module format

I want to put my elgato to run on Linux and stream with my PS5, I'm also a developer with knowledge in disassembling, I could help if you could show me where to start to debug the card.

PS: When I try to compile, I got a few dependencies errors which I solved by running: sudo apt install flex bison v4l-utils

Thanks

joaoescribano avatar Jul 27 '22 02:07 joaoescribano

Hi!

Not a developer, but I installed the drivers by simply running "make" in the directory and then loaded them with "modprobe videobuf-core".

I am running Manjaro Linux 21.3 with kernel 5.10.129 and a RTX 3070. Heads up! There is currently an issue where it seems that the device gets lost or something when streaming with ffmpeg (after somewhere between 5-60 seconds) and the stream ends.

Other than that I am also willing to help, but mainly by testing as I am not to adept in C.

Cheers!

EDIT: I now realize that I might have run make load prior to this successfully or just run everything manually, so maybe my comment was not to much use for you. Sorry!

odecif avatar Jul 27 '22 10:07 odecif

I am also having trouble compiling the driver, my console output is as follows vinny@pop-os:~/sc0710$ sudo make all make -C /lib/modules/5.18.10-76051810-generic/build M= modules make[1]: Entering directory '/usr/src/linux-headers-5.18.10-76051810-generic' SYNC include/config/auto.conf.cmd HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/menu.o HOSTCC scripts/kconfig/parser.tab.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/util.o HOSTLD scripts/kconfig/conf make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop. make[1]: *** [arch/x86/Makefile:225: archheaders] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.18.10-76051810-generic' make: *** [Makefile:14: all] Error 2

Vinnyboiler avatar Jul 28 '22 15:07 Vinnyboiler

Getting the same error. "make load" does nothing and "make" followed by "sudo modprobe videobuf-core" does nothing either. The device just doesn't show up in OBS or on the system as a whole.

Alyxx88 avatar Aug 30 '22 17:08 Alyxx88

I have no issues compiling or installing on Ubuntu 22.04 (64bit).

stoth68000 avatar Aug 30 '22 17:08 stoth68000

escribano@escribano:/media/dados/sources/sc0710$ sudo make load make -C /lib/modules/5.15.0-41-generic/build M= modules make[1]: Entering in directory '/usr/src/linux-headers-5.15.0-41-generic' make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop. make[1]: *** [arch/x86/Makefile:213: archheaders] Erro 2 make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-41-generic' make: *** [Makefile:14: all] Erro 2

32bit system?

stoth68000 avatar Aug 30 '22 17:08 stoth68000

Getting the same error. "make load" does nothing and "make" followed by "sudo modprobe videobuf-core" does nothing either. The device just doesn't show up in OBS or on the system as a whole.

Ubuntu 22.04?

stoth68000 avatar Aug 30 '22 17:08 stoth68000

Linux Mint 21 Linux kernel 5.15.0-46-generic (x86-64)

It is a 64bit system

Alyxx88 avatar Aug 30 '22 18:08 Alyxx88

escribano@escribano:/media/dados/sources/sc0710$ sudo make load make -C /lib/modules/5.15.0-41-generic/build M= modules make[1]: Entering in directory '/usr/src/linux-headers-5.15.0-41-generic' make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop. make[1]: *** [arch/x86/Makefile:213: archheaders] Erro 2 make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-41-generic' make: *** [Makefile:14: all] Erro 2

32bit system?

No, it's a Ubuntu 20.04 64-bit.. somehow it used the 32-bit lib... dunno why.

joaoescribano avatar Aug 30 '22 20:08 joaoescribano

I have no issues compiling or installing on Ubuntu 22.04 (64bit).

I'll update my distro soon and try to do again.

joaoescribano avatar Aug 30 '22 20:08 joaoescribano

I am also on 64-bit Ubuntu 20.04 (pop_os) and getting the exact same error when running sudo make load

make -C /lib/modules/5.19.0-76051900-generic/build M= modules
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-76051900-generic'
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'.  Stop.
make[1]: *** [arch/x86/Makefile:232: archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-76051900-generic'
make: *** [Makefile:14: all] Error 2

tyleranton avatar Sep 03 '22 23:09 tyleranton

I'm having the same issue that @joaoescribano had when trying to compile the drivers for Ubuntu 22.10

tyllastarr avatar Nov 10 '22 09:11 tyllastarr

Greetings.

I am trying to install the package. I downloaded it via GitHub CLI and wanted to start the installation. I am on Kubuntu 22.10. Now I am facing two issues.

When I type sudo make load I get the folowing:

dekalipa@DeKalipa:~/sc0710$ sudo make load
make -C /lib/modules/5.19.0-38-generic/build M= modules
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-38-generic'
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'.  Stop.
make[1]: *** [arch/x86/Makefile:232: archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-38-generic'
make: *** [Makefile:14: all] Error 2

And when I type just make load I get this:

dekalipa@DeKalipa:~/sc0710$ make load
make -C /lib/modules/5.19.0-38-generic/build M=/home/dekalipa/sc0710 modules
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-38-generic'
  CC [M]  /home/dekalipa/sc0710/sc0710-dma-channel.o
/home/dekalipa/sc0710/sc0710-dma-channel.c: In function ‘sc0710_dma_channel_alloc’:
/home/dekalipa/sc0710/sc0710-dma-channel.c:428:22: error: implicit declaration of function ‘pci_alloc_consistent’ [-Werror=implicit-function-declaration]
  428 |         ch->pt_cpu = pci_alloc_consistent(dev->pci, ch->pt_size, &ch->pt_dma);
      |                      ^~~~~~~~~~~~~~~~~~~~
/home/dekalipa/sc0710/sc0710-dma-channel.c:428:20: warning: assignment to ‘u64 *’ {aka ‘long long unsigned int *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  428 |         ch->pt_cpu = pci_alloc_consistent(dev->pci, ch->pt_size, &ch->pt_dma);
      |                    ^
/home/dekalipa/sc0710/sc0710-dma-channel.c: In function ‘sc0710_dma_channel_resize’:
/home/dekalipa/sc0710/sc0710-dma-channel.c:532:20: warning: assignment to ‘u64 *’ {aka ‘long long unsigned int *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
  532 |         ch->pt_cpu = pci_alloc_consistent(dev->pci, ch->pt_size, &ch->pt_dma);
      |                    ^
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:257: /home/dekalipa/sc0710/sc0710-dma-channel.o] Error 1
make[1]: *** [Makefile:1850: /home/dekalipa/sc0710] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-38-generic'
make: *** [Makefile:14: all] Error 2

What is wrong with line 428? What needs to be done?

Please assist.

Thank you, have a wonderful day.

ThatOneDakiGuy avatar Mar 31 '23 10:03 ThatOneDakiGuy

Sorry, I don't offer personal support.

  • Steve

On Fri, Mar 31, 2023 at 6:32 AM ThatOneDakiGuy @.***> wrote:

Greetings.

I am trying to install the package. I downloaded it via GitHub CLI and wanted to start the installation. I am on Kubuntu 22.10. Now I am facing two issues.

When I type sudo make load I get the folowing:

@.***:~/sc0710$ sudo make load make -C /lib/modules/5.19.0-38-generic/build M= modules make[1]: Entering directory '/usr/src/linux-headers-5.19.0-38-generic' make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop. make[1]: *** [arch/x86/Makefile:232: archheaders] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-38-generic' make: *** [Makefile:14: all] Error 2

And when I type just make load I get this:

@.***:~/sc0710$ make load make -C /lib/modules/5.19.0-38-generic/build M=/home/dekalipa/sc0710 modules make[1]: Entering directory '/usr/src/linux-headers-5.19.0-38-generic' CC [M] /home/dekalipa/sc0710/sc0710-dma-channel.o /home/dekalipa/sc0710/sc0710-dma-channel.c: In function ‘sc0710_dma_channel_alloc’: /home/dekalipa/sc0710/sc0710-dma-channel.c:428:22: error: implicit declaration of function ‘pci_alloc_consistent’ [-Werror=implicit-function-declaration] 428 | ch->pt_cpu = pci_alloc_consistent(dev->pci, ch->pt_size, &ch->pt_dma); | ^~~~~~~~~~~~~~~~~~~~ /home/dekalipa/sc0710/sc0710-dma-channel.c:428:20: warning: assignment to ‘u64 *’ {aka ‘long long unsigned int *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 428 | ch->pt_cpu = pci_alloc_consistent(dev->pci, ch->pt_size, &ch->pt_dma); | ^ /home/dekalipa/sc0710/sc0710-dma-channel.c: In function ‘sc0710_dma_channel_resize’: /home/dekalipa/sc0710/sc0710-dma-channel.c:532:20: warning: assignment to ‘u64 *’ {aka ‘long long unsigned int *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 532 | ch->pt_cpu = pci_alloc_consistent(dev->pci, ch->pt_size, &ch->pt_dma); | ^ cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:257: /home/dekalipa/sc0710/sc0710-dma-channel.o] Error 1 make[1]: *** [Makefile:1850: /home/dekalipa/sc0710] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-38-generic' make: *** [Makefile:14: all] Error 2

What is wrong with line 428? What needs to be done?

Please assist.

Thank you, have a wonderful day.

— Reply to this email directly, view it on GitHub https://github.com/stoth68000/sc0710/issues/8#issuecomment-1491703334, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEEERBDIPCPZ4HMK3QZQH7TW62XEXANCNFSM54X5HXJA . You are receiving this because you commented.Message ID: @.***>

stoth68000 avatar Mar 31 '23 19:03 stoth68000

Greetings.

I see you have made some modifications. Thank you. They have fixed the issue, but now there is a new one.

dekalipa@DeKalipa:~/sc0710$ make load
make -C /lib/modules/5.19.0-38-generic/build M=/home/dekalipa/sc0710 modules
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-38-generic'
  CC [M]  /home/dekalipa/sc0710/sc0710-cards.o
  CC [M]  /home/dekalipa/sc0710/sc0710-core.o
  CC [M]  /home/dekalipa/sc0710/sc0710-i2c.o
  CC [M]  /home/dekalipa/sc0710/sc0710-dma-channel.o
  CC [M]  /home/dekalipa/sc0710/sc0710-dma-channels.o
  CC [M]  /home/dekalipa/sc0710/sc0710-dma-chains.o
  CC [M]  /home/dekalipa/sc0710/sc0710-dma-chain.o
  CC [M]  /home/dekalipa/sc0710/sc0710-things-per-second.o
  CC [M]  /home/dekalipa/sc0710/sc0710-video.o
  CC [M]  /home/dekalipa/sc0710/sc0710-audio.o
  LD [M]  /home/dekalipa/sc0710/sc0710.o
  MODPOST /home/dekalipa/sc0710/Module.symvers
  CC [M]  /home/dekalipa/sc0710/sc0710.mod.o
  LD [M]  /home/dekalipa/sc0710/sc0710.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-38-generic'
sudo dmesg -c >/dev/null
[sudo] password for dekalipa:       
sudo cp /dev/null /var/log/debug
#sudo modprobe videobuf2-core
sudo modprobe videobuf2-common
sudo modprobe videodev
#sudo modprobe videobuf-dma-sg
sudo modprobe videobuf-vmalloc
sudo insmod ./sc0710.ko \
        thread_dma_poll_interval_ms=2 \
        dma_status=0
insmod: ERROR: could not insert module ./sc0710.ko: Invalid module format
make: *** [Makefile:26: load] Error 1

I do not know what to do after that. I believe this is the last issue. Please help me get over this hurdle.

Please assist.

Thank you, have a wonderful day.

ThatOneDakiGuy avatar Apr 02 '23 12:04 ThatOneDakiGuy

As I mentioned to you privately, I don’t offer personal support.

  • Steve

On Sun, Apr 2, 2023 at 08:25 ThatOneDakiGuy @.***> wrote:

Greetings.

I see you have made some modifications. Thank you. They have fixed the issue, but now there is a new one.

@.***:~/sc0710$ make load make -C /lib/modules/5.19.0-38-generic/build M=/home/dekalipa/sc0710 modules make[1]: Entering directory '/usr/src/linux-headers-5.19.0-38-generic' CC [M] /home/dekalipa/sc0710/sc0710-cards.o CC [M] /home/dekalipa/sc0710/sc0710-core.o CC [M] /home/dekalipa/sc0710/sc0710-i2c.o CC [M] /home/dekalipa/sc0710/sc0710-dma-channel.o CC [M] /home/dekalipa/sc0710/sc0710-dma-channels.o CC [M] /home/dekalipa/sc0710/sc0710-dma-chains.o CC [M] /home/dekalipa/sc0710/sc0710-dma-chain.o CC [M] /home/dekalipa/sc0710/sc0710-things-per-second.o CC [M] /home/dekalipa/sc0710/sc0710-video.o CC [M] /home/dekalipa/sc0710/sc0710-audio.o LD [M] /home/dekalipa/sc0710/sc0710.o MODPOST /home/dekalipa/sc0710/Module.symvers CC [M] /home/dekalipa/sc0710/sc0710.mod.o LD [M] /home/dekalipa/sc0710/sc0710.ko make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-38-generic' sudo dmesg -c >/dev/null [sudo] password for dekalipa: sudo cp /dev/null /var/log/debug #sudo modprobe videobuf2-core sudo modprobe videobuf2-common sudo modprobe videodev #sudo modprobe videobuf-dma-sg sudo modprobe videobuf-vmalloc sudo insmod ./sc0710.ko
thread_dma_poll_interval_ms=2
dma_status=0 insmod: ERROR: could not insert module ./sc0710.ko: Invalid module format make: *** [Makefile:26: load] Error 1

I do not know what to do after that. I believe this is the last issue. Please help me get over this hurdle.

Please assist.

Thank you, have a wonderful day.

— Reply to this email directly, view it on GitHub https://github.com/stoth68000/sc0710/issues/8#issuecomment-1493318408, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEEERBF4UE254FTPCGII2Z3W7FV4HANCNFSM54X5HXJA . You are receiving this because you commented.Message ID: @.***>

-- Steven Toth - Kernel Labs http://www.kernellabs.com +1.646.355.8490

stoth68000 avatar Apr 02 '23 12:04 stoth68000

Hello, I'm trying to install the driver on my machine but I got no success... as far I understood I should make the objects (which seems ok):

escribano@escribano:/media/dados/sources/sc0710$ make all
make -C /lib/modules/5.15.0-41-generic/build M=/media/dados/sources/sc0710 modules
make[1]: Entrando no diretório '/usr/src/linux-headers-5.15.0-41-generic'
  CC [M]  /media/dados/sources/sc0710/sc0710-cards.o
  CC [M]  /media/dados/sources/sc0710/sc0710-core.o
  CC [M]  /media/dados/sources/sc0710/sc0710-i2c.o
/media/dados/sources/sc0710/sc0710-i2c.c: In function ‘sc0710_i2c_read_hdmi_status’:
/media/dados/sources/sc0710/sc0710-i2c.c:177:6: warning: unused variable ‘i’ [-Wunused-variable]
  177 |  int i;
      |      ^
  CC [M]  /media/dados/sources/sc0710/sc0710-dma-channel.o
  CC [M]  /media/dados/sources/sc0710/sc0710-dma-channels.o
  CC [M]  /media/dados/sources/sc0710/sc0710-dma-chains.o
  CC [M]  /media/dados/sources/sc0710/sc0710-dma-chain.o
  CC [M]  /media/dados/sources/sc0710/sc0710-things-per-second.o
  CC [M]  /media/dados/sources/sc0710/sc0710-video.o
  CC [M]  /media/dados/sources/sc0710/sc0710-audio.o
  LD [M]  /media/dados/sources/sc0710/sc0710.o
  MODPOST /media/dados/sources/sc0710/Module.symvers
  CC [M]  /media/dados/sources/sc0710/sc0710.mod.o
  LD [M]  /media/dados/sources/sc0710/sc0710.ko
make[1]: Saindo do diretório '/usr/src/linux-headers-5.15.0-41-generic'

But when i try to "load" (as i understood it will load the module into my kernel) i got this message:

escribano@escribano:/media/dados/sources/sc0710$ sudo make load
make -C /lib/modules/5.15.0-41-generic/build M= modules
make[1]: Entering in directory '/usr/src/linux-headers-5.15.0-41-generic'
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'.  Stop.
make[1]: *** [arch/x86/Makefile:213: archheaders] Erro 2
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-41-generic'
make: *** [Makefile:14: all] Erro 2

When i try to run without sudo, i got a different error output:

escribano@escribano:/media/dados/sources/sc0710$ make load
make -C /lib/modules/5.15.0-41-generic/build M=/media/dados/sources/sc0710 modules
make[1]: Entering in directory '/usr/src/linux-headers-5.15.0-41-generic'
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-41-generic'
sudo dmesg -c >/dev/null
sudo cp /dev/null /var/log/debug
#sudo modprobe videobuf2-core
sudo modprobe videobuf2-common
sudo modprobe videodev
#sudo modprobe videobuf-dma-sg
sudo modprobe videobuf-vmalloc
sudo insmod ./sc0710.ko \
	thread_dma_poll_interval_ms=2 \
	dma_status=0
insmod: ERROR: could not insert module ./sc0710.ko: Invalid module format

I want to put my elgato to run on Linux and stream with my PS5, I'm also a developer with knowledge in disassembling, I could help if you could show me where to start to debug the card.

PS: When I try to compile, I got a few dependencies errors which I solved by running: sudo apt install flex bison v4l-utils

Thanks

Greetings.

I am trying to get this thing running, but I am now facing this problem:

dekalipa@DeKalipa:~/sc0710$ make load
make -C /lib/modules/5.19.0-38-generic/build M=/home/dekalipa/sc0710 modules
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-38-generic'
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-38-generic'
sudo dmesg -c >/dev/null
[sudo] password for dekalipa:       
sudo cp /dev/null /var/log/debug
#sudo modprobe videobuf2-core
sudo modprobe videobuf2-common
sudo modprobe videodev
#sudo modprobe videobuf-dma-sg
sudo modprobe videobuf-vmalloc
sudo insmod ./sc0710.ko \
        thread_dma_poll_interval_ms=2 \
        dma_status=0
insmod: ERROR: could not insert module ./sc0710.ko: Invalid module format
make: *** [Makefile:26: load] Error 1

And this:

dekalipa@DeKalipa:~/sc0710$ sudo make all
[sudo] password for dekalipa:       
make -C /lib/modules/5.19.0-38-generic/build M= modules
make[1]: Entering directory '/usr/src/linux-headers-5.19.0-38-generic'
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'.  Stop.
make[1]: *** [arch/x86/Makefile:232: archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.19.0-38-generic'
make: *** [Makefile:14: all] Error 2
dekalipa@DeKalipa:~/sc0710$ 

I installed this sudo apt install flex bison v4l-utils and it is till not working.

Please assist.

Thank you, have a wonderful day.

ThatOneDakiGuy avatar Apr 02 '23 14:04 ThatOneDakiGuy

make -C /lib/modules/5.19.0-38-generic/build M= modules

Change "M=$(PWD)" occurrences in Makefile to "M=$(shell pwd)". (Although it is not necessary when running make instead of sudo make.)

insmod: ERROR: could not insert module ./sc0710.ko: Invalid module format

make sure the kernel version you are running is equal to the linux-headers version you are compiling the module against; also try reinstalling your kernel headers by removing/purging the headers package corresponding to your kernel version and installing it again.

mrehkopf avatar Jan 18 '24 10:01 mrehkopf