Firefly Open Source Community

Title: Mali Drivers [Print This Page]

Author: boredland    Time: 2/13/2015 05:11
Title: 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


Author: boredland    Time: 2/13/2015 05:52
Title: 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.


Author: boredland    Time: 2/13/2015 06:47
Title: 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"


Author: zhansb    Time: 2/13/2015 10:24
Title: Re: Mali Drivers
which version of your ubuntu, 32bit or 64 bit?
Author: dewet    Time: 2/13/2015 11:38
Title: 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.


Author: naobsd    Time: 2/13/2015 13:49
Title: 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!


Author: boredland    Time: 2/13/2015 19:38
Title: 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!"


Author: dewet    Time: 2/13/2015 22:47
Title: 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.


Author: mac_l1    Time: 2/14/2015 15:03
Title: 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


Author: Jabader    Time: 2/23/2015 05:00
Title: Re: Mali Drivers

New version released.


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

Released : 17 February 2015


Anybody try to compile, and update the source codes.


Author: dewet    Time: 2/23/2015 11:27
Title: Re: Mali Drivers

New version released.


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

Released : 17 February 2015


Anybody try to compile, and update the source codes.


There are now userspace drivers for this, so it's pointless.

Will only be released end March, beginning April by ARM for Firefly.


I really can't understand why ARM is taking so long to release Mali drivers and then it's only for Android.

They release only halve the Linux drivers eg. kernel ones and leave the userspace drivers out.

When full drivers get released, it only works for a specific kernel and specific device and is so slow.

Then it needs another couple of months work by the chip vendors eg. Rockchip to make it usable and fast.

In comparison Intel devices work straight out of the box with Android, Linux and Windows.


Author: cappybob    Time: 2/24/2015 23:56
Title: Re: Mali Drivers

eems to be a little here and a little there.  Another release yesterday along with notification of a new Rockchip board support.


http://www.cnx-software.com/2015/02/23/ ... t76x-gpus/



--cappybob






Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1