compile ""Shared Object" / .so-file from kernel sources / mgag200_dri.so missing

Welches Modul/Treiber für welche Hardware, Kernel compilieren...
Antworten
Benutzeravatar
ellocco
Beiträge: 24
Registriert: 10.01.2025 14:05:15

compile ""Shared Object" / .so-file from kernel sources / mgag200_dri.so missing

Beitrag von ellocco » 27.01.2025 13:30:53

I failed to find the file "mgag200_dri.so". What I found instead was: mgag200_drv.c and mgag200_drv.h.

Now I tried the following command in the kernel-sources root-directory:

Code: Alles auswählen

make clean
make CFLAGS='-fPIC'  modules KBUILD_EXTMOD=/usr/src/linux-source-6.1/drivers/gpu/drm/mgag200
After this driver compilation I found as well: mgag200_drv.o.
In the web I found the following command to compile a Shared-Object-file /*.so:

Code: Alles auswählen

cd /usr/src/linux-source-6.1/drivers/gpu/drm/mgag200
gcc -shared -o mgag200_dri.so mgag200_drv.o
But the output is frustrating:

Code: Alles auswählen

/usr/bin/ld: mgag200_drv.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: failed to set dynamic section sizes: bad value
Is there a chance to compile Shared-Object-file from the kernel sources?

Benutzeravatar
MSfree
Beiträge: 11738
Registriert: 25.09.2007 19:59:30

Re: compile ""Shared Object" / .so-file from kernel sources / mgag200_dri.so missing

Beitrag von MSfree » 27.01.2025 13:55:40

Warum postest du auf englisch? Früher konntest du mal deutsch. :wink:

Wozu glaubst du diese Datei benötigen zu müssen? Der standard Debiankernel bringt Graphiktreiber für die Matrox G200 bereits mit, die nennen sich allerdings mgag200.ko, also (shared) Kernel Objects.

Benutzeravatar
ellocco
Beiträge: 24
Registriert: 10.01.2025 14:05:15

Re: compile ""Shared Object" / .so-file from kernel sources / mgag200_dri.so missing

Beitrag von ellocco » 27.01.2025 16:53:29

Danke der Nachfrage! - Bei folgendem Programmaufruf:

Code: Alles auswählen

sudo -E QTWEBENGINE_DISABLE_SANDBOX=1 QT_QPA_PLATFORM=eglfs /usr/bin/nmapsi4
kommt diese Fehlermeldung:

Code: Alles auswählen

MESA-LOADER: failed to open mgag200: /usr/lib/dri/mgag200_dri.so

Antworten