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!

Wednesday, 21 November 2012

Samsung's 8 core arm!

I just ran across an article on talking about Samsungs new 8 core processor.

Its new board im guessing since they usually release origien style boards, is going to sport a A15 quad core processor for its main handling of processes, with a 2nd cortex A-7 for kicking in when it needs too.
This looks like an exciting release, and gives us a little peek to maybe what the next Galaxy or Nexus may sport!! These are exciting times, we went from revolutionizing computers to their limits, and that can never really be reached because of the evolution of technology goes as far as the mind, but what's interesting to see here is that we can see the evolution of mobile devices is accelerating quickly, I wouldn't be surprised if it surpassed desktop computing in power very soon!

Progress! .2 in the making.

A great progress has been made! But still, no release of a package or compiled code just yet. I have just gotten farther down the compile. I have figured out my previous error, and it turned out i didn't have the complete list of required libraries, "ump/ump.h: " .

So i compiled those! but i used my local system, and just downloaded the dev libraries for ARMv5 support as the system im currently working on the trimslice is a v5.

Here i found the the UMP required files!

http://www.malideveloper.com/developer-resources/drivers/open-source-mali-gpus-ump-user-space-drivers-source-code.php


But in trying to compile them, i had to install a bunch of more libraries/programs required for building!

So this is where i decided to build it locally as i mentioned above!
I found that fedora has a CROSS compile repo! This was amazing to find. Here whats I did to set that up!


-cd /etc/yum/repos.d/

-wget http://ftp.linux.org.uk/pub/linux/arm/fedora/cross/cross.repo
-yum install armv5tel-redhat-linux-gnueabi-gcc

The resulting installed bin files after the tool chain install were: 


One thing i found interesting was that when i tried installing the above software on the trimslice, it wouldnt install all the packages listed above but only about half of them, so i found compiling on the local system much more easier, but it may not be the right way as it was easy. Too easy and linux dont mix -_-

So now that the compile of the above requirements went through, I was able to get the UMP include files that i Needed, the UMP .so file that i needed for reference in the mali build process.

I uploaded those files below!
https://docs.google.com/open?id=0B9v3xSUsibd8YkNNNTk3b1NYRkk

https://docs.google.com/open?id=0B9v3xSUsibd8dkZScktGdUo2NWM

So now I am currently still trying to build mali (remotely) as now more requirements have come up to display!

There is only one month left to produce some kind of release, and I am feeling that I may not be able to test the driver, but I would like to aim for a driver that doesn't have to be tested, but just compiled, and given to someone that would dive deeper if they have the time.

 Source Tarball's I'm using for reference!

MALI UMP 
EXA/DRI2 and X11 Display Drivers

I am using a trim slice, and the instructions to reach my state were:

  1. Extracted the x11 driver and UMP tarballs onto the trim slice.
  2. Exec the build.sh file in the X11 driver folder to expand the make directory.
  3. executed : yum install @development-tools
  4. Could not compile UMP on TrimSlice So did it on local machine.
  5. ON LOCAL MACHINE
  6.  -cd /etc/yum/repos.d/
    -wget http://ftp.linux.org.uk/pub/linux/arm/fedora/cross/cross.repo
    -yum install armv5tel-redhat-linux-gnueabi-gcc
  7. Compiled UMP locally and SCP'd to trimslice to /usr/include
  8. Got past first error, missing UMP headers, But now getting the error atop!
 

Wednesday, 14 November 2012

More Mali Issues

After running into the problems, 2 posts ago, i dove deeper into research and joined the #mali channel to find some insight on which paths i should take to tackle the problem of getting a successful compiling from source. But that came to an end, because apparently the lima driver is not ready for end users, which is what my project is targeting. I was referenced to the x11 driver page on malideveloper.

http://www.malideveloper.com/files/DX910-SW-99003-r3p1-01rel1.tgz

The compile issue has ran into this problem:


I definitely think this issue has something to do with the build requirements below:


I've tried researching these topics, but haven't really found much end to the problem. I Made sure all the dev libraries were installed, but from there on out, i'm pretty clueless how to go on from here. I will have to try to speak to some mali devs to find out some more light on the subject.

Wednesday, 7 November 2012

SBR600 | .1 Presentation

So Today's the presentation day of my .1 milestone. I am very excited to tell the class on my progress. I am slightly disappointed that I slacked a bit on talking to Chris Tyler on getting my hands on hardware, but alas its been done now and my remote access is on the way! I hope to get my package compiled and sent into fedora for review by the .2 milestone! I have also left my presentation on the bottom of this post for anyone that's interested!

I am going to be working on a TrimSlice until the school gets their hands on a board that has a Mali GPU. The trim slice is going to be exciting to work with. I have been thinking of getting one myself as a media server for the house. It has top of line hardware for it's class, sporting a Tegra 2 chip alike the Asus transformers!

.1 Presentation