LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   xf86-video-opentegra (https://www.linuxquestions.org/questions/slackware-arm-108/xf86-video-opentegra-4175526652/)

louigi600 11-27-2014 03:26 AM

xf86-video-opentegra
 
Has anyone tried using xf86-video-opentegra on their nvidia tegra based systems ?

louigi600 12-26-2014 01:59 AM

It compiled but can't get X to use it at it complains it cant fond stuff in /dev/dri/
Not sure how to fix it but I suspect that newer kernel is required with different DRM interface.
Damn it looks like that next step up from 3.0 is 3.8 ... but that requires a whole load more of work (uboot and gpt) and my AC100 is not collaborating with some hardware issues !!!

Anyone else had a go ?

This is how I compiled and packaged it:
Code:

git clone --depth 1 https://github.com/grate-driver/xf86-video-opentegra
cd xf86-video-opentegra
./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var --datadir=/usr --docdir=/usr/doc
make
mkdir -p /usr/src/ac100/pkg
make install DESTDIR=/usr/src/ac100/pkg
cd /usr/src/ac100/pkg
makepkg -l y -c y ../xf86-video-opentegra-0.6.0-arm-1.tgz


drmozes 12-27-2014 03:42 AM

Quote:

Originally Posted by louigi600 (Post 5275817)
Has anyone tried using xf86-video-opentegra on their nvidia tegra based systems ?

I've built the opentegra driver and it'll be in -current today.
You can test it :-)

louigi600 12-28-2014 12:08 AM

If I try the one in current I get this:
Code:

[  709.092] (II) LoadModule: "opentegra"
[  709.093] (II) Loading /usr/lib/xorg/modules/drivers/opentegra_drv.so
[  709.093] (II) Module opentegra: vendor="X.Org Foundation"
[  709.093]    compiled for 1.15.2, module version = 0.6.0
[  709.094]    Module class: X.Org Video Driver
[  709.094]    ABI class: X.Org Video Driver, version 15.0
[  709.098] (EE) module ABI major version (15) doesn't match the server's version (14)
[  709.098] (II) UnloadModule: "opentegra"
[  709.098] (II) Unloading opentegra
[  709.098] (EE) Failed to load module "opentegra" (module requirement mismatch, 0)
[  709.098] (II) LoadModule: "fbdev"

Ok I'm using a -current package on 14.1 ... maybe it's normal.

If I use the one I built this is what I get:
Code:

[  1026.428] (II) LoadModule: "opentegra"
[  1026.428] (II) Loading /usr/lib/xorg/modules/drivers/opentegra_drv.so
[  1026.429] (II) Module opentegra: vendor="X.Org Foundation"
[  1026.429]    compiled for 1.14.3, module version = 0.6.0
[  1026.429]    Module class: X.Org Video Driver
[  1026.429]    ABI class: X.Org Video Driver, version 14.1
[  1026.429] (II) opentegra: Open Source Driver for NVIDIA Tegra: kms
[  1026.429] (--) using VT number 7

[  1026.448] (WW) Falling back to old probe method for opentegra
[  1026.449] (EE) open /dev/dri/card0: No such file or directory
[  1026.449] (EE) No devices detected.
[  1026.449] (EE)
Fatal server error:

I'm going to try running current from SD without upgrading the system on internal flash just to see if the -current package works.

louigi600 01-01-2015 02:10 AM

Tried also with current but I get the same "open /dev/dri/card0: No such file or directory" error.

drmozes 01-01-2015 04:04 AM

Quote:

Originally Posted by louigi600 (Post 5293538)
Tried also with current but I get the same "open /dev/dri/card0: No such file or directory" error.

Do you have DRI in your Kernel?



http://wiki.gentoo.org/wiki/Xorg/Har...What_is_DRI.3F

louigi600 01-01-2015 05:15 AM

I'll look closer in the kernel setup asap ... but CONFIG_DRM is set to m in /proc/config.gz
and it don't help much if I load it manually ... maybe the old 3.0 kernels had incomplete DRM/DRI ?

drmozes 01-01-2015 04:12 PM

Quote:

Originally Posted by louigi600 (Post 5293579)
I'll look closer in the kernel setup asap ... but CONFIG_DRM is set to m in /proc/config.gz
and it don't help much if I load it manually ... maybe the old 3.0 kernels had incomplete DRM/DRI ?

Code:

[    61.105] (II) LoadModule: "opentegra"
[    61.106] (II) Loading /usr/lib/xorg/modules/drivers/opentegra_drv.so
[    61.109] (II) Module opentegra: vendor="X.Org Foundation"
[    61.109]    compiled for 1.15.2, module version = 0.6.0
[    61.109]    Module class: X.Org Video Driver
[    61.109]    ABI class: X.Org Video Driver, version 15.0

root@pepa:~# file /dev/dri/card0
/dev/dri/card0: character special

'X -configure' doesn't find anything though:
Code:

Number of created screens does not match number of detected devices.
  Configuration failed.
(EE) Server terminated with error (2). Closing log file.

but I don't know that it would anyway since I don't believe that the required driver for the Trimslice is in the kernel.


All times are GMT -5. The time now is 12:31 PM.