PINE64
New procedure for building Android from source - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Android on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=5)
+--- Thread: New procedure for building Android from source (/showthread.php?tid=1970)

Pages: 1 2 3 4


RE: New procedure for building Android from source - secuflag - 08-18-2016

(08-09-2016, 03:13 PM)jonsmirl Wrote: This build will run into several issues on Ubuntu 16.04.

Do you mean errors about "relocation error 43" or something like that? If yes, cherry-pick this commit to solve: https://android.googlesource.com/platform/build/+/5ff9c81b6c0f23dfbc08c95c1294b3b37110ecf0


RE: New procedure for building Android from source - jonsmirl - 08-18-2016

"relocation error 43" is one of several errors you will hit when building on 16.04. Note that building Android on 16.04 is not supported by Google's AOSP. You can make it work by fixing various things. If you build on 14.04 you won't have any problems.

Another issue with building AOSP on 16.04 is that it wants OpenJDK 7 which is no longer an install option on 16.04. You have to hack around with the Java support to make something else work.

Easy solution is just to make a 14.04 VirtualBox on 16.04


RE: New procedure for building Android from source - secuflag - 08-18-2016

I'm on Linux Mint 18 and I don't have any problem, I just had to set

Code:
export JAVA_HOME=/path/to/JDK7
export PATH=$PATH:/path/to/JDK7/bin

to compile AOSP with JDK7 instead of the v8.


@jonsmirl: I made a small patch to solve this error while building u-boot:
Quote:Makefile:1200: *** missing separator.

See here: http://pastebin.com/raw/bMZAhudn


RE: New procedure for building Android from source - Hahaburger - 08-18-2016

I have a question about commits. There are two "Initial Pine64 checkin" commits on some projects.
Does the first commit comes from BSP 1.0 and the other one comes from BSP 1.2?


RE: New procedure for building Android from source - jonsmirl - 08-18-2016

(08-18-2016, 12:15 PM)Hahaburger Wrote: I have a question about commits. There are two "Initial Pine64 checkin" commits on some projects.
Does the first commit comes from BSP 1.0 and the other one comes from BSP 1.2?

I forgot to do a 'git add -A' on the first commit. So the first commit is all of the deltas, the second commit is the new files.

I had already uploaded before I noticed and didn't want to redo the upload. Maybe there is way to combine the commits?

(08-18-2016, 11:40 AM)secuflag Wrote: I'm on Linux Mint 18 and I don't have any problem, I just had to set

Code:
export JAVA_HOME=/path/to/JDK7
export PATH=$PATH:/path/to/JDK7/bin

to compile AOSP with JDK7 instead of the v8.


@jonsmirl: I made a small patch to solve this error while building u-boot:
Quote:Makefile:1200: *** missing separator.

See here: http://pastebin.com/raw/bMZAhudn

I pushed the fix up. It did not error on Ubuntu 14.04.

For more complex fixes, fork the repo, commit your changes, and then send a pull request.


RE: New procedure for building Android from source - NGC6691 - 08-22-2016

@jonsmirl: Thanks for your hard work, I finally got a booting image Big Grin
As far as I can see the default output it's set to 720p, it's possible to change to 1080p instead of 720p? For sure there is a file to modify somewhere but don't know which/where.

Thanks!


RE: New procedure for building Android from source - jonsmirl - 08-22-2016

I am missing the Pine specific patches to provide the UI for changing video modes and also the camera support. I can add those to the tree if someone gives them to me. I am also unsure how they added Google Play to the pre-built images.

From what I can tell the low level kernel support is there, it is just missing the UI for accessing it.


RE: New procedure for building Android from source - NGC6691 - 08-23-2016

In the Android SDK ver 6.0 all commits are signed by liangyongjie[at]allwinnertech.com
Maybe you should write to him and ask for an updated version.


RE: New procedure for building Android from source - jonsmirl - 08-25-2016

Chinese OEM for Pine64 has Android 6 access from Allwinner. They just need to give us a copy. Even better -- do what I did and only check in only the deltas to Google's AOSP.

If you are going to make the 18GB snapshot (which is more work than just checking in the AOSP deltas), please use 'tar' this time so that permissions are preserved.


RE: New procedure for building Android from source - ayufan - 08-29-2016

I did manage to build Android 6.0 from their sources. It's still not starting, because of HDMI issues, but I'm near that Smile

It crashes on Mail GPU driver.