LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 01-16-2015, 09:57 PM   #1
linux_walt
Member
 
Registered: Dec 2014
Location: Houston, TX
Distribution: Debian wheezy
Posts: 127

Rep: Reputation: 29
Instructions in repository README file: "not for standalone use"


Hello, I'm trying to understand the instructions in a README file:

~/sunxi-mali-proprietary/README
Quote:
This repository contains the Mali-400 proprietary libraries.

It is not for standalone use and should instead be used as a submodule for the sunxi-mali repository, which includes a build system.
I also have the repository: ~/sunxi-mali

What does the README file mean by "should instead be used as a submodule for the sunxi-mali repository"? Do I need to put the proprietary repository somewhere inside the sunxi-mali repository?

... Just found this:
http://man7.org/linux/man-pages/man1/git-submodule.1.html
Reading it now.

Last edited by linux_walt; 01-16-2015 at 10:33 PM.
 
Old 01-16-2015, 10:38 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
should instead be used as a submodule for the sunxi-mali repository
Since it's a git repository it is saying you should put the proprietary submodule in the main repository. But usually the main repository has by default such modules included. See that your sunxi-mali repository has submodule for proprietary module. For more info see man page of git-submodule.
 
1 members found this post helpful.
Old 01-16-2015, 11:17 PM   #3
linux_walt
Member
 
Registered: Dec 2014
Location: Houston, TX
Distribution: Debian wheezy
Posts: 127

Original Poster
Rep: Reputation: 29
Thanks veerain, I looked into the sunxi-mali repository and found the instructions on what to do next:

~/sunxi-mali$ cat README
Quote:
Mali userspace driver installation.
-----------------------------------

This repository contains a complete set of Mali userspace drivers, including proprietary OpenGLESv2/EGL binaries.

Prerequisite:
-------------

You will need to have a matching version of libUMP installed.

You can get this from the linux sunxi package server, which is documented at http://linux-sunxi.org/Packages

Or you can manually build libump from the sunxi libump git repository at https://github.com/linux-sunxi/libump

Cloning this repository:
------------------------

> git clone https://github.com/linux-sunxi/sunxi-mali.git
> git submodule init
> git submodule update

This should make sure that you fully set up this repository and the sunxi-mali-proprietary submodule.

Installing the binaries:
------------------------

First off, while there are some android binaries present, there is currently no support for installing the android binaries, you will have to do so manually.

When everything goes well, all you need to do is run:

> make install

This should autodetect things, and install the correct mali GLES and EGL libraries in your system.
After doing everything up to and including 'make install', it created a new folder (maybe the folder was already there, it just added files):
~/sunxi-mali/lib/mali$ ls -al
Code:
total 11
drwxr-xr-x 6 walter walter 1024 Jan 16 22:55 .
drwxr-xr-x 3 walter walter 1024 Jan 16 21:21 ..
-rw-r--r-- 1 walter walter   36 Jan 16 22:55 .git
-rw-r--r-- 1 walter walter  186 Jan 16 22:55 Makefile
-rw-r--r-- 1 walter walter  764 Jan 16 22:55 Makefile.mashup
-rw-r--r-- 1 walter walter  591 Jan 16 22:55 Makefile.split
-rw-r--r-- 1 walter walter  337 Jan 16 22:55 README
drwxr-xr-x 4 walter walter 1024 Jan 16 22:55 r2p4
drwxr-xr-x 4 walter walter 1024 Jan 16 22:55 r3p0
drwxr-xr-x 3 walter walter 1024 Jan 16 22:55 r3p1
drwxr-xr-x 3 walter walter 1024 Jan 16 22:55 r3p2-01rel1
A new git repository added inside sunxi-mali repository. There is also a new file '.gitmodules':
~$ cat sunxi-mali/.gitmodules
Code:
[submodule "lib/mali"]
        path = lib/mali
        url = https://github.com/linux-sunxi/sunxi-mali-proprietary.git
Does this mean that it will go online to fetch the sunxi-mali-proprietary repository? Can I change this so it uses my local copy, or maybe that's a bad idea?

Last edited by linux_walt; 01-16-2015 at 11:30 PM.
 
Old 01-16-2015, 11:43 PM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Yes it will go online to fetch proprietary submodule.

You can change the path to local proprietary git module.

url = https://github.com/linux-sunxi/sunxi...roprietary.git

to instead url = file://absolutepathtosunxi-mali-proprietary

You should have checked out the master branch of sunxi-mali-proprietary with git checkout master.

Then you should pull the sunxi-mali.
 
1 members found this post helpful.
Old 01-17-2015, 12:02 AM   #5
linux_walt
Member
 
Registered: Dec 2014
Location: Houston, TX
Distribution: Debian wheezy
Posts: 127

Original Poster
Rep: Reputation: 29
Thank veerain, all the video drivers seem to be installed correctly now. There is a GL test program in sunxi-mali, a colored triangle, that is now working. Also mplayer's xv video output is now working.

YESSS!!! One week, but worth it. I think, maybe.

I guess instead of jumping up and down about it, an explanation of what followed after installing the new drivers would be more useful.

Originally mplayer had a glitch, you could not resize the video. The solution to this was to install a driver called 'fbturbo'.

Next came installation of the above GL drivers. Even though everything finally compiled and installed without errors, the GL test program didn't work. The error was: 'eglinitialize failed!'. Also, 'lsmod' was not showing any drivers. Everything was fixed after rebuilding the 'fbturbo' driver. At least as best I can recall that was how things went.

Almost forgot, lesson learned: read ALL the README files in the repositories you are using. Some have very specific instructions that may not be included in a 'how to build this package' guide.

In this case, the instructions of what to do with the submodule where in the README file of the parent module.

Last edited by linux_walt; 01-17-2015 at 03:16 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LFTP - ls can see files but "get: Access failed: 404 filenotfound (.\ReadMe.txt)" occ MatthewSmith Linux - Laptop and Netbook 2 08-02-2012 02:32 PM
unpredictable "delete" "move to trash" or "cut" file menu option dorianrenato Linux - General 3 11-28-2011 06:41 PM
Package Kit Error-- "Cannot retrieve repository metadata (repomd.xml) for repository" mbvpixies78 Linux - Newbie 11 08-22-2008 07:20 PM
Local repository message: " ... missing from override file" babypeng Linux - Newbie 0 06-12-2008 12:55 AM
how can I set up a "box.net" style central file repository??? callagga Linux - Software 9 01-29-2008 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration