LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   opentegra module ABI version (23) does not match the servers's version 24 (https://www.linuxquestions.org/questions/slackware-14/opentegra-module-abi-version-23-does-not-match-the-serverss-version-24-a-4175639780/)

dreadbit 10-05-2018 03:20 AM

opentegra module ABI version (23) does not match the servers's version 24
 
Hello, this is the aftermath of yesterdays "slackpkg update ; slackpkg update-all".
What am I doing wrong?

-current on Toshiba AC100

ponce 10-05-2018 03:43 AM

I suppose you are using slackwarearm-current (and, like it seems, you haven't updated your installation in some months), so this question should be better suited on the "slackware - arm" subforum...

first, you should update your system using
Code:

slackpkg update
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system

(being careful not to remove third party packages you have installed with the last step, but eventually rebuild them as-needed)

then, regarding xf86-video-opentegra, maybe it was last rebuilt before the upgrade to xorg-server-1.20.x and the ABI doesn't match, but I don't know if it hasn't rebuilt on purpose, maybe because it's not compatible...
either you rebuild it over the new xorg-server version on you can try with the IgnoreABI option: create a /etc/X11/xorg.conf.d/10-ignoreabi.conf with this content
Code:

Section "ServerFlags"
  Option "IgnoreABI" "1"
EndSection

and try to start X again (note that this is not guaranteed to work).

dreadbit 10-05-2018 04:07 AM

Quote:

Originally Posted by ponce (Post 5911279)
I suppose you are using slackwarearm-current (and, like it seems, you haven't updated your installation in some months), so this question should be better suited on the "slackware - arm" subforum...

Oh sorry - I did not notice that forum.

IgnoreABI gave me Segmentation Fault.

Quote:

then, regarding xf86-video-opentegra, maybe it was last rebuilt before the upgrade to xorg-server-1.20.x and the ABI doesn't match, but I don't know if it hasn't rebuilt on purpose, maybe because it's not compatible...
As for xf86-video-opentegra, I see a patch xf86-video-opentegra_0001-Adapt-Block-WakeupHandler-signature-for-ABI-23.patch.xz in the Slackware sources; I do not understand what it is for, but it is about ABI-23 according to it's name, may be it is deprecated now?

ponce 10-05-2018 04:13 AM

Quote:

Originally Posted by dreadbit (Post 5911294)
Oh sorry - I did not notice that forum.

IgnoreABI gave me Segmentation Fault.


As for xf86-video-opentegra, I see a patch xf86-video-opentegra_0001-Adapt-Block-WakeupHandler-signature-for-ABI-23.patch.xz in the Slackware sources; I do not understand what it is for, but it is about ABI-23 according to it's name, may be it is deprecated now?

I'm not sure, I just had a look at fedora's sources and it seems they still used it on their last rebuild over xorg-server-1.20

https://src.fedoraproject.org/cgit/r...opentegra.spec

consider also that the last activity on the driver is more than four years ago

https://cgit.freedesktop.org/xorg/dr...deo-opentegra/

dreadbit 10-05-2018 12:14 PM

Ok, that is what I've done. I'm writing this mostly to myself when I have to reinstall the system ;-)


Remove and blacklist opentegra

Check if xorgproto is installed

Check kernel is compiled with
CONFIG_DRM_TEGRA_STAGING=y

Install libdrm to /usr/local/
From https://github.com/grate-driver/libdrm (last update 2018 Jul )
With ./configure --enable-tegra-experimental-api --prefix=/usr/local/

Install opentegra (last update 2018 Sep!)
From https://github.com/grate-driver/xf86-video-opentegra
With plain ./configure (may be tune DRM_CFLAGS and DRM_LIBS to point to /usr/local/)

Symlink /usr/local/lib/x11/modules/drivers/* to /usr/lib

And... Looks like it works - at least, for the first try and at least somehow.

drmozes 10-05-2018 01:03 PM

Quote:

Originally Posted by dreadbit (Post 5911501)
Ok, that is what I've done. I'm writing this mostly to myself when I have to reinstall the system ;-)


Remove and blacklist opentegra

[..]

Check kernel is compiled with
CONFIG_DRM_TEGRA_STAGING=y

Install libdrm to /usr/local/
From https://github.com/grate-driver/libdrm (last update 2018 Jul )
With ./configure --enable-tegra-experimental-api --prefix=/usr/local/

Install opentegra (last update 2018 Sep!)
From https://github.com/grate-driver/xf86-video-opentegra
With plain ./configure (may be tune DRM_CFLAGS and DRM_LIBS to point to /usr/local/)

Symlink /usr/local/lib/x11/modules/drivers/* to /usr/lib


The armv7 Kernel package already has that configuration option, and libdrm has been configured with that configuration switch a long time.

Thanks for the report for opentegra - it had bitrot and didn't compile during the last update but slipped by unnoticed. The update batch is making its way out now.

If anybody knows how to actually check whether these modules load (perhaps automating loading them into X11), please let me know so I can add it to the port-specific X11 drivers build script.

dreadbit 10-05-2018 01:17 PM

Quote:

Originally Posted by drmozes (Post 5911519)
The armv7 Kernel package already has that configuration option, and libdrm has been configured with that configuration switch a long time.

Well, really, my kernel is custom, and worked without CONFIG_DRM_TEGRA_STAGING till yesterday's upgrade-all with the old driver.
As for libdrm, I've tried to compile opentegra against libdrm which came with the system - but it could not find some symbols, and they were much about --enable-tegra-experimental-api.


All times are GMT -5. The time now is 02:40 AM.