Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

Mali Drivers

12

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
12
Posted at 2/13/2015 05:11:14      1#

Mali Drivers

Hi there,

for a few days now the userspace drivers (r5p0-06rel0) are available. From what I understand we don't have the kernel drivers yet integrated into the kernel.

Therefore we'd have to recompile the kernel with the kernel drivers. Could anyone lead me into the direction how to integrate them?

Userspace drivers:

http://malideveloper.arm.com/develop-fo ... e-drivers/

Kernel drivers:

http://malideveloper.arm.com/develop-fo ... e-drivers/

And in addition: what else is needed for compiling some OpenCl-application?

Yours

Jonas

Reply

Use props Report

12

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
12
Posted at 2/13/2015 05:52:58      2#

Re: Mali Drivers

"In order to use this, you will also need to build the kernel-side driver and replace the kernel in your build.  This can be achieved by following the Firefly wiki page I mentioned earlier and starting with this Linux repository (master branch):

T-Firefly / Firefly-RK3288-kernel / Commits — Bitbucket


It has an early r4p1 kernel-side Mali GPU driver, which is not compatible with the new r5p0 user-side driver.  So you need to upgrade the kernel-side Mali driver with the source code archive from this page:

http://malideveloper.arm.com/develop-fo ... e-drivers/


You'll need to remove the main drivers files under drivers/gpu/arm/, but not drivers/gpu/arm/midgard/platform/rk which contains the RK3288 platform support files, and replace them with the files from the archive.  Some relatively small changes may be needed in the RK3288 platform files to make it work with the new r5p0 driver; sorry we haven't got a patch for that at the moment."


From http://community.arm.com/thread/7258

I'll try that in the next days.

Reply

Use props Report

12

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
12
Posted at 2/13/2015 06:47:06      3#

Re: Mali Drivers

Well. I don't get the kernel (tried it natively on the firefly directly):

"/home/firefly/firefly-rk3288-kernel/mkkrnlimg: 1: /home/firefly/firefly-rk3288-kernel/mkkrnlimg: Syntax error: "(" unexpected

make: *** [kernel.img] Error 2"

I did:

"git clone https://bitbucket.org/T-Firefly/firefly ... kernel.git"

"make firefly-rk3288-linux_defconfig"

"make -j8 firefly-rk3288.img"

Reply

Use props Report

12

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
12
Posted at 2/13/2015 19:38:28      4#

Re: Mali Drivers

I successfully got the Kernel to compile with the new Kernel drivers, propably. Sady I don't understand where and how I've got to change the parameter file. I think that, somehow, is wrong in the default version, since trying to flash brings me up:

"$ ./upgrade_tool di -b ../fireflyp5/firefly-rk3288-kernel/boot.img
parameter is invalid,please check!"

Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list