Friday 7 December 2012

.3 Release | Compileable Source Code!


I am happy to say that my driver code can successfully build on an Arm A9 Device!.

I have not tested the release on a mali device, but am looking forward to doing so! I will probably be getting my hands on an Android Mk803 in the next coming weeks and continue my work with it. As class time has ran out, I had a pleasure working through the bugs, fixes, and issues, with only my Professors and Classmates to thank.

I have uploaded three files for download.

  1. malidriver.tar.gz (Driver source code with UMPLOCK fix/patched)
  2. mali-includes.tar.gz (Compiled Library files for inclusion into your /usr/include/ folder)
  3. malilibs.tar.gz (More mali requirements, which needed to be compiled and issued a make install)
Some libraries were required for me to install during this process.
I had to get:

  • xorg-x11-util-macros.noarch & xorg-x11-server-devel.armv5tel
  • groupinstall "X Software Development"
I issued the Following commands to make the drivers:

As soon as i get my hands on the mk803, I will be posting more updates on my progress in getting X to work on it!

Tuesday 4 December 2012

More Progress!

It seems that I have solved the error I was running into. It seems that i was missing libraries for Mali and UMP !

Hence this error:
/bin/ld: cannot find -lMali
/bin/ld: cannot find -lUMP
But alas! I found this git hub!
https://github.com/linux-sunxi/mali-libs
So i did a git clone on the above hub, and tried to make it with:
make VERSION=r3p0 ABI=armhf framebuffer
 and got permission errors!
install: cannot create regular file `/usr/lib/libUMP.so': Permission denied
install: cannot create regular file `/usr/lib/libMali.so': Permission denied
So i did an evil thing, and re-ran the above command with sudo. This was the output i got..

Seemed right to me. So i went back to trying to compile the mali driver and finally got some promising output [below]. I am just waiting for confirmation of it being positive or negative! I hope to post more this week!


Some updates!

Well I seem to have been getting some progress while my posts have been not increasing.

I would like to thank Chris Tyler and Raymond Chan for their endlesss motivation, which always drives me to get further and do more!

So with my motivation to get by, I ended up finding a post by Sven from Miniand Tech, in where he was running into the same problem i was having. I found his guide quite helpful! But it wasn't so easy! With the help of Andrei Martinenco, I have gotten past some key errors. I had some C mistakes in one of my libraries that were needed for compiling the Mali driver. In my previous error, I kept running into the following:

fatal error: umplock/umplock_ioctl.h: No such file or directory
The guide pointed me into creating the umplock directory and the .h file above! With andrei's help my final umplock_ioctl.h file looked like this!


I am now running into another problem [below] which i am working on fixing at the moment.


This is significant progress! And Chris Tyler did tell me that he has a mali board now, but with only 3 days left, I don't think i will be able to do testing as he mentioned getting it too boot might be difficult. But i hope to get an rpm packaged and handed to Chris Tyler and Raymond Chan in hopes of helping someone in future completion!