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

insmod: ERROR: could not insert module fl2000.ko: Invalid module format #4

Open
skrollocky opened this issue Feb 18, 2024 · 4 comments

Comments

@skrollocky
Copy link

Good afternoon I apologize for the translation, I don’t know English perfectly, so I’m writing through Google translator.

I use Kubuntu 23.04
Kernel version linux-headers-6.5.0-17-generic

I recently purchased an FL2000 adapter and tried to compile a driver for my kernel from source code. The build was successful without errors, but when adding the kernel module

insmod fl2000.ko ​​

an error occurred: insmod: ERROR: could not insert module fl2000.ko: Invalid module format

I also tried to build the driver from the source from the repository (https://github.com/FrescoLogic/FL2000)
Which also won’t lead to success
Please help in this situation, you can also contact me via telegram @Scrollocky, thanks in advance!

@skrollocky
Copy link
Author

lsusb
Bus 004 Device 002: ID 1d5c:2000 Fresco Logic FL2000/FL2000DX VGA/DVI/HDMI Adapter

@skrollocky
Copy link
Author

I downloaded the source and launched everything successfully, along the way I also installed the error Skipping generation BTF xxx. due to the unavailability of vmlinux, I solved it this way

successful installation of gnomes
cp /sys/kernel/btf/vmlinux /usr/lib/modules/`uname -r`/build/

@skrollocky
Copy link
Author

Now it remains to solve the issue in the constant screen measurement mode... is it possible to solve this problem somehow?

@ftoledo
Copy link

ftoledo commented Apr 13, 2024

hi @skrollocky i copy the vmlinux file and get another error:
(i'm building on debian 12 with backport 6.5 kernel)

ragnarok@ragnarok:~/src/fl2000_drm-rhgndf$ make
make CHECK="/usr/bin/sparse" -C /lib/modules/6.5.0-0.deb12.4-amd64/build M=/home/ragnarok/src/fl2000_drm-rhgndf modules
make[1]: se entra en el directorio '/usr/src/linux-headers-6.5.0-0.deb12.4-amd64'
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_drv.o
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_registers.o
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_interrupt.o
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_streaming.o
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_connector.o
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_i2c.o
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_drm.o
  LD [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000.o
  MODPOST /home/ragnarok/src/fl2000_drm-rhgndf/Module.symvers
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000.mod.o
  LD [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000.ko
  BTF [M] /home/ragnarok/src/fl2000_drm-rhgndf/fl2000.ko
/bin/sh: 1: ./tools/bpf/resolve_btfids/resolve_btfids: not found
make[3]: *** [/usr/src/linux-headers-6.5.0-0.deb12.4-common/scripts/Makefile.modfinal:63: /home/ragnarok/src/fl2000_drm-rhgndf/fl2000.ko] Error 127
make[3]: *** Se borra el archivo '/home/ragnarok/src/fl2000_drm-rhgndf/fl2000.ko'
make[2]: *** [/usr/src/linux-headers-6.5.0-0.deb12.4-common/Makefile:1977: modules] Error 2
make[1]: *** [/usr/src/linux-headers-6.5.0-0.deb12.4-common/Makefile:246: __sub-make] Error 2
make[1]: se sale del directorio '/usr/src/linux-headers-6.5.0-0.deb12.4-amd64'
make: *** [Makefile:18: modules] Error 2

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

2 participants