Using z160 GPU on a custom board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using z160 GPU on a custom board

1,750 Views
oliviernasralla
Contributor I

Hello,

anyone know (or have an idea) how to use the GPU of the imx51 on a board that does not come from freescale. My board come from another company and use his own BSP which doesn't provide the GPU driver and library.

I tried to copy all include, lib and bin files from the package "amd-gpu-bin-mx51-10.11.01" present in the freescale BSP source to my rootfs but I am not able to start any example. I get always the same error which say the application is not present, but it is...

Did someone already try something similar?

Thanks

Olivier

Labels (1)
0 Kudos
4 Replies

739 Views
oliviernasralla
Contributor I

To be more precise, what I did is copy in /usr/lib/ of my rootfs:

  • lib2dz160.so
  • lib2dz430.so
  • libcsi.a
  • libEGL.so
  • libGLESv1_CM.so
  • libGLESv2.so
  • libgsl.so
  • libOpenVG.so
  • libres.a
  • libz160.so

and copy to /usr/include/ in my rootfs:

  • EGL folder
    • egl.h
    • eglext.h
    • eglfslext.h
    • eglplatform.h
    • eglplatform_1.4.h
  • GLES folder
    • egl.h
    • gl.h
    • glext.h
    • gl_extensions.h
    • glplatform.h
  • GLES2 folder
    • gl2.h
    • gl2amdext.h
    • gl2ext.h
    • gl2platform.h
  • KHR folder
    • khrplatform.h
  • VG folder
    • ext.h
    • ftvg_utils.h
    • openvg.h
    • vgu.h
  • z160.h

Is it enough to use the GPU or I need to load a driver on the board or something more?

thanks

Olivier

0 Kudos

739 Views
Noel_V
Contributor III

Hi,

At this time i'm tryin to give an imx53 board a performance-boost by enabling hardware-acceleration for X11.

I've been trying to build and include hardware support for "Driver for Freescale IMX processors: i.MX5x Z160" into the X11 ( buildroot 2016-11) . Running ( building for) latest LINUX (long-term) kernel 4.4.43.

I've been able to compile and run the imx_X11 driver ... so far .. but it bails out ... with

(EE) imx(0): Unable to access Z160 GPU

Any clue ? 

I'm kind of stuck now... anyone out .. that can give me a hint ? 

Best Regards

Noel

 

[ 90.012] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 90.012] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 90.012] (II) Loader magic: 0x1cf900
[ 90.012] (II) Module ABI versions:
[ 90.012] X.Org ANSI C Emulation: 0.4
[ 90.012] X.Org Video Driver: 23.0
[ 90.012] X.Org XInput driver : 24.1
[ 90.012] X.Org Server Extension : 10.0
[ 90.016] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 90.017] (II) no primary bus or device found
[ 90.017] falling back to /sys/devices/platform/display-subsystem/drm/card0
[ 90.018] (II) LoadModule: "glx"
[ 90.020] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 90.041] (II) Module glx: vendor="X.Org Foundation"
[ 90.041] compiled for 1.19.1, module version = 1.0.0
[ 90.041] ABI class: X.Org Server Extension, version 10.0
[ 90.042] (II) LoadModule: "imx"
[ 90.043] (II) Loading /usr/lib/xorg/modules/drivers/imx_drv.so
[ 90.180] (II) Module imx: vendor="X.Org Foundation"
[ 90.180] compiled for 1.19.1, module version = 0.2.0
[ 90.180] ABI class: X.Org Video Driver, version 23.0
[ 90.180] (II) imx: Driver for Freescale IMX processors: i.MX5x Z160
[ 90.181] (--) using VT number 2

[ 90.197] (WW) Falling back to old probe method for imx
[ 90.197] (II) Loading sub module "fbdevhw"
[ 90.197] (II) LoadModule: "fbdevhw"
[ 90.198] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 90.214] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 90.214] compiled for 1.19.1, module version = 0.0.2
[ 90.214] ABI class: X.Org Video Driver, version 23.0
[ 90.215] (II) Add screen 0xb2ef50
[ 90.215] (II) imx(0): using /dev/fb0
[ 90.216] (II) Loading sub module "fb"
[ 90.216] (II) LoadModule: "fb"
[ 90.217] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 90.231] (II) Module fb: vendor="X.Org Foundation"
[ 90.231] compiled for 1.19.1, module version = 1.0.0
[ 90.231] ABI class: X.Org ANSI C Emulation, version 0.4
[ 90.232] (II) imx(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 16/16
[ 90.232] (==) imx(0): Depth 16, (==) framebuffer bpp 16
[ 90.232] (==) imx(0): RGB weight 565
[ 90.232] (==) imx(0): Default visual is TrueColor
[ 90.232] (==) imx(0): Using gamma correction (1.0, 1.0, 1.0)
[ 90.232] (II) imx(0): hardware: (video memory: 1536kB)
[ 90.232] (**) imx(0): Option "fbdev" "/dev/fb0"
[ 90.232] (II) Loading sub module "exa"
[ 90.232] (II) LoadModule: "exa"
[ 90.233] (II) Loading /usr/lib/xorg/modules/libexa.so
[ 90.242] (II) Module exa: vendor="X.Org Foundation"
[ 90.242] compiled for 1.19.1, module version = 2.6.0
[ 90.242] ABI class: X.Org Video Driver, version 23.0
[ 90.245] (II) imx(0): printing discovered frame buffer 'fb0' supported modes:
[ 90.255] (II) imx(0): Modeline "U:1024x768p-0"x0.0 0.00 1024 1024 1024 1024 768 768 768 768 -hsync -vsync -csync (0.0 kHz e)
[ 90.255] (II) imx(0): Modeline "builtin"x0.0 0.00 1024 1024 1024 1024 768 768 768 768 -hsync -vsync -csync (0.0 kHz b)
[ 90.259] (II) imx(0): Output has no monitor section
[ 90.259] (II) imx(0): Printing probed modes for output
[ 90.259] (II) imx(0): Modeline "builtin"x0.0 0.00 1024 1024 1024 1024 768 768 768 768 -hsync -vsync -csync (0.0 kHz b)
[ 90.259] (II) imx(0): Output disconnected
[ 90.262] (WW) imx(0): No outputs definitely connected, trying again...
[ 90.262] (II) imx(0): Output connected
[ 90.262] (II) imx(0): Using exact sizes for initial modes
[ 90.262] (II) imx(0): Output using initial mode builtin +0+0
[ 90.262] (==) imx(0): DPI set to (96, 96)
[ 90.263] (II) imx(0): bitsPerPixel=16 depth=16 defaultVisual=TrueColor
[ 90.263] (II) imx(0): rgbOffset=11,5,0 rgbMask=0x0000f800,0x000007e0,0x0000001f
[ 90.263] (II) imx(0): physAddr=0xcf100000 fbStart=0xb628e000 = 0xb628e000 + 0x00000000
[ 90.264] (II) imx(0): reserve 1572864 bytes of frame buffer for screen
[ 90.294] (EE) imx(0): Unable to access Z160 GPU
[ 90.295] (EE) imx(0): Initialize Z160 interfaces failed.
[ 90.295] (II) imx(0): No acceleration in use
[ 90.295] (==) imx(0): Backing store enabled

0 Kudos

739 Views
jimmychan
NXP TechSupport
NXP TechSupport

Please check the i.MX51 part number on your board. There is no GPU in i.MX512 and i.MX513.

739 Views
oliviernasralla
Contributor I

Thanks for answer.

I have the i.mx515, which have the GPU.

Actually I stay at the same place with my problem, have you some idea about the way I should add the GPU support on my board?

0 Kudos