How to install OpenCL in ROCK960 Model B


#1

Hello,

I want to install OpenCL in my board, but I search where all I konw and try kinds of ways still can’t run OpenCL in my board. Anybody installed successfully OpenCL in Rock960? Hope you can share some exprience to me, I had been spent more than three weeks in this problem include installed caffe…


#2

Hi,

If you want to run OpenCL on ROCK960, you can use the image released by Openai Lab. Use any ftp client to connect to

ftp.openailab.net

the image is at /firmware/v10_20180115 directory

The main difference of this image is the Mali GPU driver version is r18p0 and the user space blob is r18p0 with OpenCL engabled. The Arm Computing Library environment is already setup in the image.


#3

First of all appreciating your response, but I met another problem is how to install the imgs, I try one by one to install them but failed, after installing the board can not run. Then I try to install the origin system.img and install ubuntu-64-mali.img can not run too.

following are my used codes:
First time
rkdeveloptool db rk3399_loader_v1.08.106.bin
rkdeveloptool wl 64 idbloader.img
rkdeveloptool wl 16384 uboot.img
rkdeveloptool wl 24576 trust.img
rkdeveloptool wl 32768 boot.img
rkdeveloptool wl 262144 ubuntu-64-mali.img


Second time :
rkdeveloptool db rk3399_loader_v1.08.106.bin
rkdeveloptool wl 0 system.img
rkdeveloptool wl 262144 ubuntu-64-mali.img


#4


It’s after first codes the screen show the picture


#5

You only need:

rkdeveloptool db rk3399_loader_v1.08.106.bin
rkdeveloptool wl 0 system.img

The system.img should contains everything. Where is the ubuntu-64-mali.img from?

There is /test folder on the ftp. You can check the readme and run the demo.


#6

I open you give me the address just like the picture.


I can’t find the folder you said.


#7

Sorry, my bad. I logged in their FTP with a private user name. Anyway, I have uploaded the mentioned files to https://dl.vamrs.com/products/rock960/docs/sw/ .

Please download the latest from open ai lab ftp: /ROCK960/firmware/Ubuntu/v13_20180518

You should do the following to flash the image:

FIrst, get the partition table from an existing image:

dd if=system.img of=gpt.bin bs=1M count=1

Then flash it

rkdeveloptool db rk3399_loader_v1.08.106.bin

rkdeveloptool wl 0 gpt.bin
rkdeveloptool wl 64 idbloader.img
rkdeveloptool wl 16384 uboot.img
rkdeveloptool wl 24576 trust.img
rkdeveloptool wl 32768 boot.img
rkdeveloptool wl 262144 Xubuntu-aarch64.img