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: Unknown symbol in module #35

Open
AlexandreMeslin opened this issue Jan 7, 2021 · 5 comments

Comments

@AlexandreMeslin
Copy link

AlexandreMeslin commented Jan 7, 2021

Hi!
After cloning and making, I tried to insmod the driver, but I got the following error:

$ sudo insmod fl2000.ko 
insmod: ERROR: could not insert module fl2000.ko: Unknown symbol in module

Inspecting using dmesg, I got the following messages:

$ dmesg
[ 1166.265137] fl2000: Unknown symbol drm_kms_helper_poll_fini (err -2)
[ 1166.265294] fl2000: Unknown symbol drm_kms_helper_poll_init (err -2)
[ 1166.265326] fl2000: Unknown symbol drm_plane_enable_fb_damage_clips (err -2)
[ 1166.265356] fl2000: Unknown symbol drm_fb_helper_lastclose (err -2)
[ 1166.265447] fl2000: Unknown symbol drm_atomic_helper_shutdown (err -2)
[ 1166.265480] fl2000: Unknown symbol drm_gem_fb_simple_display_pipe_prepare_fb (err -2)
[ 1166.265723] fl2000: Unknown symbol drm_atomic_helper_commit (err -2)
[ 1166.265753] fl2000: Unknown symbol drm_atomic_helper_check (err -2)
[ 1166.265944] fl2000: Unknown symbol drm_atomic_helper_damage_merged (err -2)
[ 1166.265999] fl2000: Unknown symbol drm_gem_fb_create_with_dirty (err -2)
[ 1166.266140] fl2000: Unknown symbol drm_gem_fb_get_obj (err -2)
[ 1166.266270] fl2000: Unknown symbol drm_fbdev_generic_setup (err -2)
[ 1166.266304] fl2000: Unknown symbol drm_simple_display_pipe_init (err -2)
[ 1166.266396] fl2000: Unknown symbol drm_kms_helper_hotplug_event (err -2)

I'm using Ubuntu 20.04, GCC version 9.3.0, my adapter ID is 1d5c:2000, and my kernel version is 5.4.0-59-generic.

Can you help me, please?
Thanks!

@klogg
Copy link
Owner

klogg commented Mar 24, 2021

I think you need to insmod drm modules prior to using this driver. can you please check script scripts/startup.sh? This will solve your problem

@DMaxter
Copy link

DMaxter commented Apr 14, 2024

I'm hitting the same error, however only 3 symbols are not loaded: drm_fb_dma_get_gem_obj, drm_gem_dma_dumb_create and drm_gem_dma_prime_import_sg_table_vmap.

I'm on version 6.8.4, but these functions exist in this kernel. Also drm and drm_kms_helper are builtin, but I can't find these symbols in /proc/kallsyms

I have also enabled nvidia-drm since I have an NVIDIA GPU, but I am not sure it is interfering

@DMaxter
Copy link

DMaxter commented Apr 14, 2024

I was able to solve it by enabling module drm_dma_helper

@bredigian
Copy link

I was able to solve it by enabling module drm_dma_helper

Hi, how are you? I have a question. Were you able to load the kernel correctly after enabling that module? Because, I did that but it didn't work for me. What happened was that it tried to load it, the screen flashed, but it gave me an error in the terminal. And when I connected HDMI nothing happened. When trying to restart it gave an error like it couldn't restart and I had to do a forced shutdown. I have an Acer laptop with Intel integrated graphics and Nvidia dedicated graphics, and the linux kernel loaded is 6.5.0-35-generic.

@DMaxter
Copy link

DMaxter commented May 21, 2024

It worked fine for me, but still didn't manage to use my dock with this driver.

When I enabled drm_dma_helper, it just enabled and did nothing more

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