Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trident GPU Drivers - Error Relocating trident_drv.so
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
MajorJalepino
n00b
n00b


Joined: 26 Jul 2022
Posts: 34

PostPosted: Thu Jul 11, 2024 9:31 am    Post subject: Trident GPU Drivers - Error Relocating trident_drv.so Reply with quote

Hi all,

I've got my base install on my Thinkpad R30 working (8 days @world emerge btw) and I've hit a roadblock getting Trident GPU drivers to work with xorg.

The drivers are no longer maintained and they have been out of Gentoo's repo since 2017 I think.

Link to driver's Gitlab: https://gitlab.freedesktop.org/xorg/driver/xf86-video-trident

Link to Wiki discussion about how to install, these are the steps I've followed: https://wiki.gentoo.org/wiki/Talk:Trident

I can confirm the driver modules are in the correct folder.

When I run startx I get this message:
Code:
$ cat ~/.local/share/xorg/Xorg.0.log
[179838.586]
X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[179838.594] Current Operating System: Linux R30 6.6.30-gentoo #3 PREEMPT_DYNAMIC Wed Jun 26 13:33:00 UTC 2024 i686
[179838.594] Kernel command line: BOOT_IMAGE=/vmlinuz-6.6.30-gentoo root=UUID=d2e18627-5e1e-459c-8b90-2af58ba07825 ro
[179838.600] 
[179838.601] Current version of pixman: 0.43.4
[179838.604]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[179838.606] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[179838.615] (==) Log file: "/home/thinker/.local/share/xorg/Xorg.0.log", Time: Mon Jul  8 22:50:12 2024
[179838.618] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[179838.619] (==) No Layout section.  Using the first Screen section.
[179838.619] (==) No screen section available. Using defaults.
[179838.619] (**) |-->Screen "Default Screen Section" (0)
[179838.619] (**) |   |-->Monitor "<default monitor>"
[179838.621] (==) No monitor specified for screen "Default Screen Section".
   Using a default monitor configuration.
[179838.622] (**) Allowing byte-swapped clients
[179838.622] (==) Automatically adding devices
[179838.622] (==) Automatically enabling devices
[179838.622] (==) Automatically adding GPU devices
[179838.622] (==) Automatically binding GPU devices
[179838.622] (==) Max clients allowed: 256, resource mask: 0x1fffff
[179838.622] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/misc".
[179838.622]    Entry deleted from font path.
[179838.622]    (Run 'mkfontdir' on "/usr/share/fonts/misc").
[179838.622] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[179838.622]    Entry deleted from font path.
[179838.622] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[179838.622]    Entry deleted from font path.
[179838.622] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[179838.622]    Entry deleted from font path.
[179838.622] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi".
[179838.622]    Entry deleted from font path.
[179838.622]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi").
[179838.622] (==) FontPath set to:
   /usr/share/fonts/75dpi
[179838.622] (==) ModulePath set to "/usr/lib/xorg/modules"
[179838.622] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[179838.622] (II) Module ABI versions:
[179838.622]    X.Org ANSI C Emulation: 0.4
[179838.622]    X.Org Video Driver: 25.2
[179838.622]    X.Org XInput driver : 24.4
[179838.622]    X.Org Server Extension : 10.0
[179838.627] (++) using VT number 1

[179838.639] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_32
[179838.648] (--) PCI:*(1@0:0:0) 1023:8620:1014:0502 rev 93, Mem @ 0x80800000/8388608, 0x80500000/131072, 0x81000000/8388608, BIOS @ 0x????????/131072
[179838.648] (II) LoadModule: "glx"
[179838.650] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[179838.660] (II) Module glx: vendor="X.Org Foundation"
[179838.660]    compiled for 1.21.1.13, module version = 1.0.0
[179838.660]    ABI class: X.Org Server Extension, version 10.0
[179838.660] (==) Matched trident as autoconfigured driver 0
[179838.660] (==) Matched modesetting as autoconfigured driver 1
[179838.660] (==) Matched fbdev as autoconfigured driver 2
[179838.660] (==) Matched vesa as autoconfigured driver 3
[179838.660] (==) Assigned the driver to the xf86ConfigLayout
[179838.660] (II) LoadModule: "trident"
[179838.660] (II) Loading /usr/lib/xorg/modules/drivers/trident_drv.so
[179838.662] (EE) Failed to load /usr/lib/xorg/modules/drivers/trident_drv.so: Error relocating /usr/lib/xorg/modules/drivers/trident_drv.so: exaGetPixmapOffset: symbol not found
[179838.662] (EE) Failed to load module "trident" (loader failed, 0)
[179838.662] (II) LoadModule: "modesetting"
[179838.663] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[179838.666] (II) Module modesetting: vendor="X.Org Foundation"
[179838.666]    compiled for 1.21.1.13, module version = 1.21.1
[179838.666]    Module class: X.Org Video Driver
[179838.666]    ABI class: X.Org Video Driver, version 25.2
[179838.666] (II) LoadModule: "fbdev"
[179838.669] (WW) Warning, couldn't open module fbdev
[179838.669] (EE) Failed to load module "fbdev" (module does not exist, 0)
[179838.669] (II) LoadModule: "vesa"
[179838.669] (WW) Warning, couldn't open module vesa
[179838.669] (EE) Failed to load module "vesa" (module does not exist, 0)
[179838.669] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[179838.669] (EE) open /dev/dri/card0: No such file or directory
[179838.669] (WW) Falling back to old probe method for modesetting
[179838.671] (EE) open /dev/dri/card0: No such file or directory
[179838.671] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[179838.671] (EE) Screen 0 deleted because of no matching config section.
[179838.671] (II) UnloadModule: "modesetting"
[179838.671] (EE) Device(s) detected, but none match those in the config file.
[179838.671] (EE)
Fatal server error:
[179838.671] (EE) no screens found(EE)
[179838.671] (EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[179838.671] (EE) Please also check the log file at "/home/thinker/.local/share/xorg/Xorg.0.log" for additional information.
[179838.671] (EE)
[179838.681] (EE) Server terminated with error (1). Closing log file.


My .xinitrc:
Code:
#!/bin/sh
#~/.xinitrc
exec dbus-launch --exit-with-session twm


lspci -nnk
Code:
$ lspci -nnk
00:00.0 Host bridge [0600]: ULi Electronics Inc. M1621 [10b9:1621] (rev 01)
lspci: Unable to load libkmod resources: error -2
00:01.0 PCI bridge [0604]: ULi Electronics Inc. PCI to AGP Controller [10b9:5247] (rev 01)
00:06.0 Multimedia audio controller [0401]: ULi Electronics Inc. M5451 PCI AC-Link Controller Audio Device [10b9:5451] (rev 01)
   Subsystem: IBM ThinkPad R30 [1014:0506]
   Kernel driver in use: snd_ali5451
00:07.0 ISA bridge [0601]: ULi Electronics Inc. M1533/M1535/M1543 PCI to ISA Bridge [Aladdin IV/V/V+] [10b9:1533]
00:0a.0 Ethernet controller [0200]: Intel Corporation 82557/8/9/0/1 Ethernet Pro 100 [8086:1229] (rev 0d)
   Subsystem: IBM ThinkPad R30 [1014:023a]
   Kernel driver in use: e100
00:0c.0 Network controller [0280]: Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter [8086:1043] (rev 04)
   Subsystem: Intel Corporation Device [8086:2551]
   Kernel driver in use: ipw2100
00:10.0 IDE interface [0101]: ULi Electronics Inc. M5229 IDE [10b9:5229] (rev c3)
   Subsystem: IBM ThinkPad R30 [1014:050f]
   Kernel driver in use: pata_ali
00:11.0 Bridge [0680]: ULi Electronics Inc. M7101 Power Management Controller [PMU] [10b9:7101]
   Subsystem: IBM ThinkPad R30 [1014:0510]
00:13.0 CardBus bridge [0607]: O2 Micro, Inc. OZ601/6912/711E0 CardBus/SmartCardBus Controller [1217:6972]
   Subsystem: IBM ThinkPad R30 [1014:020c]
   Kernel driver in use: yenta_cardbus
00:14.0 USB controller [0c03]: ULi Electronics Inc. USB 1.1 Controller [10b9:5237] (rev 03)
   Kernel driver in use: ohci-pci
01:00.0 VGA compatible controller [0300]: Trident Microsystems CyberBlade/i1 [1023:8620] (rev 5d)
   Subsystem: IBM ThinkPad R30/T30 [1014:0502]
   Kernel driver in use: tridentfb


Please help I'm so so close to karma farming on r/Thinkpads.

Thanks!
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9734
Location: almost Mile High in the USA

PostPosted: Fri Jul 12, 2024 1:25 am    Post subject: Reply with quote

Methinks bitrot with these lesser used drivers. Seems it should still be defined in libexa.so if you have it, but the trident driver doesn't seem to be finding the dynamic link library for whatever reason... Maybe if you preload the exa library?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
MajorJalepino
n00b
n00b


Joined: 26 Jul 2022
Posts: 34

PostPosted: Fri Jul 12, 2024 11:08 am    Post subject: Reply with quote

I actually have done some more digging and it appears some nodejs devs have had a similar issue when using musl-libc instead of glibc.

I found this git Issue: https://github.com/sgerrand/alpine-pkg-glibc/issues/31

Similar error code but on completely different application. Caused by musl-libc.

I'm on the musl profile because RAM requirements.

Can anybody save me from a profile update? Suggestions?
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 3010

PostPosted: Fri Jul 12, 2024 12:09 pm    Post subject: Reply with quote

MajorJalepino wrote:
I'm on the musl profile because RAM requirements.

Can anybody save me from a profile update? Suggestions?

If you want to change back to glibc it will be a total reinstall, not just "profile update".

Why not compile on a faster machine as binhost, then install binpkgs on the R30?
Back to top
View user's profile Send private message
MajorJalepino
n00b
n00b


Joined: 26 Jul 2022
Posts: 34

PostPosted: Fri Jul 12, 2024 12:16 pm    Post subject: Reply with quote

Where's the fun in that?

True about the profile switch I didn't read before I posted.

I would like to attempt a salvage and see if musl can work with this driver.

I might post on gitlab and see if the "curators" respond.

Will report back.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum