This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

/usr/bin/pvrsrvctl: SrvInit failed (already initialized?) (err=4)

Guru 10685 points

I've moved onto Graphics SDK 4.10.00.01.

I load my drm.ko and then pvrsrvkm.ko kernel modules fine.

Then I run the binary application pvrsrvctl but when I do this I get:

/usr/bin/pvrsrvctl: SrvInit failed (already initialized?) (err=4)

1) Does anyone know what this error message means? Can I ignore it?

2) Does anyone know how to get the source code for this application under NDA?

I am using a DM8168 and Linux 2.6.37 which should be supported.

I do have "CONFIG_OMAP2_DSS" disabled in my kernel config. This is dependent on ARCH_OMAP3:

VIDEO_OMAP2_VOUT [=n] && MEDIA_SUPPORT [=y] && VIDEO_CAPTURE_DRIVERS [=y] && VIDEO_V4L2 [=y] && (ARCH_OMAP2 [=n] || ARCH_OMAP3 [=n])

3) Should I enable ARCH_OMAP3 even though this is a different system type than my DM81XX?

TI OMAP2/3/4 Specific Features
    [*] Typical OMAP configuration
    [ ] TI OMAP2                  
    [ ] TI OMAP3                  
    [ ] TI OMAP4                  
    [*] TI 81XX                   
    [*] TI816X support            
    [ ] TI814X support            
        *** OMAP Board Type ***   
        *** TI81XX Board Type ***
    [ ] TI8168 Evaluation Module 

Thanks,
Ralph

  • Hi Ralph,

        As far as I know the latest graphics SDK tested on the DM816x was 4.06.00.03 newer version were just build tested, I am interested on using  4.10.00.01 too, It would be great if some one has it already running on the board, I will let you know our progress on it.

    -David

  • 4.10.00.01 supports X version 1.12 which is very useful to us. It would be a massive pain if we had to downgrade our X version just to support the old version of the Graphics SDK.

    Also, I honestly don't know why they even bothered "build testing" it. This is a largely pointless task and they'd be better supporting their customers if they actually had it running on the target system.

  • Update: if I enable ARCH_OMAP3 in the kernel alongside TI81XX, I can't build the kernel. :-S

  • Here is my log when I start the Xserver:

    # /usr/bin/Xorg -verbose -config /etc/xorg.conf &
    # _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
    _XSERVTransOpen: transport open failed for inet6/buildroot:0
    _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

    X.Org X Server 1.12.4
    Release Date: 2012-08-27
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.32-5-amd64 x86_64
    Current Operating System: Linux buildroot 2.6.37 #2 PREEMPT Tue Mar 25 12:08:43 GMT 2014 armv7l
    Kernel command line: boot_method=tftp boot_version=0.19 serverip=172.30.0.1 earlyprintk console=ttyO0,115200 vmalloc=500M
    Build Date: 21 March 2014  04:52:58PM

    Current version of pixman: 0.30.0
            Before reporting problems, check http://wiki.x.org
            to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
            (++) from command line, (!!) notice, (II) informational,
            (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Mon Mar 24 12:11:00 2014
    (++) Using config file: "/etc/xorg.conf"
    (==) ServerLayout "X.org Configured"
    (**) |-->Screen "Screen0" (0)
    (**) |   |-->Monitor "Monitor0"
    (==) No device specified for screen "Screen0".
            Using the first device section listed.
    (**) |   |-->Device "Video Device"
    (**) |-->Input Device "Mouse0"
    (**) |-->Input Device "Keyboard0"
    (==) Not automatically adding devices
    (==) Not automatically enabling devices
    (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/100dpi/".
            Entry deleted from font path.
            (Run 'mkfontdir' on "/usr/share/fonts/X11/100dpi/").
    (**) FontPath set to:
            /usr/share/fonts/X11/misc/,
            /usr/share/fonts/X11/Type1/,
            /usr/share/fonts/X11/75dpi/,
            ${prefix}/share/fonts/X11/misc/,
            ${prefix}/share/fonts/X11/TTF/,
            ${prefix}/share/fonts/X11/OTF/,
            ${prefix}/share/fonts/X11/Type1/,
            ${prefix}/share/fonts/X11/100dpi/,
            ${prefix}/share/fonts/X11/75dpi/
    (**) ModulePath set to "/usr/lib/xorg/modules"
    (II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
    (II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
    (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
    (II) "record" will be loaded by default.
    (II) "dri" will be loaded. This was enabled by default and also specified in the config file.
    (II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
    (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
    (II) Module extmod: vendor="X.Org Foundation"
            compiled for 1.12.4, module version = 1.0.0
    (II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
    (II) Module dri2: vendor="X.Org Foundation"
            compiled for 1.12.4, module version = 1.2.0
    (II) Loading /usr/lib/xorg/modules/extensions/libdri.so
    (II) Module dri: vendor="X.Org Foundation"
            compiled for 1.12.4, module version = 1.0.0
    (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    (II) Module glx: vendor="X.Org Foundation"
            compiled for 1.12.4, module version = 1.0.0
    (==) AIGLX enabled
    (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
    (II) Module dbe: vendor="X.Org Foundation"
            compiled for 1.12.4, module version = 1.0.0
    (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
    (II) Module record: vendor="X.Org Foundation"
            compiled for 1.12.4, module version = 1.13.0
    (II) Loading /usr/lib/xorg/modules/drivers/pvr_drv.so
    (II) Module PVR: vendor="X.Org Foundation"
            compiled for 1.12.0, module version = 110.235.9475
    (II) Loading /usr/lib/xorg/modules/input/mouse_drv.so
    (II) Module mouse: vendor="X.Org Foundation"
            compiled for 1.12.4, module version = 1.7.2
    (II) Loading /usr/lib/xorg/modules/input/kbd_drv.so
    (II) Module kbd: vendor="X.Org Foundation"
            compiled for 1.12.4, module version = 1.6.1
    (II) pvr: Driver for PowerVR chipsets: PowerVR SGX
    (--) using VT number 2

    (WW) Falling back to old probe method for pvr
    (EE) SrvInit failed (error 4)
    (EE) No devices detected.

    Fatal server error:
    no screens found

    Please consult the The X.Org Foundation support
             at http://wiki.x.org
     for help.
    Please also check the log file at "/var/log/Xorg.0.log" for additional information.

    Server terminated with error (1). Closing log file.

  • Hello Ralph,

    _Ralph_ said:

    (WW) Falling back to old probe method for pvr
    (EE) SrvInit failed (error 4)
    (EE) No devices detected.

    Fatal server error:
    no screens found

    I am not familiar with this but you could check here:

    http://processors.wiki.ti.com/index.php/SGXDbg#X_fails_to_start

    Hope this helps.

    Best Regards,

    Margarita

  • Thanks Margarita, I have read that document before but read it again to double check and this is of no help unfortunately.