stoth68000 / sc0710

Linux driver for the Elgato 4k60 Pro Mk.2
Other
135 stars 18 forks source link

I cannot compile driver on linux kernel version 5.13.0-52 #7

Closed igorzg closed 2 years ago

igorzg commented 2 years ago

@stoth68000

make[1]: Entering directory '/usr/src/linux-headers-5.13.0-52-generic' CC [M] /home/igor/sc0710/sc0710-cards.o CC [M] /home/igor/sc0710/sc0710-core.o CC [M] /home/igor/sc0710/sc0710-i2c.o CC [M] /home/igor/sc0710/sc0710-dma-channel.o CC [M] /home/igor/sc0710/sc0710-dma-channels.o CC [M] /home/igor/sc0710/sc0710-dma-chains.o CC [M] /home/igor/sc0710/sc0710-dma-chain.o CC [M] /home/igor/sc0710/sc0710-things-per-second.o CC [M] /home/igor/sc0710/sc0710-video.o CC [M] /home/igor/sc0710/sc0710-audio.o LD [M] /home/igor/sc0710/sc0710.o MODPOST /home/igor/sc0710/Module.symvers CC [M] /home/igor/sc0710/sc0710.mod.o LD [M] /home/igor/sc0710/sc0710.ko BTF [M] /home/igor/sc0710/sc0710.ko /home/igor/sc0710/sc0710.ko due to unavailability of vmlinux make[1]: Leaving directory '/usr/src/linux-headers-5.13.0-52-generic'

stoth68000 commented 2 years ago

Check…. Does the sc0710.ko file exist on disk after you run make?

On Wed, Jul 6, 2022 at 07:04 Igor Ivanovic @.***> wrote:

make[1]: Entering directory '/usr/src/linux-headers-5.13.0-52-generic' CC [M] /home/igor/sc0710/sc0710-cards.o CC [M] /home/igor/sc0710/sc0710-core.o CC [M] /home/igor/sc0710/sc0710-i2c.o CC [M] /home/igor/sc0710/sc0710-dma-channel.o CC [M] /home/igor/sc0710/sc0710-dma-channels.o CC [M] /home/igor/sc0710/sc0710-dma-chains.o CC [M] /home/igor/sc0710/sc0710-dma-chain.o CC [M] /home/igor/sc0710/sc0710-things-per-second.o CC [M] /home/igor/sc0710/sc0710-video.o CC [M] /home/igor/sc0710/sc0710-audio.o LD [M] /home/igor/sc0710/sc0710.o MODPOST /home/igor/sc0710/Module.symvers CC [M] /home/igor/sc0710/sc0710.mod.o LD [M] /home/igor/sc0710/sc0710.ko BTF [M] /home/igor/sc0710/sc0710.ko /home/igor/sc0710/sc0710.ko due to unavailability of vmlinux make[1]: Leaving directory '/usr/src/linux-headers-5.13.0-52-generic'

— Reply to this email directly, view it on GitHub https://github.com/stoth68000/sc0710/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEEERBFMGNWJWP55XWBXT2DVSVR47ANCNFSM52ZLGM6Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

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

igorzg commented 2 years ago

When I try to insert module it's says: ' Invalid module format'

sudo make load
make -C /lib/modules/5.13.0-52-generic/build M=/home/igor/sc0710 modules
make[1]: Entering directory '/usr/src/linux-headers-5.13.0-52-generic'
  CC [M]  /home/igor/sc0710/sc0710-cards.o
  CC [M]  /home/igor/sc0710/sc0710-core.o
  CC [M]  /home/igor/sc0710/sc0710-i2c.o
  CC [M]  /home/igor/sc0710/sc0710-dma-channel.o
  CC [M]  /home/igor/sc0710/sc0710-dma-channels.o
  CC [M]  /home/igor/sc0710/sc0710-dma-chains.o
  CC [M]  /home/igor/sc0710/sc0710-dma-chain.o
  CC [M]  /home/igor/sc0710/sc0710-things-per-second.o
  CC [M]  /home/igor/sc0710/sc0710-video.o
  CC [M]  /home/igor/sc0710/sc0710-audio.o
  LD [M]  /home/igor/sc0710/sc0710.o
  MODPOST /home/igor/sc0710/Module.symvers
  CC [M]  /home/igor/sc0710/sc0710.mod.o
  LD [M]  /home/igor/sc0710/sc0710.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.13.0-52-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
make: *** [Makefile:27: load] Error 1
igorzg commented 2 years ago

@stoth68000 strace log

execve("/usr/sbin/modprobe", ["modprobe", "sc0710"], 0x7fff34e05728 /* 25 vars */) = 0
brk(NULL)                               = 0x55be0b62d000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffe487605a0) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=116327, ...}) = 0
mmap(NULL, 116327, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f7d8bd72000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libzstd.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@B\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=686160, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7d8bd70000
mmap(NULL, 688192, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f7d8bcc7000
mmap(0x7f7d8bccb000, 598016, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7f7d8bccb000
mmap(0x7f7d8bd5d000, 69632, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x96000) = 0x7f7d8bd5d000
mmap(0x7f7d8bd6e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa6000) = 0x7f7d8bd6e000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/liblzma.so.5", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3003\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=162264, ...}) = 0
mmap(NULL, 164104, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f7d8bc9e000
mprotect(0x7f7d8bca1000, 147456, PROT_NONE) = 0
mmap(0x7f7d8bca1000, 98304, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f7d8bca1000
mmap(0x7f7d8bcb9000, 45056, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7f7d8bcb9000
mmap(0x7f7d8bcc5000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7f7d8bcc5000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\220\7\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=2954080, ...}) = 0
mmap(NULL, 2973600, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f7d8b9c8000
mmap(0x7f7d8ba40000, 1683456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x78000) = 0x7f7d8ba40000
mmap(0x7f7d8bbdb000, 593920, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x213000) = 0x7f7d8bbdb000
mmap(0x7f7d8bc6c000, 188416, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2a3000) = 0x7f7d8bc6c000
mmap(0x7f7d8bc9a000, 16288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f7d8bc9a000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300A\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\30x\346\264ur\f|Q\226\236i\253-'o"..., 68, 880) = 68
fstat(3, {st_mode=S_IFREG|0755, st_size=2029592, ...}) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\30x\346\264ur\f|Q\226\236i\253-'o"..., 68, 880) = 68
mmap(NULL, 2037344, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f7d8b7d6000
mmap(0x7f7d8b7f8000, 1540096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x7f7d8b7f8000
mmap(0x7f7d8b970000, 319488, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19a000) = 0x7f7d8b970000
mmap(0x7f7d8b9be000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7f7d8b9be000
mmap(0x7f7d8b9c4000, 13920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f7d8b9c4000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220q\0\0\0\0\0\0"..., 832) = 832
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0{E6\364\34\332\245\210\204\10\350-\0106\343="..., 68, 824) = 68
fstat(3, {st_mode=S_IFREG|0755, st_size=157224, ...}) = 0
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0{E6\364\34\332\245\210\204\10\350-\0106\343="..., 68, 824) = 68
mmap(NULL, 140408, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f7d8b7b3000
mmap(0x7f7d8b7b9000, 69632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f7d8b7b9000
mmap(0x7f7d8b7ca000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f7d8b7ca000
mmap(0x7f7d8b7d0000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x7f7d8b7d0000
mmap(0x7f7d8b7d2000, 13432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f7d8b7d2000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \22\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=18848, ...}) = 0
mmap(NULL, 20752, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f7d8b7ad000
mmap(0x7f7d8b7ae000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f7d8b7ae000
mmap(0x7f7d8b7b0000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f7d8b7b0000
mmap(0x7f7d8b7b1000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f7d8b7b1000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7d8b7ab000
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7d8b7a8000
arch_prctl(ARCH_SET_FS, 0x7f7d8b7a8740) = 0
mprotect(0x7f7d8b9be000, 16384, PROT_READ) = 0
mprotect(0x7f7d8b7b1000, 4096, PROT_READ) = 0
mprotect(0x7f7d8b7d0000, 4096, PROT_READ) = 0
mprotect(0x7f7d8bc6c000, 180224, PROT_READ) = 0
mprotect(0x7f7d8bcc5000, 4096, PROT_READ) = 0
mprotect(0x7f7d8bd6e000, 4096, PROT_READ) = 0
mprotect(0x55be097c9000, 8192, PROT_READ) = 0
mprotect(0x7f7d8bdbc000, 4096, PROT_READ) = 0
munmap(0x7f7d8bd72000, 116327)          = 0
set_tid_address(0x7f7d8b7a8a10)         = 8535
set_robust_list(0x7f7d8b7a8a20, 24)     = 0
rt_sigaction(SIGRTMIN, {sa_handler=0x7f7d8b7b9bf0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f7d8b7c7420}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {sa_handler=0x7f7d8b7b9c90, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f7d8b7c7420}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
brk(NULL)                               = 0x55be0b62d000
brk(0x55be0b64e000)                     = 0x55be0b64e000
uname({sysname="Linux", nodename="k8zs", ...}) = 0
stat("/etc/modprobe.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/etc/modprobe.d", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents64(3, /* 16 entries */, 32768)  = 656
newfstatat(3, "blacklist-firewire.conf", {st_mode=S_IFREG|0644, st_size=210, ...}, 0) = 0
newfstatat(3, "alsa-base.conf", {st_mode=S_IFREG|0644, st_size=2507, ...}, 0) = 0
newfstatat(3, "iwlwifi.conf", {st_mode=S_IFREG|0644, st_size=347, ...}, 0) = 0
newfstatat(3, "blacklist-modem.conf", {st_mode=S_IFREG|0644, st_size=156, ...}, 0) = 0
newfstatat(3, "blacklist-rare-network.conf", {st_mode=S_IFREG|0644, st_size=583, ...}, 0) = 0
newfstatat(3, "blacklist-radeon.conf", {st_mode=S_IFREG|0644, st_size=17, ...}, 0) = 0
newfstatat(3, "blacklist.conf", {st_mode=S_IFREG|0644, st_size=1518, ...}, 0) = 0
newfstatat(3, "blacklist-framebuffer.conf", {st_mode=S_IFREG|0644, st_size=677, ...}, 0) = 0
newfstatat(3, "amd64-microcode-blacklist.conf", {st_mode=S_IFREG|0644, st_size=154, ...}, 0) = 0
newfstatat(3, "blacklist-ath_pci.conf", {st_mode=S_IFREG|0644, st_size=325, ...}, 0) = 0
newfstatat(3, "mdadm.conf", {st_mode=S_IFREG|0644, st_size=379, ...}, 0) = 0
newfstatat(3, "dkms.conf", {st_mode=S_IFREG|0644, st_size=127, ...}, 0) = 0
newfstatat(3, "intel-microcode-blacklist.conf", {st_mode=S_IFREG|0644, st_size=154, ...}, 0) = 0
newfstatat(3, "blacklist-oss.conf", {st_mode=S_IFREG|0644, st_size=1059, ...}, 0) = 0
getdents64(3, /* 0 entries */, 32768)   = 0
close(3)                                = 0
stat("/run/modprobe.d", 0x7ffe4875e1a0) = -1 ENOENT (No such file or directory)
stat("/lib/modprobe.d", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/lib/modprobe.d", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getdents64(3, /* 7 entries */, 32768)   = 296
newfstatat(3, "blacklist_linux-hwe-5.13_5.13.0-52-generic.conf", {st_mode=S_IFREG|0644, st_size=1572, ...}, 0) = 0
newfstatat(3, "blacklist_linux-hwe-5.13_5.13.0-30-generic.conf", {st_mode=S_IFREG|0644, st_size=1572, ...}, 0) = 0
newfstatat(3, "systemd.conf", {st_mode=S_IFREG|0644, st_size=765, ...}, 0) = 0
newfstatat(3, "aliases.conf", {st_mode=S_IFREG|0644, st_size=655, ...}, 0) = 0
newfstatat(3, "fbdev-blacklist.conf", {st_mode=S_IFREG|0644, st_size=390, ...}, 0) = 0
getdents64(3, /* 0 entries */, 32768)   = 0
close(3)                                = 0
openat(AT_FDCWD, "/lib/modprobe.d/aliases.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=655, ...}) = 0
read(3, "# These are the standard aliases"..., 4096) = 655
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/alsa-base.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=2507, ...}) = 0
read(3, "# autoloader aliases\ninstall sou"..., 4096) = 2507
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/amd64-microcode-blacklist.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=154, ...}) = 0
read(3, "# The microcode module attempts "..., 4096) = 154
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/blacklist-ath_pci.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=325, ...}) = 0
read(3, "# For some Atheros 5K RF MACs, t"..., 4096) = 325
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/blacklist-firewire.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=210, ...}) = 0
read(3, "# Select the legacy firewire sta"..., 4096) = 210
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/blacklist-framebuffer.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=677, ...}) = 0
read(3, "# Framebuffer drivers are genera"..., 4096) = 677
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/blacklist-modem.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=156, ...}) = 0
read(3, "# Uncomment these entries in ord"..., 4096) = 156
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/blacklist-oss.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=1059, ...}) = 0
read(3, "blacklist ac97\nblacklist ac97_co"..., 4096) = 1059
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/blacklist-radeon.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=17, ...}) = 0
read(3, "blacklist radeon\n", 4096)     = 17
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/blacklist-rare-network.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=583, ...}) = 0
read(3, "# Many less commonly used networ"..., 4096) = 583
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/blacklist.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=1518, ...}) = 0
read(3, "# This file lists those modules "..., 4096) = 1518
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/lib/modprobe.d/blacklist_linux-hwe-5.13_5.13.0-30-generic.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=1572, ...}) = 0
read(3, "# Kernel supplied blacklist for "..., 4096) = 1572
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/lib/modprobe.d/blacklist_linux-hwe-5.13_5.13.0-52-generic.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=1572, ...}) = 0
read(3, "# Kernel supplied blacklist for "..., 4096) = 1572
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/dkms.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=127, ...}) = 0
read(3, "# modprobe information used for "..., 4096) = 127
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/lib/modprobe.d/fbdev-blacklist.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=390, ...}) = 0
read(3, "# This file blacklists most old-"..., 4096) = 390
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/intel-microcode-blacklist.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=154, ...}) = 0
read(3, "# The microcode module attempts "..., 4096) = 154
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/iwlwifi.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=347, ...}) = 0
read(3, "# /etc/modprobe.d/iwlwifi.conf\n#"..., 4096) = 347
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/modprobe.d/mdadm.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=379, ...}) = 0
read(3, "# mdadm module configuration fil"..., 4096) = 379
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/lib/modules/5.13.0-52-generic/modules.softdep", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=1274, ...}) = 0
read(3, "# Soft dependencies extracted fr"..., 4096) = 1274
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/lib/modprobe.d/systemd.conf", O_RDONLY|O_CLOEXEC) = 3
fcntl(3, F_GETFL)                       = 0x8000 (flags O_RDONLY|O_LARGEFILE)
fstat(3, {st_mode=S_IFREG|0644, st_size=765, ...}) = 0
read(3, "#  SPDX-License-Identifier: LGPL"..., 4096) = 765
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/proc/cmdline", O_RDONLY|O_CLOEXEC) = 3
read(3, "BOOT_IMAGE=/boot/vmlinuz-5.13.0-"..., 4095) = 119
read(3, "", 3976)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/lib/modules/5.13.0-52-generic/modules.dep.bin", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=950763, ...}) = 0
mmap(NULL, 950763, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f7d8b6bf000
close(3)                                = 0
openat(AT_FDCWD, "/lib/modules/5.13.0-52-generic/modules.alias.bin", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1462451, ...}) = 0
mmap(NULL, 1462451, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f7d8b559000
close(3)                                = 0
openat(AT_FDCWD, "/lib/modules/5.13.0-52-generic/modules.symbols.bin", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=827782, ...}) = 0
mmap(NULL, 827782, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f7d8b48e000
close(3)                                = 0
openat(AT_FDCWD, "/lib/modules/5.13.0-52-generic/modules.builtin.alias.bin", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=25802, ...}) = 0
mmap(NULL, 25802, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f7d8bd88000
close(3)                                = 0
openat(AT_FDCWD, "/lib/modules/5.13.0-52-generic/modules.builtin.bin", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=12611, ...}) = 0
mmap(NULL, 12611, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f7d8bd84000
close(3)                                = 0
stat("/lib/modules/5.13.0-52-generic/kernel/drivers/media/v4l2-core/videobuf-vmalloc.ko", {st_mode=S_IFREG|0644, st_size=19961, ...}) = 0
stat("/lib/modules/5.13.0-52-generic/kernel/drivers/media/v4l2-core/videobuf-core.ko", {st_mode=S_IFREG|0644, st_size=53585, ...}) = 0
stat("/lib/modules/5.13.0-52-generic/kernel/drivers/media/v4l2-core/videodev.ko", {st_mode=S_IFREG|0644, st_size=474417, ...}) = 0
stat("/lib/modules/5.13.0-52-generic/kernel/drivers/media/mc/mc.ko", {st_mode=S_IFREG|0644, st_size=102633, ...}) = 0
stat("/lib/modules/5.13.0-52-generic/kernel/sound/core/snd-pcm.ko", {st_mode=S_IFREG|0644, st_size=214897, ...}) = 0
stat("/lib/modules/5.13.0-52-generic/kernel/sound/core/snd-timer.ko", {st_mode=S_IFREG|0644, st_size=71881, ...}) = 0
stat("/lib/modules/5.13.0-52-generic/kernel/sound/core/snd.ko", {st_mode=S_IFREG|0644, st_size=174025, ...}) = 0
stat("/lib/modules/5.13.0-52-generic/kernel/sound/soundcore.ko", {st_mode=S_IFREG|0644, st_size=22121, ...}) = 0
openat(AT_FDCWD, "/sys/module/sc0710/initstate", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/sys/module/sc0710", 0x7ffe4875e120) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/sys/module/soundcore/initstate", O_RDONLY|O_CLOEXEC) = 3
read(3, "live\n", 31)                   = 5
read(3, "", 26)                         = 0
close(3)                                = 0
openat(AT_FDCWD, "/sys/module/snd/initstate", O_RDONLY|O_CLOEXEC) = 3
read(3, "live\n", 31)                   = 5
read(3, "", 26)                         = 0
close(3)                                = 0
openat(AT_FDCWD, "/sys/module/snd_timer/initstate", O_RDONLY|O_CLOEXEC) = 3
read(3, "live\n", 31)                   = 5
read(3, "", 26)                         = 0
close(3)                                = 0
openat(AT_FDCWD, "/sys/module/snd_pcm/initstate", O_RDONLY|O_CLOEXEC) = 3
read(3, "live\n", 31)                   = 5
read(3, "", 26)                         = 0
close(3)                                = 0
openat(AT_FDCWD, "/sys/module/mc/initstate", O_RDONLY|O_CLOEXEC) = 3
read(3, "live\n", 31)                   = 5
read(3, "", 26)                         = 0
close(3)                                = 0
openat(AT_FDCWD, "/sys/module/videodev/initstate", O_RDONLY|O_CLOEXEC) = 3
read(3, "live\n", 31)                   = 5
read(3, "", 26)                         = 0
close(3)                                = 0
openat(AT_FDCWD, "/sys/module/videobuf_core/initstate", O_RDONLY|O_CLOEXEC) = 3
read(3, "live\n", 31)                   = 5
read(3, "", 26)                         = 0
close(3)                                = 0
openat(AT_FDCWD, "/sys/module/videobuf_vmalloc/initstate", O_RDONLY|O_CLOEXEC) = 3
read(3, "live\n", 31)                   = 5
read(3, "", 26)                         = 0
close(3)                                = 0
openat(AT_FDCWD, "/sys/module/sc0710/initstate", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/sys/module/sc0710", 0x7ffe4875e120) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/modules/5.13.0-52-generic/kernel/drivers/pci/sc0710.ko", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1", 6)               = 6
lseek(3, 0, SEEK_SET)                   = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=4291264, ...}) = 0
mmap(NULL, 4291264, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f7d8b076000
finit_module(3, "", 0)                  = -1 ENOEXEC (Exec format error)
write(2, "modprobe: ERROR: could not inser"..., 62modprobe: ERROR: could not insert 'sc0710': Exec format error
) = 62
munmap(0x7f7d8b076000, 4291264)         = 0
close(3)                                = 0
munmap(0x7f7d8b6bf000, 950763)          = 0
munmap(0x7f7d8b559000, 1462451)         = 0
munmap(0x7f7d8b48e000, 827782)          = 0
munmap(0x7f7d8bd88000, 25802)           = 0
munmap(0x7f7d8bd84000, 12611)           = 0
exit_group(1)                           = ?
+++ exited with 1 +++
igorzg commented 2 years ago

I've manage to install everything correctly:

sc0710                 49152  11
videobuf_vmalloc       16384  1 sc0710
videobuf_core          32768  2 sc0710,videobuf_vmalloc
videodev              249856  11 sc0710
snd_pcm               114688  7 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,sc0710,snd_hda_codec,snd_hda_core
snd                    94208  27 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,sc0710,snd_usbmidi_lib,snd_hda_codec,snd_timer,snd_pcm,snd_rawmidi
stoth68000 commented 2 years ago

Great. I don’t think it’s been tested with OBS. Let me know how it goes.

On Wed, Jul 6, 2022 at 10:52 Igor Ivanovic @.***> wrote:

I've manage to install everything correctly:

sc0710 49152 11 videobuf_vmalloc 16384 1 sc0710 videobuf_core 32768 2 sc0710,videobuf_vmalloc videodev 249856 11 sc0710 snd_pcm 114688 7 snd_hda_codec_hdmi,snd_hda_intel,snd_usb_audio,sc0710,snd_hda_codec,snd_hda_core snd 94208 27 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_usb_audio,sc0710,snd_usbmidi_lib,snd_hda_codec,snd_timer,snd_pcm,snd_rawmidi

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

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

stoth68000 commented 2 years ago

You'd need to debug that. Start by running duso dmesg and see what messages are in the kernel log. Start debugging from there.

On Wed, Jul 6, 2022 at 8:23 AM Igor Ivanovic @.***> wrote:

When I try to insert module it's says: ' Invalid module format'

sudo make load make -C /lib/modules/5.13.0-52-generic/build M=/home/igor/sc0710 modules make[1]: Entering directory '/usr/src/linux-headers-5.13.0-52-generic' CC [M] /home/igor/sc0710/sc0710-cards.o CC [M] /home/igor/sc0710/sc0710-core.o CC [M] /home/igor/sc0710/sc0710-i2c.o CC [M] /home/igor/sc0710/sc0710-dma-channel.o CC [M] /home/igor/sc0710/sc0710-dma-channels.o CC [M] /home/igor/sc0710/sc0710-dma-chains.o CC [M] /home/igor/sc0710/sc0710-dma-chain.o CC [M] /home/igor/sc0710/sc0710-things-per-second.o CC [M] /home/igor/sc0710/sc0710-video.o CC [M] /home/igor/sc0710/sc0710-audio.o LD [M] /home/igor/sc0710/sc0710.o MODPOST /home/igor/sc0710/Module.symvers CC [M] /home/igor/sc0710/sc0710.mod.o LD [M] /home/igor/sc0710/sc0710.ko make[1]: Leaving directory '/usr/src/linux-headers-5.13.0-52-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 make: *** [Makefile:27: load] Error 1

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

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