Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

rk3188 mali 3D support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    Originally posted by knawnd View Post
    just to make sure that I've got things right: you don't use GPU but use VPU via (X)Mir and android drivers Is that correct?
    In ubuntu 13.10 I had a problem with the GUI-smplayer uses Qt-4 does not work properly , and mplayer crash oft.
    everything is just like in Ubuntu 13.10, but smplayer and mplayer works better with Qt-5.
    Xmir does not work, do not know how to start it.

    I use the >http://www.freaktab.com/showthread.p...roid-and-Linux with kernel radxa
    and distro from radxa with mali support and fbturbo, but it has no significant impact on the video play.
    Video also works with normal fbdev.
    Xmir can not get the rights to Use / dev/dri/card0
    I added all the possible test ppa to my sources.list
    One thing I can say is 14.04 and more stable work better than 13.xx. and the best desktop ist Xubuntu,
    compiz and cairo-dock also works but do not know how to force them for use mali.
    My distro is almost 4GB with Xubuntu ,Lubuntu ,KDE ,Unity8 I have a problem with upload but I'll try

    Unity8 I can not run, KDE is very pretty but slow as snails, Xubuntu is good, Lubuntu is sometimes a problems.
    You can first try in your distro >
    Open a Terminal: Applications/Accessories/Terminal or [CTRL+ALT+T].
    sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev mplayer smplayer or with synaptic.
    after installation run smplayer and video settings, select sdl.
    Last edited by taki-arm; 04-04-2014, 19:35.
    flycast mk809iii

    Comment


      #47
      Originally posted by Znet View Post
      It's not simple.
      Best guide --> http://linux-sunxi.org/Binary_drivers.

      My way on MK802 IV-->


      This works for my 802IV:
      EGL_VERSION = 1.4 Linux-r3p2-01rel2
      vertex shader info:
      fragment shader info:
      info:
      1240 frames in 5.0 seconds = 247.950 FPS
      1238 frames in 5.0 seconds = 247.402 FPS
      1318 frames in 5.0 seconds = 263.442 FPS
      1308 frames in 5.0 seconds = 261.600 FPS
      1290 frames in 5.0 seconds = 257.897 FPS
      ^C
      root@RK-Server:/# uname -a
      Linux RK-Server 3.0.36+ #1 SMP PREEMPT Mon Oct 7 12:26:12 IST 2013 armv7l armv7l armv7l GNU/Linux
      root@RK-Server:/#

      Hope helped you


      It made me wonder just what download-ed 4xx mb then flash 2.5 GB old distro.
      And what ist with permission / dev/dri/card0.
      Also does not understand this.
      Why would anyone distro which the update stops working because Xorg will be in a different version than Mali compiled under him.?
      23.002] (II) Module ABI versions:
      [ 23.002] X.Org ANSI C Emulation: 0.4
      [ 23.002] X.Org Video Driver: 15.0
      [ 23.002] X.Org XInput driver : 20.0
      [ 23.002] X.Org Server Extension : 8.0



      all in all not much has it differs from what I had previously

      ok. without stress
      about now next step is to do get it to work with cairo-dock and compiz
      and play video ,played to the max!
      flycast mk809iii

      Comment


        #48
        Originally posted by taki-arm View Post
        In ubuntu 13.10 I had a problem with the GUI-smplayer uses Qt-4 does not work properly , and mplayer crash oft.
        everything is just like in Ubuntu 13.10, but smplayer and mplayer works better with Qt-5.
        Xmir does not work, do not know how to start it.

        I use the >http://www.freaktab.com/showthread.p...roid-and-Linux with kernel radxa
        and distro from radxa with mali support and fbturbo, but it has no significant impact on the video play.
        Video also works with normal fbdev.
        Xmir can not get the rights to Use / dev/dri/card0
        I added all the possible test ppa to my sources.list
        One thing I can say is 14.04 and more stable work better than 13.xx. and the best desktop ist Xubuntu,
        compiz and cairo-dock also works but do not know how to force them for use mali.
        My distro is almost 4GB with Xubuntu ,Lubuntu ,KDE ,Unity8 I have a problem with upload but I'll try

        Unity8 I can not run, KDE is very pretty but slow as snails, Xubuntu is good, Lubuntu is sometimes a problems.
        thanks for sharing your experience!
        Originally posted by taki-arm View Post
        You can first try in your distro >
        Open a Terminal: Applications/Accessories/Terminal or [CTRL+ALT+T].
        sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev mplayer smplayer or with synaptic.
        after installation run smplayer and video settings, select sdl.
        So as far as I understood you don't use VPU for video decoding but use CPU instead.
        Having libsdl1.2 package installed on Ubuntu 12.04 LTS and running mplayer from command line with "-ao sdl -vo sdl" options I get the message that my machine is too slow (for video file with 720p and h264 codec).

        Comment


          #49
          blinking cursor

          hi,taki-arm

          do you see the blinking cursor。i don't know how to fix it. i use xf86-video-mali driver.

          can you help me?

          thanks!

          Comment


            #50
            Hello please read this>




            and better please use xf86-fbturbo.
            flycast mk809iii

            Comment


              #51
              Originally posted by taki-arm View Post
              Dear taki-arm:

              i don't use allwinner platform, can i use xf86-fbturbo? i am using sw cursor now. do you have a github-html about xf86-fbturbo code?

              Comment


                #52
                Originally posted by neil.nie View Post
                Dear taki-arm: i don't use allwinner platform, can i use xf86-fbturbo? i am using sw cursor now. do you have a github-html about xf86-fbturbo code?
                suck stocks or add to the sources-http://packages.linux-sunxi.org/ubuntu/dists/

                you can use Ubuntu 14.xx with the kernel kitkat - git clone -b radxa-rock/linux-kk https://github.com/linux-rockchip/rockchip-3.0
                .git
                and build a new fbturbo from github. - https://github.com/ssvb/xf86-video-fbturbo
                .
                Last edited by taki-arm; 04-12-2014, 11:08.
                flycast mk809iii

                Comment


                  #53
                  Originally posted by MAC_L1 View Post
                  hi taki-arm,
                  a few weeks ago i got libhybris working on my mk809iii stick running ubuntu 12.04; made a kernel and androidfs build and now i can use gralloc, mali.ko and all kind of egl-libs from android. it kind of works, however not yet together with X (i only got a flickering triangle turning around on console screen using androids surfaceflinger on ubuntu, hwcomposer is not yet working).
                  I wonder if you have tried libhybris wth ubuntu 14.04 + Mir + XMir?

                  Comment


                    #54
                    Originally posted by taki-arm View Post

                    It seems to me that you're right, you can use the method that he used "olegk0" for rk3066 .
                    I try all methods at once, and already I do not know so begins Mali to work.

                    I'm one step further, but again error :
                    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                    [ 52.308]
                    X.Org X Server 1.14.3
                    Release Date: 2013-09-12
                    [ 52.308] X Protocol Version 11, Revision 0
                    [ 52.308] Build Operating System: Linux 3.2.0-51-highbank armv7l Ubuntu
                    [ 52.308] Current Operating System: Linux g8picuntu 3.0.36+ #15 SMP PREEMPT Tue Oct 29 21:51:16 CET 2013 armv7l
                    [ 52.308] Kernel command line: init=/sbin/init root=/dev/mtdblock2 mtdparts=rk29xxnand:0x00008000@0x00002000(boot),0x 00008000@0x0000A000(kernel),-@0x00012000(system)
                    [ 52.308] Build Date: 15 October 2013 09:25:29AM
                    [ 52.308] xorg-server 2:1.14.3-3ubuntu2 (For technical support please see http://www.ubuntu.com/support)
                    [ 52.308] Current version of pixman: 0.30.2
                    [ 52.308] Before reporting problems, check http://wiki.x.org
                    to make sure that you have the latest version.
                    [ 52.308] Markers: (--) probed, (**) from config file, (==) default setting,
                    (++) from command line, (!!) notice, (II) informational,
                    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
                    [ 52.309] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Nov 7 03:04:17 2013
                    [ 52.322] (==) Using config file: "/etc/X11/xorg.conf"
                    [ 52.322] (==) Using config directory: "/etc/X11/xorg.conf.d"
                    [ 52.322] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
                    [ 52.358] (==) No Layout section. Using the first Screen section.
                    [ 52.358] (**) |-->Screen "Mali-Screen" (0)
                    [ 52.358] (**) | |-->Monitor "<default monitor>"
                    [ 52.358] (**) | |-->Device "Mali-Fbdev"
                    [ 52.358] (==) No monitor specified for screen "Mali-Screen".
                    Using a default monitor configuration.
                    [ 52.359] (**) Option "IgnoreABI"
                    [ 52.359] (**) Ignoring ABI Version
                    [ 52.359] (==) Automatically adding devices
                    [ 52.359] (==) Automatically enabling devices
                    [ 52.359] (==) Automatically adding GPU devices
                    [ 52.372] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
                    [ 52.372] Entry deleted from font path.
                    [ 52.402] (==) FontPath set to:
                    /usr/share/fonts/X11/misc,
                    /usr/share/fonts/X11/100dpi/:unscaled,
                    /usr/share/fonts/X11/75dpi/:unscaled,
                    /usr/share/fonts/X11/Type1,
                    /usr/share/fonts/X11/100dpi,
                    /usr/share/fonts/X11/75dpi,
                    built-ins
                    [ 52.402] (==) ModulePath set to "/usr/lib/arm-linux-gnueabihf/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
                    [ 52.402] (II) The server relies on udev to provide the list of input devices.
                    If no devices become available, reconfigure udev or disable AutoAddDevices.
                    [ 52.402] (II) Loader magic: 0x40176ee0
                    [ 52.402] (II) Module ABI versions:
                    [ 52.402] X.Org ANSI C Emulation: 0.4
                    [ 52.402] X.Org Video Driver: 14.1
                    [ 52.402] X.Org XInput driver : 19.1
                    [ 52.402] X.Org Server Extension : 7.0
                    [ 52.403] (II) xfree86: Adding drm device (/dev/dri/card0)
                    [ 52.403] Initializing built-in extension Generic Event Extension
                    [ 52.403] Initializing built-in extension SHAPE
                    [ 52.403] Initializing built-in extension MIT-SHM
                    [ 52.403] Initializing built-in extension XInputExtension
                    [ 52.403] Initializing built-in extension XTEST
                    [ 52.403] Initializing built-in extension BIG-REQUESTS
                    [ 52.404] Initializing built-in extension SYNC
                    [ 52.404] Initializing built-in extension XKEYBOARD
                    [ 52.404] Initializing built-in extension XC-MISC
                    [ 52.404] Initializing built-in extension SECURITY
                    [ 52.404] Initializing built-in extension XINERAMA
                    [ 52.404] Initializing built-in extension XFIXES
                    [ 52.404] Initializing built-in extension RENDER
                    [ 52.404] Initializing built-in extension RANDR
                    [ 52.404] Initializing built-in extension COMPOSITE
                    [ 52.404] Initializing built-in extension DAMAGE
                    [ 52.404] Initializing built-in extension MIT-SCREEN-SAVER
                    [ 52.404] Initializing built-in extension DOUBLE-BUFFER
                    [ 52.404] Initializing built-in extension RECORD
                    [ 52.404] Initializing built-in extension DPMS
                    [ 52.404] Initializing built-in extension X-Resource
                    [ 52.404] Initializing built-in extension XVideo
                    [ 52.404] Initializing built-in extension XVideo-MotionCompensation
                    [ 52.404] Initializing built-in extension SELinux
                    [ 52.404] Initializing built-in extension XFree86-VidModeExtension
                    [ 52.404] Initializing built-in extension XFree86-DGA
                    [ 52.404] Initializing built-in extension XFree86-DRI
                    [ 52.404] Initializing built-in extension DRI2
                    [ 52.404] (II) "glx" will be loaded by default.
                    [ 52.404] (WW) "xmir" is not to be loaded by default. Skipping.
                    [ 52.404] (II) LoadModule: "dri2"
                    [ 52.405] (II) Module "dri2" already built-in
                    [ 52.405] (II) LoadModule: "glamoregl"
                    [ 52.413] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
                    [ 52.563] (II) Module glamoregl: vendor="X.Org Foundation"
                    [ 52.563] compiled for 1.14.2.901, module version = 0.5.1
                    [ 52.563] ABI class: X.Org ANSI C Emulation, version 0.4
                    [ 52.563] (II) LoadModule: "glx"
                    [ 52.564] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
                    [ 52.585] (II) Module glx: vendor="X.Org Foundation"
                    [ 52.585] compiled for 1.14.3, module version = 1.0.0
                    [ 52.585] ABI class: X.Org Server Extension, version 7.0
                    [ 52.585] (==) AIGLX enabled
                    [ 52.586] Loading extension GLX
                    [ 52.586] (II) LoadModule: "mali"
                    [ 52.588] (II) Loading /usr/lib/xorg/modules/drivers/mali_drv.so
                    [ 52.599] (II) Module mali: vendor="X.Org Foundation"
                    [ 52.599] compiled for 1.13.3, module version = 0.4.2
                    [ 52.599] ABI class: X.Org Video Driver, version 13.1
                    [ 52.599] (WW) module ABI major version (13) doesn't match the server's version (14)
                    [ 52.599] MaliSetup
                    [ 52.599] MaliIdentify
                    [ 52.599] (II) MALI: driver for Mali Framebuffer: mali
                    [ 52.599] (++) using VT number 7

                    [ 52.600] (WW) Falling back to old probe method for mali
                    [ 52.600] MaliProbe
                    [ 52.600] MaliHWProbe
                    [ 52.600] (II) MALI(0): using /dev/fb0
                    [ 52.600] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
                    [ 52.600] (II) MALI(0): MaliPreInit: ENTER
                    [ 52.600] (II) MALI(0): MaliGetRec: ENTER
                    [ 52.600] (II) MALI(0): MaliHWInit: ENTER
                    [ 52.600] (II) MALI(0): MaliHWGetDepth: ENTER
                    [ 52.600] (II) MALI(0): Creating default Display subsection in Screen section
                    "Mali-Screen" for depth/fbbpp 16/16
                    [ 52.600] (**) MALI(0): Depth 16, (--) framebuffer bpp 16
                    [ 52.600] (==) MALI(0): RGB weight 565
                    [ 52.601] (==) MALI(0): Default visual is TrueColor
                    [ 52.601] (==) MALI(0): Using gamma correction (1.0, 1.0, 1.0)
                    [ 52.601] (II) MALI(0): MaliHWGetVidmem: ENTER
                    [ 52.601] (II) MALI(0): MaliHWGetName: ENTER
                    [ 52.601] (II) MALI(0): hardware: fb0 (video memory: 24576kB)
                    [ 52.601] (**) MALI(0): Option "DRI2" "true"
                    [ 52.601] (**) MALI(0): Option "DRI2_PAGE_FLIP" "true"
                    [ 52.601] (**) MALI(0): Option "DRI2_WAIT_VSYNC" "true"
                    [ 52.601] (**) MALI(0): Option "UMP_CACHED" "true"
                    [ 52.601] (**) MALI(0): Option "UMP_LOCK" "false"
                    [ 52.601] (**) MALI(0): DRI Fullscreen page flip enabled
                    [ 52.601] (**) MALI(0): DRI Fullscreen page flip VSYNC'd
                    [ 52.601] (**) MALI(0): Use cached UMP memory
                    [ 52.601] (**) MALI(0): Don't use umplock across processes
                    [ 52.601] (EE) MALI(0): mali_drm_open_master DRM OPEN (fd: 0x8)
                    [ 52.601] (**) MALI(0): DRI Fullscreen page flip enabled
                    [ 52.601] (**) MALI(0): DRI Fullscreen page flip VSYNC'd
                    [ 52.601] (**) MALI(0): Use cached UMP memory
                    [ 52.601] (**) MALI(0): Don't use umplock across processes
                    [ 52.602] (**) MALI(0): 2d acceleration disabled
                    [ 52.602] (II) MALI(0): MaliHWGetFD: ENTER
                    [ 52.602] (II) MALI(0): FBDev_crtc_config: ENTER
                    [ 52.602] (II) MALI(0): FBDev_crtc_config: EXIT
                    [ 52.602] (II) MALI(0): Output LCD has no monitor section
                    [ 52.602] (II) MALI(0): Mode 1920 x 1080 valid
                    [ 52.602] (II) MALI(0): Printing probed modes for output LCD
                    [ 52.602] (II) MALI(0): Modeline "1920x1080"x60.0 139.20 1920 1940 1960 2000 1080 1100 1120 1160 (69.6 kHz e)
                    [ 52.602] (II) MALI(0): Output LCD connected
                    [ 52.602] (II) MALI(0): Using sloppy heuristic for initial modes
                    [ 52.602] (II) MALI(0): Output LCD using initial mode 1920x1080
                    [ 52.602] (II) MALI(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
                    [ 52.602] (II) MALI(0): MaliHWSetVideoModes: ENTER
                    [ 52.602] (--) MALI(0): Virtual size is 1920x1080 (pitch 1920)
                    [ 52.602] (**) MALI(0): Driver mode "1920x1080": 139.2 MHz (scaled from 0.0 MHz), 69.6 kHz, 60.0 Hz
                    [ 52.602] (II) MALI(0): Modeline "1920x1080"x60.0 139.20 1920 1940 1960 2000 1080 1100 1120 1160 (69.6 kHz e)
                    [ 52.602] (==) MALI(0): DPI set to (96, 96)
                    [ 52.602] (II) Loading sub module "fb"
                    [ 52.602] (II) LoadModule: "fb"
                    [ 52.603] (II) Loading /usr/lib/xorg/modules/libfb.so
                    [ 52.613] (II) Module fb: vendor="X.Org Foundation"
                    [ 52.613] compiled for 1.14.3, module version = 1.0.0
                    [ 52.613] ABI class: X.Org ANSI C Emulation, version 0.4
                    [ 52.613] (II) MALI(0): MaliScreenInit: ENTER
                    [ 52.619] (II) MALI(0): DRI2 version: 1.2
                    [ 52.619] (II) MALI(0): [DRI2] Setup complete
                    [ 52.619] (II) MALI(0): [DRI2] DRI driver: Mali DRI2
                    [ 52.619] (II) MALI(0): MaliHWMapVidmem: ENTER
                    [ 52.620] (II) MALI(0): MaliHWLinearOffset: ENTER
                    [ 52.620] (II) MALI(0): MaliHWSave: ENTER
                    [ 52.620] (II) MALI(0): MaliHWModeInit: ENTER
                    [ 52.620] (II) MALI(0): MaliHWSetMode: ENTER
                    [ 52.620] (II) MALI(0): MaliHWSaveScreen: ENTER
                    [ 52.620] (II) MALI(0): MaliHWAdjustFrame: ENTER
                    [ 52.622] (II) Loading sub module "exa"
                    [ 52.622] (II) LoadModule: "exa"
                    [ 52.622] (II) Loading /usr/lib/xorg/modules/libexa.so
                    [ 52.632] (II) Module exa: vendor="X.Org Foundation"
                    [ 52.632] compiled for 1.14.3, module version = 2.6.0
                    [ 52.632] ABI class: X.Org Video Driver, version 14.1
                    [ 52.632] (II) MALI(0): maliSetupExa: ENTER
                    [ 52.632] (II) MALI(0): Mali EXA driver is loaded successfully
                    [ 52.632] (II) MALI(0): maliSetupExa: EXIT
                    [ 52.632] (WW) MALI(0): Initializing EXA Driver!
                    [ 52.632] (II) EXA(0): Driver allocated offscreen pixmaps
                    [ 52.632] (II) EXA(0): Driver registered support for the following operations:
                    [ 52.633] (II) Solid
                    [ 52.633] (II) Copy
                    [ 52.633] (II) Composite (RENDER acceleration)
                    [ 52.633] (==) MALI(0): Backing store disabled
                    [ 52.633] (==) MALI(0): Silken mouse enabled
                    [ 52.633] (II) MALI(0): Changing mode to 1920 1080 1920 2160
                    [ 52.690] (II) MALI(0): RandR 1.2 enabled, ignore the following RandR disabled message.
                    [ 52.690] (==) MALI(0): DPMS enabled
                    [ 52.690] (--) RandR disabled
                    [ 52.715] (II) SELinux: Disabled on system
                    [ 52.719] (EE) AIGLX error: dlopen of /usr/lib/arm-linux-gnueabihf/dri/Mali DRI2_dri.so failed (/usr/lib/arm-linux-gnueabihf/dri/Mali DRI2_dri.so: cannot open shared object file: No such file or directory)
                    [ 52.719] (EE) AIGLX: reverting to software rendering
                    [ 52.719] (II) AIGLX: Screen 0 is not DRI capable
                    [ 52.823] (II) AIGLX: Loaded and initialized swrast
                    [ 52.823] (II) GLX: Initialized DRISWRAST GL provider for screen 0
                    [ 52.824] GET_UMP_SECURE_ID_BUF1 returned 0xffffffff offset: 0 virt address: 0x40a65000 fb_virt: 0x40a65000
                    [ 52.824] (EE) MALI(0): [maliModifyPixmapHeader:440] UMP failed to retrieve secure id
                    [ 52.824] (II) MALI(0): Setting screen physical size to 508 x 285
                    [ 52.824] (II) MALI(0): fbdev_crtc_config_resize: width = 1920 height = 1080
                    [ 52.824] (EE)
                    [ 52.824] (EE) Backtrace:
                    [ 52.825] (EE)
                    [ 52.825] (EE) Segmentation fault at address 0xc
                    [ 52.825] (EE)
                    Fatal server error:
                    [ 52.825] (EE) Caught signal 11 (Segmentation fault). Server aborting
                    [ 52.825] (EE)
                    [ 52.825] (EE)
                    Please consult the The X.Org Foundation support
                    at http://wiki.x.org
                    for help.
                    [ 52.825] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
                    [ 52.825] (EE)
                    [ 52.826] (II) MALI(0): MaliHWLeaveVT: ENTER
                    [ 52.826] (II) MALI(0): MaliHWRestore: ENTER
                    [ 52.852] (EE) Server terminated with error (1). Closing log file.

                    maybe tomorrow will go better .


                    Hi,taki-arm,I had encontered the same error just like you :

                    [ 52.824] GET_UMP_SECURE_ID_BUF1 returned 0xffffffff offset: 0 virt address: 0x40a65000 fb_virt: 0x40a65000
                    [ 52.824] (EE) MALI(0): [maliModifyPixmapHeader:440] UMP failed to retrieve secure id
                    [ 52.824] (II) MALI(0): Setting screen physical size to 508 x 285
                    [ 52.824] (II) MALI(0): fbdev_crtc_config_resize: width = 1920 height = 1080
                    [ 52.824] (EE)
                    [ 52.824] (EE) Backtrace:
                    [ 52.825] (EE)
                    [ 52.825] (EE) Segmentation fault at address 0xc
                    [ 52.825] (EE)
                    Fatal server error:
                    [ 52.825] (EE) Caught signal 11 (Segmentation fault). Server aborting
                    [ 52.825] (EE)
                    [ 52.825] (EE)
                    Please consult the The X.Org Foundation support


                    Do you know what caused the segment fault at address 0xc ?

                    Thanks very much !



                    Comment

                    Working...
                    X