fl2000_drm icon indicating copy to clipboard operation
fl2000_drm copied to clipboard

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

Open AlexandreMeslin opened this issue 4 years ago • 7 comments

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!

AlexandreMeslin avatar Jan 07 '21 00:01 AlexandreMeslin

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

klogg avatar Mar 24 '21 14:03 klogg

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 avatar Apr 14 '24 13:04 DMaxter

I was able to solve it by enabling module drm_dma_helper

DMaxter avatar Apr 14 '24 14:04 DMaxter

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.

bredigian avatar May 21 '24 12:05 bredigian

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

DMaxter avatar May 21 '24 16:05 DMaxter