Hi,
I had an issue with the OpenCL Driver on my Chomebook.
I followed ARM's instruction and successfully boot into Linux. However, I got an error message said that libxcb-dri2.so missing. After install libxcb-dri2.0-dev, I can compile Mali OpenCL SDK sample codes. But they won't be executed correctly under X11 or via fbdev. I past error message below. Any suggestion? Thanks.
> ./hello_world_opencl OpenCL error: CL_OUT_OF_HOST_MEMORY Creating an OpenCL context failed. common.cpp:248 Failed to create an OpenCL context. hello_world_opencl.cpp:39 > ldd hello_world_opencl libOpenCL.so => /opt/mali/fbdev/libOpenCL.so (0x76efc000) libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x76e4a000) libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x76e39000) libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76d55000) /lib/ld-linux-armhf.so.3 (0x76f07000) libmali.so => /opt/mali/fbdev/libmali.so (0x76304000) libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x762e9000) libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x7627e000) librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x76270000) libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76265000)
> ./hello_world_opencl
OpenCL error: CL_OUT_OF_HOST_MEMORY
Creating an OpenCL context failed. common.cpp:248
Failed to create an OpenCL context. hello_world_opencl.cpp:39
> ldd hello_world_opencl
libOpenCL.so => /opt/mali/fbdev/libOpenCL.so (0x76efc000)
libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0x76e4a000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0x76e39000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76d55000)
/lib/ld-linux-armhf.so.3 (0x76f07000)
libmali.so => /opt/mali/fbdev/libmali.so (0x76304000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x762e9000)
libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0x7627e000)
librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0x76270000)
libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76265000)
BTW that was my blog! I had put libraries in ~/mali/fbdev as suggested. Moving it to /usr/lib/ doesn't make any difference. Even egl drivers are not working. I believe problem here is with my kernel. I had compiled 3.8.11 as suggested with the right patches. Can you please elaborate what kernel you tested it with and how you built it. Or just if its possible, could you upload your kernel (kernel.itb) and its modules here
Thanks
I think without a license agreement in place we're not allowed to upload any binaries, or we would have provided an SD card image! I used the following things:
Linux r3p0-02rel0 kernel space driver from http://malideveloper.arm.com/downloads/drivers/TX011/r3p0-02rel0/TX011-SW-99002-r3p0-02rel0.tgz
Userspace binaries from here http://malideveloper.arm.com/downloads/drivers/binary/r3p0-02rel0/linux-fbdev-hf-r3p0-02rel0.tgz (fbdev in this case, there is no reason the two shouldn't live harmoniously together but we're troubleshooting now so i suggest just using the one set to begin with).
I cloned http://git.chromium.org/chromiumos/third_party/kernel-next.git and checked out 98d6fa96d08dbb08a2150dcd48a6b2a8773172e0
I applied the patches manually (in future we will hopefully provide actual patches, but for some reason could not this time) and replaced the mali driver with the one you download.
Ran ./chromeos/scripts/prepareconfig chromeos-exynos5 and then sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules_install INSTALL_MOD_PATH=/mnt
etc. The guide you're following is what I followed to get it working, I honestly can't think of a good reason why it should not work for you on the Mali chromebook, I can only suggest giving it another try in case you jumped a step or something! It happened to me once or twice as there are bits that are quite wordy and easy to skip if you're just jumping from command to command.
The steps given at Graphics and Compute Development on Samsung Chromebook « Mali Developer Center
worked for me without any issues except couple things.
1: Steps of Section 5.2.2, ensure you do not miss quotation mark echo “deb http://ports.ubuntu.com/ubuntu-ports/ precise universe” >> /etc/apt/sources.listMissing quotation mark will jeopardize the apt source list.
2: git clone git://git.linaro.org/arm/xorg/driver/xf86-video-armsoc.git won't work. Try git clone http://git.linaro.org/git-ro/arm/xorg/driver/xf86-video-armsoc.git.
3. Needed to nstall libxcb-dri2-0-dbg package on the target file system.
Though, I am unable to setup the network connections over wifi. I tried nmcli utility but it seems the wifi device is not present. Pointers??
Thanks!
Bizarre, git clone git://git.linaro.org/arm/xorg/driver/xf86-video-armsoc.git works fine for me at home.