Currently I'm using toradex_4.9-2.3.x-imx kernel for my Buildroot system and I plan to do some testing on the Vivante GPU using the examples provided by Freescale :
But I've got errors for following tests :
>>>>>>>> /usr/share/examples/viv_samples/cl11/UnitTest/clinfo Starting...
!!! Error # -1001 at line 156 , in file main.cpp !!!
root@imx-buildroot:~# /usr/share/examples/viv_samples/cl11/fft/fft 1024
Block size: 16
Print result: yes
ERROR:: -32 clCreateContextFromType failed
Also, I noticed that the gpu-viv's driver (i.e. galcore module was failed to load) :
root@imx-buildroot:~# dmesg | grep -i galcore
- [ 2.766399] Galcore version 220.127.116.11331
- [ 2.766630] galcore: probe of 130000.gpu failed with error -22
I'd like to know if this galcore.ko relates to the above tests and why did it fail to load, please ?
Thanks in advance,
Thanks for your recommendation. Unfortunately I don't use Yocto but Buildroot with kernel version is 4.9.144 based on t
root@imx-buildroot:~# uname -ra
Linux imx-buildroot 4.9.144 #5 SMP Thu May 30 10:18:40 +07 2019 armv7l GNU/Linux
Also, my main interest is why galcore module failed to probe.
From this link https://boundarydevices.com/customizing-ubuntudebian-kernels/ I learn that galcore module has to be built externally for kernel >= 4.1.15 which is my case. Can anyone confirm?
Have you had any luck with resolving your issue?
I have a similar issue on my custom IMX6 Solo based board. I am using buildroot version 2019.11 with imx kernel version 4.9.88 (linux-imx - i.MX Linux kernel). Buildroot is building version 6.2.4.p1.2 of both imx-gpu-g2d and imx-gpu-viv packages. I am getting the following error during boot:
mxc_vpu 2040000.vpu_fsl: VPU initialized
galcore: clk_get vg clock failed, disable vg!
Galcore version 18.104.22.168331
galcore: probe of 130000.gpu failed with error -22
I have the following packages enabled on buildroot:
I've also enabled the CONFIG_MXC_GPU_VIV in the kernel config. Any idea why I'm seeing this issue?
Thank you so much for your response.
I actually managed to get it work by not using the driver in the kernel and using the viv kernel module in buildroot. It looks like enabling BR2_PACKAGE_KERNEL_MODULE_IMX_GPU_VIV in buildroot disables CONFIG_MXC_GPU_VIV in the kernel. These are now my configs:
# CONFIG_MXC_GPU_VIV is not set
If you look at <buildroot>/linux/linux.mk :
I deduce that just one driver can be built at a time.