Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

rk3188 mali 3D support

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

    #16
    Originally posted by sa4 View Post
    Thanks again for this help!

    I followed those instructions, rebooted, and got the blinking cursor. Rebooted holding down 'shift' key and got a prompt - logged in as root, then tried 'startx' and the log shows that it experiences a fatal server error - 'no screens found'. Last lines before that were:

    Initializing built-in extension XFree86-DRI
    Initializing built-in extension DRI2
    Loading extension GLX

    Fatal server error:
    No screens found

    *

    Any thoughts?

    S
    if you installed the xf86-video-driver from this post above? >http://www.freaktab.com/showthread.p...l=1#post138961 read it carefully.

    if you have not yet installed the xf86-video-driver, it seems to me that you miss xorg.conf.

    - do so open a terminal and sudo nano /etc/X11/xorg.conf and paste this config
    ---------------------------------------------------------------------
    #xorg.conf
    Section "Monitor"
    Identifier "Monitor0"
    Option "DPI" "96 x 96"
    ModelName "Monitor Model"
    DisplaySize 1920 1080
    EndSection
    Section "Device"
    #Option "ShadowFB" "true"
    Identifier "Card0"
    Driver "fbdev"
    Option "fbdev" "/dev/fb0"
    EndSection
    Section "Screen"
    Identifier "Screen0"
    Device "Card0"
    Monitor "Monitor0"
    EndSection

    Section "Module"
    Load "dbe"
    EndSection

    -----------------------------------------------------------------
    ctrl+o save it.
    ctrl+x exit.
    reboot.
    this is the default xorg.conf for fbdev.

    if this does not help a spare modules on the>http://www.sendspace.com/file/sxnsuk
    Last edited by taki-arm; 03-07-2014, 00:47.
    flycast mk809iii

    Comment


      #17
      Great - thanks for the tip. I started fresh, installed the xf86-video-driver, installed the modules that you uploaded, and then used the xorg.conf that you have in the last post. The only change I had to make was to the line:

      DisplaySize 1920 1080

      It seems to want DisplaySize in mm - so with it set to 1920 x 1080, the font on the screen was tiny. My screen was around 530 x 280 mm so I put that in and it's perfect.

      Otherwise it works!

      Now (hopefully) a last question. I'm opening h.264 videos in mplayer, and wondering which options to try to get work over to the GPU? So far trying:

      mplayer -vo dga moviefile.mov

      is getting the video into the directframebuffer (fullscreen) but there are still issues with 'No accelerated colorspace conversion found from yuv420p to rgb5651e'. The video is still extremely slow and relying on sw scaling to achieve the colorspace conversion.

      [ No control over video while it's playing, as you mentioned - at least with dga. ]

      Maybe I just need to adapt in my video encoding.

      I'll try some other options and post any success. If you have any tips, let me know.

      Again - Thanks for the advice with this.

      S

      Comment


        #18
        I'm following your trials closely and looking forward to results. I'm also trying to do the same in Debian Jessie using Enlightenment window manager.
        T428

        Comment


          #19
          Mali working...

          Sorry, started a new thread, but I got Mali working, see here

          Comment


            #20
            Originally posted by Omegamoon View Post
            Sorry, started a new thread, but I got Mali working, see here
            Great news.
            and according to this description it can be done.
            ok. this link info is from naobsd

            > http://androtab.info/radxa_rock/mali/

            - https://plus.googleapis.com/10521445...3430/poastadxs

            video radxa running in 3d driver - https://www.youtube.com/watch?v=M5ci...&feature=share

            Last edited by taki-arm; 03-14-2014, 21:54.
            flycast mk809iii

            Comment


              #21
              Originally posted by taki-arm View Post
              Great news.
              and according to this description it can be done.
              ok. this link info is from naobsd

              > http://androtab.info/radxa_rock/mali/

              - https://plus.googleapis.com/10521445...3430/poastadxs

              video radxa running in 3d driver - https://www.youtube.com/watch?v=M5ci...&feature=share
              If you just want to try then I've created an updated Ubuntu 12.04 RFS with the necessary kernel modules and binary userspace drivers which you can download and boot from on https://plus.google.com/109451178006...ts/NEWG6Mtz5U7

              Comment


                #22
                Originally posted by linuxium View Post
                If you just want to try then I've created an updated Ubuntu 12.04 RFS with the necessary kernel modules and binary userspace drivers which you can download and boot from on https://plus.google.com/109451178006...ts/NEWG6Mtz5U7
                linuxium, thanks for that image and sharing it! What steps need to be done to run another linux distro with the same kernel modules and binary userspace drivers? Should it be enough just to copy some file (e.g. from /lib/modules/*) to other's OS root fs?

                Comment


                  #23
                  Originally posted by knawnd View Post
                  linuxium, thanks for that image and sharing it! What steps need to be done to run another linux distro with the same kernel modules and binary userspace drivers? Should it be enough just to copy some file (e.g. from /lib/modules/*) to other's OS root fs?
                  It is not that simple because "compiling and installing" the binary userspace drivers puts files in other places e.g. /usr/lib etc. so you would also have to fight your way through http://linux-sunxi.org/Binary_drivers.

                  Comment


                    #24
                    Originally posted by linuxium View Post
                    If you just want to try then I've created an updated Ubuntu 12.04 RFS with the necessary kernel modules and binary userspace drivers which you can download and boot from on https://plus.google.com/109451178006...ts/NEWG6Mtz5U7
                    Cool, thank you.

                    Whats the best way to flash this to NAND in Windows?

                    Comment


                      #25
                      Originally posted by knawnd View Post
                      linuxium, thanks for that image and sharing it! What steps need to be done to run another linux distro with the same kernel modules and binary userspace drivers? Should it be enough just to copy some file (e.g. from /lib/modules/*) to other's OS root fs?
                      It's not simple.
                      Best guide --> http://linux-sunxi.org/Binary_drivers.

                      My way on MK802 IV-->
                      1- Download Mali drivers https://www.dropbox.com/s/8lp0qeilwcqnjce/gpu.rar
                      2- Put folder gpu into /lib/modules/3.0.36+/kernel/drivers
                      3- Open shell and:

                      depmod -a
                      Add ump and mali to modules --> nano /etc/modules and add this line
                      ______
                      ump
                      mali
                      ______

                      Create a permisions(add lines)
                      nano /etc/udev/rules.d/50-mali.rules
                      KERNEL=="mali", MODE="0660", GROUP="video"
                      KERNEL=="ump", MODE="0660", GROUP="video"


                      Second part: Compiling

                      Need ->

                      apt-get install git libdri2-dev xorg-dev xutils-dev git build-essential x11proto-dri2-dev libltdl-dev libtool automake

                      mkdir /install;cd /install

                      git clone https://github.com/robclark/libdri2
                      cd libdri2
                      ./autogen.sh
                      ./configure
                      make
                      make install
                      cd /install
                      git clone https://github.com/linux-sunxi/sunxi-mali.git
                      cd sunxi-mali
                      git submodule init
                      git submodule update
                      make config VERSION=r3p2-01rel1 ABI=armhf
                      make install
                      cd /install
                      git clone -b 0.4.0 https://github.com/ssvb/xf86-video-fbturbo.git
                      cd xf86-video-fbturbo
                      autoreconf -vi
                      ./configure --prefix=/usr
                      make
                      make install
                      cp xorg.conf /etc/X11/xorg.conf

                      reboot

                      PD: If you have problems with egl version running es2gears, best way is:
                      mv /usr/lib/arm-linux-gnueabihf/mesa-egl/ /usr/lib/arm-linux-gnueabihf/.mesa-egl/
                      mv /usr/lib/libEGL.so /usr/lib/libEGL.so.old
                      mv /usr/lib/libEGL.so.1.4 /usr/lib/libEGL.so.1.4.old
                      mv /usr/lib/libGLESv1_CM.so /usr/lib/libGLESv1_CM.so.old
                      mv /usr/lib/libGLESv1_CM.so.1.1 /usr/lib/libGLESv1_CM.so.1.1.old
                      mv /usr/lib/libGLESv2.so /usr/lib/libGLESv2.so.old
                      mv /usr/lib/libGLESv2.so.2.0 /usr/lib/libGLESv2.so.2.0.old
                      cd /install/sunxi-mali
                      make install
                      cd /install/xf86-video-fbturbo
                      autoreconf -vi
                      ./configure --prefix=/usr
                      make
                      make install
                      reboot
                      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
                      Last edited by Znet; 03-17-2014, 16:54.

                      Comment


                        #26
                        Originally posted by rceccleston View Post
                        Cool, thank you.

                        Whats the best way to flash this to NAND in Windows?
                        For the Radxa Rock for example, for dualboot (android and ubuntu) download and unzip this firmware 'https://drive.google.com/file/d/0B99O3A0dDe67WG85YUNKLXNqdFE' or for just ubuntu download and unzip this firmware 'https://drive.google.com/file/d/0B99O3A0dDe67bFZucW9NT0hocVE' and flash using using 'RKBatchTool' on Windows, and then download and unzip the RFS 'https://drive.google.com/file/d/0B99O3A0dDe67S1hQQ2VybldVYU0' and write to SD card or USB using 'Win32 Disk Imager' on Windows. Boot from the SD card or USB and follow the on-screen prompts to install to NAND.

                        Comment


                          #27
                          Originally posted by Znet View Post
                          My way on MK802 IV-->
                          Znet, thank you for providing detailed step-by-step instructions!
                          I will try to follow them for distro I am using.

                          Comment


                            #28
                            Originally posted by linuxium View Post
                            For the Radxa Rock for example, for dualboot (android and ubuntu) download and unzip this firmware 'https://drive.google.com/file/d/0B99O3A0dDe67WG85YUNKLXNqdFE' or for just ubuntu download and unzip this firmware 'https://drive.google.com/file/d/0B99O3A0dDe67bFZucW9NT0hocVE' and flash using using 'RKBatchTool' on Windows, and then download and unzip the RFS 'https://drive.google.com/file/d/0B99O3A0dDe67S1hQQ2VybldVYU0' and write to SD card or USB using 'Win32 Disk Imager' on Windows. Boot from the SD card or USB and follow the on-screen prompts to install to NAND.
                            Thank you Ian!!

                            Your bootloader made the installation easy and the performance of Ubuntu is impressive. :0)

                            Comment


                              #29
                              I wonder if there are any other benefits in enabling 3D mali support apart from ability to play 3D games?

                              Comment


                                #30
                                Running at 1080P on stock kernel...

                                linuxium@LINUXIUMONE:~$ es2gears
                                EGL_VERSION = 1.4 Linux-r3p2-01rel2
                                vertex shader info:
                                fragment shader info:
                                info:
                                1026 frames in 5.0 seconds = 205.118 FPS
                                1055 frames in 5.0 seconds = 210.873 FPS
                                1059 frames in 5.0 seconds = 211.715 FPS
                                1067 frames in 5.0 seconds = 213.400 FPS
                                1062 frames in 5.0 seconds = 212.230 FPS
                                1065 frames in 5.0 seconds = 212.872 FPS
                                1064 frames in 5.0 seconds = 212.545 FPS
                                1065 frames in 5.0 seconds = 212.957 FPS
                                1068 frames in 5.0 seconds = 213.600 FPS
                                1068 frames in 5.0 seconds = 213.472 FPS
                                1073 frames in 5.0 seconds = 214.600 FPS
                                1065 frames in 5.0 seconds = 212.957 FPS
                                1067 frames in 5.0 seconds = 213.229 FPS
                                1052 frames in 5.0 seconds = 210.400 FPS
                                1067 frames in 5.0 seconds = 213.272 FPS
                                1069 frames in 5.0 seconds = 213.757 FPS
                                997 frames in 5.0 seconds = 198.843 FPS
                                XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
                                after 73292 requests (73292 known processed) with 0 events remaining.
                                X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
                                Major opcode of failed request: 136 (DRI2)
                                Minor opcode of failed request: 8 (DRI2SwapBuffers )
                                Resource id in failed request: 0x4000002
                                Serial number of failed request: 18312
                                Current serial number in output stream: 18312
                                linuxium@LINUXIUMONE:~$


                                linuxium@LINUXIUMONE:~$ glmark2-es2
                                ================================================== =====
                                glmark2 2011.09
                                ================================================== =====
                                OpenGL Information
                                GL_VENDOR: ARM
                                GL_RENDERER: Mali-400 MP
                                GL_VERSION: OpenGL ES 2.0
                                ================================================== =====
                                [build] use-vbo=false: FPS: 50
                                [build] use-vbo=true: FPS: 54
                                [texture] texture-filter=nearest: FPS: 56
                                [texture] texture-filter=linear: FPS: 56
                                [texture] texture-filter=mipmap: FPS: 57
                                [shading] shading=gouraud: FPS: 54
                                [shading] shading=blinn-phong-inf: FPS: 54
                                [shading] shading=phong: FPS: 50
                                [bump] bump-render=high-poly: FPS: 40
                                [bump] bump-render=normals: FPS: 51
                                [effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 29
                                [effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 13
                                [pulsar] light=false:quads=5:texture=false: FPS: 57
                                [desktop] blur-radius=5:effect=blurasses=1:separable=true:windows=4: FPS: 31
                                [conditionals] fragment-steps=0:vertex-steps=0: FPS: 59
                                [conditionals] fragment-steps=5:vertex-steps=0: FPS: 47
                                [conditionals] fragment-steps=0:vertex-steps=5: FPS: 58
                                [function] fragment-complexity=low:fragment-steps=5: FPS: 58
                                [function] fragment-complexity=medium:fragment-steps=5: FPS: 35
                                [loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 56
                                [loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 56
                                [loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 56
                                ================================================== =====
                                glmark2 Score: 48
                                ================================================== =====
                                linuxium@LINUXIUMONE:~$
                                Last edited by rceccleston; 03-19-2014, 07:25.

                                Comment

                                Working...
                                X