Firefly Open Source Community

   Login   |   Register   |
New_Topic
12
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        Only Author  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        Only Author  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        Only Author  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

2442

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
2442
Posted at 2/13/2015 10:24:45        Only Author  4#

Re: Mali Drivers

which version of your ubuntu, 32bit or 64 bit?
Reply

Use props Report

543

Credits

19

Prestige

15

Contribution

advanced

Rank: 4

Credits
543
Posted at 2/13/2015 11:38:21        Only Author  5#

Re: Mali Drivers

Have to use 64 bit.


I can compile a kernel, no problem but can't compile a new kernel with the Mali drivers then I get GPU compile errors.

Maybe someone can help and get it working.

Reply

Use props Report

244

Credits

0

Prestige

0

Contribution

intermediate

Rank: 3Rank: 3

Credits
244
Posted at 2/13/2015 13:49:59        Only Author  6#

Re: Mali Drivers

Have to use 64 bit.


I can compile a kernel, no problem but can't compile a new kernel with the Mali drivers then I get GPU compile errors.

Maybe someone can help and get it working.

thank you for your hard work for the community! I believe you can solve errors with your advanced knowledge and experience. we can wait your work!

Reply

Use props Report

12

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
12
Posted at 2/13/2015 19:38:28        Only Author  7#

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

543

Credits

19

Prestige

15

Contribution

advanced

Rank: 4

Credits
543
Posted at 2/13/2015 22:47:50        Only Author  8#

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!"


Can you maybe share the kernel/drivers/ GPU, folders that you modified and upload it as a tar gz file?

Not complete kernel folder, only the changes for the fb driver.


To dual-boot Lubuntu on Firefly, I think it's best to flash with the Windows Tool, it's a single image file and has the correct parameter file and boot-linux image flashed to recovery partition. There is also new firmware if your are using Lubuntu as main OS.

Install the dual-boot 270115 firmware available on Google drive or the Lubuntu single OS.

Reply

Use props Report

844

Credits

42

Prestige

48

Contribution

advanced

Rank: 4

Credits
844
Posted at 2/14/2015 15:03:08        Only Author  9#

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!"


you have to be root to use upgrade_tool:

sudo ./upgrade_tool di -b ../fireflyp5/firefly-rk3288-kernel/boot.img


and in case of dual boot system than you have to flash the linux boot to the recovery partition:

sudo ./upgrade_tool di -r ../fireflyp5/firefly-rk3288-kernel/boot.img


otherwise use rkflashtool (also with root permission)


cheers -

mac

Reply

Use props Report

10

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
10
Posted at 2/23/2015 05:00:51        Only Author  10#

Re: Mali Drivers

New version released.


Kernel Device Driver r5p1-00rel0 – T860/T880 now supported

Released : 17 February 2015


Anybody try to compile, and update the source codes.

Reply

Use props Report

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

This forum Credits Rules

Quick Reply Back to top Back to list