Toybrick

楼主: jefferyzhang

RK3399Pro入门教程(12)OpenGL/CL在Debian10上的安装和使用

jefferyzhang

版主

积分
12964
11#
 楼主| 发表于 2020-3-27 16:29:23 | 显示全部楼层
kaishi 发表于 2020-3-27 15:09
I am not able to install glmark2 on debian 10

Reading package lists... Done

update debian10 first:

sudo apt update --fix-missing
sudo apt -y upgrade
回复

使用道具 举报

jefferyzhang

版主

积分
12964
12#
 楼主| 发表于 2020-3-28 11:16:18 | 显示全部楼层
kaishi 发表于 2020-3-28 06:45
Got an error when I dod sudo apt update --fix-missing

Hit:1 http://repo.rock-chips.com/debian buste ...

Please check your connect to ftp.cn.debian.org, or try again after another time.
回复

使用道具 举报

jefferyzhang

版主

积分
12964
13#
 楼主| 发表于 2020-3-28 13:38:44 | 显示全部楼层
kaishi 发表于 2020-3-28 13:11
I am able to apt update now.
However, I am still get the same error to install glmark2 as below:

try:
sudo toybrick-mali.sh link

before executing glmark2
回复

使用道具 举报

jefferyzhang

版主

积分
12964
14#
 楼主| 发表于 2020-3-28 13:55:19 | 显示全部楼层
kaishi 发表于 2020-3-28 13:46
I have 2 issues here:
clinfo reports no device as below:
clinfo: /lib/aarch64-linux-gnu/libOpenCL.so ...

Have you upgraded debian10 ?
After apt update, you need execute "sudo apt -y upgrade" to upgrade it for toybrick repo.
回复

使用道具 举报

jefferyzhang

版主

积分
12964
15#
 楼主| 发表于 2020-3-28 14:05:35 | 显示全部楼层
本帖最后由 jefferyzhang 于 2020-3-28 14:07 编辑
kaishi 发表于 2020-3-28 13:59
My debian is relatively new. How can I find out build version. Below is lsb_release -a which tells m ...

So where did you get this debian10 firmware?
If you got it from our toybrick site, it contains our toybrick deb/pipy repo which contains glmark2 built by ourselves.
回复

使用道具 举报

jefferyzhang

版主

积分
12964
16#
 楼主| 发表于 2020-3-28 16:47:51 | 显示全部楼层
kaishi 发表于 2020-3-28 14:14
I believe it was downloaded from your onedrive

That is weird. Did you see the message want you press 'Y' when you 'apt upgrade' about updating '/etc/apt/sources.list.d/toybrick.list'?
Check the '/etc/apt/sources.list.d/toybrick.list' is exist?
回复

使用道具 举报

jefferyzhang

版主

积分
12964
17#
 楼主| 发表于 2020-3-29 10:44:37 | 显示全部楼层
kaishi 发表于 2020-3-29 03:24
Yes, my system has  /etc/apt/sources.list.d/toybrick.list and its content is:

deb http://repo.roc ...

I will ask our engineer tomorrow.
Maybe you can try to compile glmark2 by yourself for workaround...
回复

使用道具 举报

jefferyzhang

版主

积分
12964
18#
 楼主| 发表于 2020-3-30 09:02:49 | 显示全部楼层
kaishi 发表于 2020-3-29 15:44
How about opencl issue which no device found?

clinfo reports no device as below:

If you execute 'sudo toybrick-mali.sh link' successfully, the libOpenCL.so will be linked to libmali as below,

toybrick@debian10:~$ ll /usr/lib/aarch64-linux-gnu/libOpenCL.so*
lrwxrwxrwx 1 root root 18 Dec 17  2018 /usr/lib/aarch64-linux-gnu/libOpenCL.so -> libOpenCL.so.1.0.0
lrwxrwxrwx 1 root root 18 Dec 17  2018 /usr/lib/aarch64-linux-gnu/libOpenCL.so.1 -> libOpenCL.so.1.0.0
lrwxrwxrwx 1 root root 25 Mar 20 03:06 /usr/lib/aarch64-linux-gnu/libOpenCL.so.1.0.0 -> libmali-toybrick.so.r18p0
回复

使用道具 举报

jefferyzhang

版主

积分
12964
19#
 楼主| 发表于 2020-3-30 11:49:23 | 显示全部楼层
kaishi 发表于 2020-3-29 03:24
Yes, my system has  /etc/apt/sources.list.d/toybrick.list and its content is:

deb http://repo.roc ...

Your sources.list.d is wrong, it is NOT latest list.
So the upgrade is failure. You need upgrade again.
回复

使用道具 举报

jefferyzhang

版主

积分
12964
20#
 楼主| 发表于 2020-3-30 11:50:57 | 显示全部楼层
newcomer3399 发表于 2020-3-30 11:22
已经upgrade完成,按照帖子说的进行了一系列安装,最后clinfo报以下信息:
clinfo: /lib/aarch64-linux-g ...

看下link的是不是libmali
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表