Hello my name is Shant,I followed the instructions on this link: Graphics and Compute Development on Samsung Chromebook « Mali Developer Center to be able to use Mali drivers and the armsoc driver for test the openGL 2.0 and openGL 3.0. Later I downloaded the mali opengl SDK from : Mali OpenGL ES SDK for Linux « Mali Developer Center I built the examples.So When I execute any random example, I get this errors:
[PLUGIN INFO] Plugin initializing[PLUGIN DEBUG] './override.instr_config' not found, trying to open the process config file[PLUGIN DEBUG] './cube.instr_config' not found, trying to open the default config file[PLUGIN ERROR] Couldn't open default config file './default.instr_config'.[PLUGIN INFO] No configuration file found, attempting to use environment[PLUGIN INFO] CINSTR GENERAL: Output directory set to: . [PLUGIN INFO] No instrumentation features requested.
Any issues ??? any solutions ???...Thank you all .
Can you provide the output of ldd es2gears && ldd es2_info? Also where did the Mali drivers come from, are they from the vendor? Are they known working with your setup? Also are you using X11 drivers with fbdev or vice versa?
Thanks,
Chris
Okay here is ldd es2gears reslut :
libGLESv2.so.2 => /usr/lib/libGLESv2.so.2 (0x402ca000) libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x40167000) libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0x402fb000) libEGL.so.1 => /usr/lib/libEGL.so.1 (0x40053000) libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x403e2000) /lib/arm-linux-gnueabihf/ld-linux.so.3 => /lib/ld-linux-armhf.so.3 (0x4002a000) libMali.so => /usr/lib/libMali.so (0x4007e000) libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x401d2000) libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0x400fd000) libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x40117000) libdrm.so.2 => /usr/lib/arm-linux-gnueabihf/libdrm.so.2 (0x40122000) libXfixes.so.3 => /usr/lib/arm-linux-gnueabihf/libXfixes.so.3 (0x40010000) libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0x401f4000) libUMP.so.3 => /usr/lib/libUMP.so.3 (0x40136000) libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x40144000) libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0x4001c000) libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0x4006e000)and here is ldd es2_info :
libGLESv2.so.2 => /usr/lib/libGLESv2.so.2 (0x4016f000) libEGL.so.1 => /usr/lib/libEGL.so.1 (0x400e8000) libX11.so.6 => /usr/lib/arm-linux-gnueabihf/libX11.so.6 (0x401a0000) libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x40287000) /lib/arm-linux-gnueabihf/ld-linux.so.3 => /lib/ld-linux-armhf.so.3 (0x4003c000) libMali.so => /usr/lib/libMali.so (0x4036a000) libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x40103000) libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x403e8000) libdrm.so.2 => /usr/lib/arm-linux-gnueabihf/libdrm.so.2 (0x400c2000) libXfixes.so.3 => /usr/lib/arm-linux-gnueabihf/libXfixes.so.3 (0x4040a000) libXext.so.6 => /usr/lib/arm-linux-gnueabihf/libXext.so.6 (0x4005c000) libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x40416000) libxcb.so.1 => /usr/lib/arm-linux-gnueabihf/libxcb.so.1 (0x40083000) libUMP.so.3 => /usr/lib/libUMP.so.3 (0x40421000) libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x4042f000) libXau.so.6 => /usr/lib/arm-linux-gnueabihf/libXau.so.6 (0x4000c000) libXdmcp.so.6 => /usr/lib/arm-linux-gnueabihf/libXdmcp.so.6 (0x4006f000)I downloaded the mali modules first from this link:http://androtab.info/radxa_rock/mali/ I downloaded mali-modules.tgz and I loaded them by modprebe (each one of them) because I thought it's the same kernel and it loaded and here is the result of lsmod :
Module Size Used bymali_drm 5196 1 drm 142897 2 mali_drmwlan 458451 0
mali 127376 0
ump 27356 3 mali
rk30xxnand_ko 350544 0
x11 framebuffer driver is x86-video-fbturbo ...I think it's from fbdev...any other infos do you need just tell me I will send
Thanks,Regards.
Ok so the modules must be built for that kernel, so far so good, but where did the userspace libraries come from? Did you follow Mali binary driver - linux-sunxi.org? If so it is very suspect that you're using a kernel and modules built for a rockchip device with userspace drivers built for Allwinner devices, but I think as long as the versions match up then it should work. Based on the content of Using Mali on Linux for Radxa Rock | androtab.info the kernel drivers you have are r3p2-01rel2 so you will need userspace binaries of the same version. In the Mali binary driver - linux-sunxi.org instructions they default to r3p0 so unless you changed this this is probably the issue?
P.S. I've taken a look, the github.com/linux-sunxi/sunxi-mali-proprietary.git repo used by the Mali binary driver - linux-sunxi.org instructions only go as high as r3p2-01rel1, not r3p2-01rel2, but hopefully this will not cause an incompatibility (the Using Mali on Linux for Radxa Rock | androtab.info guide has been written referencing that page, so I guess they must have worked for him!). Make sure you select the right version in the configure section of those instructions.
P.P.S I've actually run strings libMali.so | grep VARIANT on the libraries at sunxi-mali/lib/mali/r3p2-01rel1/armhf/x11 and they are actually r3p2-01rel2, not rel1 as the folder/makefiles indicate, so they should work fine. Please let me know if these were the ones you were using.
First of all ...I would like to thank you so much for your help ...:)
So The kernel source doesn't have the mali modules (I mean this model mk908 sourcecode ), there are too many blogs that people made it but even they don't provide that source code ( I don't know why), so that's why I decided to download it and yea I can say I am lucky that the modules were accatable when I ran modprobe mali and no errors .About the versions yea I mean I don't know which version compiled those modules ...Is there anyway to know it after the compilation ? maybe it makes our work easier. Yes I did download it from that link (like you mentnioned they are saying they have r3p2-01rel2 ) and but I think it won't be any problem if we check again their version if there is possibilty.
And I tride the same command that you mentioned strings libMali.so | grep VARIANT in /usr/lib/ and here are the results:
base: BUILD=RELEASE ARCH=arch_011_udd PLATFORM=default_7a TRACE=0 THREAD= GEOM= CORES=MALI400 USING_MALI400=1 TARGET_CORE_REVISION=0x0101 TOPLEVEL_REPO_URL=Linux-r3p2-01rel2 REVISION=Linux-r3p2-01rel2 CHANGED_REVISION=Linux-r3p2-01rel2 REPO_URL=Linux-r3p2-01rel2 BUILD_DATE=Tue Aug 13 08:09:41 UTC 2013 CHANGE_DATE=Linux-r3p2-01rel2 TARGET_TOOLCHAIN=gcc HOST_TOOLCHAIN=gcc TARGET_TOOLCHAIN_VERSION=gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) HOST_TOOLCHAIN_VERSION=gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) TARGET_SYSTEM=gcc-arm-linux-gnueabihf HOST_SYSTEM=gcc-arm-linux-gnueabihf CPPFLAGS= CUSTOMER=internal VARIANT=mali400-gles11-gles20-linux-ump-no_monolithic-rgb_is_xrgb HOSTLIB=direct INSTRUMENTED=FALSE USING_MRI=FALSE MALI_TEST_API= UDD_OS=linux
So what else do you need ? what else do you advice ? Thank you,Regards.