Hi Siarhei,

Thank you for taking the time to offer your advice and explanations!

On 09/23/15 00:11, Siarhei Siamashka wrote:
> On Tue, 22 Sep 2015 13:36:38 -0400
> Trevor Woerner <[email protected]> wrote:
>
>> Hi Thomas,
>>
>> On 09/20/15 11:26, [email protected] wrote:
>>> I'm considering moving from kernel 3.4.103 to 4.2
>>> IIRC the mali binary driver will not work on 4.2 but I can't find the page 
>>> I got that information from.
>>> Will I be able to use mali on the new kernel?
>> Do you have mali working with 3.4.x (I'm using 3.4.90)?
> Hi. The 3.4.90 is a suspicious kernel version number. It looks like it
> might be not originating from https://github.com/linux-sunxi/linux-sunxi
>
> This is important. Because if the Mali driver in the kernel is broken,
> then Mali will not work. Can you provide more details about your kernel?

I'm working with the cubietruck and I'm performing my builds using
OpenEmbedded.

The OpenEmbedded recipe
(https://github.com/linux-sunxi/meta-sunxi/blob/master/recipes-kernel/linux/linux-sunxi_3.4.bb)
currently pins the kernel at commit
"e37d760b363888f3a65cd6455c99a75cac70a7b8", which correlates to 3.4.90.
I hadn't noticed this before, I'll unpin my build to use the latest.

>> I can't seem to get my build to work, I keep getting errors such as:
>>
>>     Error: Unable to choose an EGL config
>>
>> or
>>
>>     eglChooseConfig() failed
>>
>> or
>>
>>     Error: couldn't get an RGB, Double-buffered visual
> What exactly are you doing to make it fail this way?

To be honest I'm not entirely sure what I should be trying. So I've
built the "mesa-demos" recipe
(http://layers.openembedded.org/layerindex/recipe/4686/) and am trying
to run some of its artifacts. Examples include: eglgears_x11, eglinfo,
eglkms, glxdemo, glxgears, xeglgears, xeglthreads...

My output from eglinfo is:

    EGL API version: 1.4
    EGL vendor string: ARM
    EGL version string: 1.4 Linux-r3p0-04rel0
    EGL client APIs: OpenGL_ES
    EGL extensions string:
        EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
        EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image
        EGL_KHR_gl_renderbuffer_image EGL_KHR_reusable_sync
        EGL_KHR_fence_sync EGL_KHR_lock_surface EGL_KHR_lock_surface2
    Configurations:
         bf lv colorbuffer dp st  ms    vis   cav bi  renderable  supported
      id sz  l  r  g  b  a th cl ns b    id   eat nd gl es es2 vg surfaces
    ---------------------------------------------------------------------
    0x05 16  0  5  6  5  0 24  8  0 0 0x00SG   y  y     y  y     pb,pix
    0x03 16  0  5  6  5  0 24  8  4 1 0x00SG   y  y     y  y     pb,pix
    0x04 16  0  5  6  5  0 24  8 16 1 0x00SG   y  y     y  y     pb,pix
    0x13 16  0  5  5  5  1 24  8  0 0 0x00SG   y  a     y  y     pb,pix
    0x12 16  0  5  5  5  1 24  8  4 1 0x00SG   y  a     y  y     pb,pix
    0x14 16  0  5  5  5  1 24  8 16 1 0x00SG   y  a     y  y     pb,pix
    0x15 16  0  4  4  4  4 24  8  0 0 0x00SG   y  a     y  y     pb,pix
    0x16 16  0  4  4  4  4 24  8  4 1 0x00SG   y  a     y  y     pb,pix
    0x17 16  0  4  4  4  4 24  8 16 1 0x00SG   y  a     y  y     pb,pix
    0x09 32  0  8  8  8  8 24  8  0 0 0x42SG      a     y  y     win,pb,pix
    0x26 32  0  8  8  8  0 24  8  0 0 0x42SG   y  a     y  y     win,pb,pix
    0x0c 32  0  8  8  8  8 24  8  4 1 0x42SG      a     y  y     win,pb,pix
    0x0f 32  0  8  8  8  8 24  8 16 1 0x42SG   y  a     y  y     win,pb,pix
    0x0d  8  0  0  0  0  0  0  0  0 0 0x00SG   y                 pix
    0x0e 16  0  0  0  0  8  0  0  0 0 0x00SG   y                 pix
    0x1c 16  0  5  6  5  0  0  0  1 0 0x00SG   y                 pb,pix
    0x23 16  0  5  5  5  1  0  0  1 0 0x00SG   y                 pb,pix
    0x22 32  0  8  8  8  8  0  0  1 0 0x42SG                     win
    0x1b 32  0  8  8  8  8  0  0  1 0 0x42SG                     win
    0x27 32  0  8  8  8  8 24  8  0 0 0x00SG      a     y  y     pix

It looks like I might be missing a kms driver? My output from eglkms is:

    gbm: failed to open any driver (search paths /usr/lib/dri)
    gbm: Last dlopen error: /usr/lib/dri/mali_drm_dri.so: cannot open
    shared object file: No such file or directory
    failed to load driver: mali_drm
    gbm: failed to open any driver (search paths /usr/lib/dri)
    gbm: Last dlopen error: /usr/lib/dri/kms_swrast_dri.so: cannot open
    shared object file: No such file or directory
    failed to load driver: kms_swrast
    gbm: failed to open any driver (search paths /usr/lib/dri)
    gbm: Last dlopen error: /usr/lib/dri/swrast_dri.so: cannot open
    shared object file: No such file or directory
    failed to load swrast driver
    couldn't create gbm device

Output from various other programs generate the examples I gave above:

    # eglgears_x11
    EGLUT: failed to choose a config
    EGL_VERSION = 1.4 Linux-r3p0-04rel0

    # glxgears
    Error: couldn't get an RGB, Double-buffered visual

    # xeglgears
    EGL_VERSION = 1.4 Linux-r3p0-04rel0
    eglChooseConfig() failed

    # xdpyinfo
    name of display:    :0
    version number:    11.0
    vendor string:    The X.Org Foundation
    vendor release number:    11702000
    X.Org version: 1.17.2
    maximum request size:  16777212 bytes
    motion buffer size:  256
    bitmap unit, bit order, padding:    32, LSBFirst, 32
    image byte order:    LSBFirst
    number of supported pixmap formats:    7
    supported pixmap formats:
        depth 1, bits_per_pixel 1, scanline_pad 32
        depth 4, bits_per_pixel 8, scanline_pad 32
        depth 8, bits_per_pixel 8, scanline_pad 32
        depth 15, bits_per_pixel 16, scanline_pad 32
        depth 16, bits_per_pixel 16, scanline_pad 32
        depth 24, bits_per_pixel 32, scanline_pad 32
        depth 32, bits_per_pixel 32, scanline_pad 32
    keycode range:    minimum 8, maximum 255
    focus:  window 0xa00003, revert to PointerRoot
    number of extensions:    23
        BIG-REQUESTS
        Composite
        DAMAGE
        DOUBLE-BUFFER
        DPMS
        DRI2
        Generic Event Extension
        MIT-SCREEN-SAVER
        MIT-SHM
        Present
        RANDR
        RENDER
        SHAPE
        SYNC
        X-Resource
        XC-MISC
        XFIXES
        XFree86-DGA
        XFree86-VidModeExtension
        XInputExtension
        XKEYBOARD
        XTEST
        XVideo
    default screen number:    0
    number of screens:    1

    screen #0:
      dimensions:    1280x720 pixels (339x191 millimeters)
      resolution:    96x96 dots per inch
      depths (7):    24, 1, 4, 8, 15, 16, 32
      root window id:    0x44
      depth of root window:    24 planes
      number of colormaps:    minimum 1, maximum 1
      default colormap:    0x20
      default number of colormap cells:    256
      preallocated pixels:    black 0, white 16777215
      options:    backing-store WHEN MAPPED, save-unders NO
      largest cursor:    64x64
      current input event mask:    0x5a0000
        StructureNotifyMask      SubstructureNotifyMask  
    SubstructureRedirectMask
        PropertyChangeMask      
      number of visuals:    2
      default visual id:  0x21
      visual:
        visual id:    0x21
        class:    TrueColor
        depth:    24 planes
        available colormap entries:    256 per subfield
        red, green, blue masks:    0xff0000, 0xff00, 0xff
        significant bits in color specification:    8 bits
      visual:
        visual id:    0x42
        class:    TrueColor
        depth:    32 planes
        available colormap entries:    256 per subfield
        red, green, blue masks:    0xff0000, 0xff00, 0xff
        significant bits in color specification:    8 bits

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to