BPi Android 4.2 Build Guide

72 19318
ChrisP  
<bool name="def_haptic_feedback">false</bool> is to disable haptic response which cannot be used on this device (pure cosmetic code change)
<bool name="def_install_non_market_apps">true</bool> is to make additionnal apps store accepted by default.
<bool name="def_user_setup_complete">true</bool> is to try to get rid of the inital "wizard" telling you what to do. Not yet so effective :/

ChrisP  
tony_zhang replied at Tue Nov 25, 2014 02:17
Hi Mattrix,
I am also thinking how I release the source code. The source code for Android is too l ...

Hi Tony

Maybe you can first give a link to the tar.gz, then we can figure out if the archive structure is really different from the one we use ?

ChrisP  
Just tried your repo Mattrix but I have an error during kernel compilation:
INFO: build buildroot OK.
INFO: build kernel ...
INFO: prepare toolchain ...
Building kernel
build standby
make: Entering directory `/android/lichee/linux-3.4/arch/arm/mach-sun7i/pm/standby'
rm -rf *.o ../*.o dram/*.o
arm-linux-gnueabi-gcc -I. -I/android/lichee/linux-3.4/include -I/android/lichee/linux-3.4/arch/arm/mach-sun7i/include  -g -c -nostdlib -march=armv7-a -marm -D__STANDBY_MODULE__ -fno-unwind-tables -fno-asynchronous-unwind-tables -mlittle-endian -O0 --min_array_alignment=4 --no_unaligned_access -D DRAM_USE_VA_ADDR common.c           -o common.o
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
make: *** [standby] Error 1
make: Leaving directory `/android/lichee/linux-3.4/arch/arm/mach-sun7i/pm/standby'
ERROR: build kernel Failed

ChrisP  
Edited by ChrisP at Tue Nov 25, 2014 22:10
ChrisP replied at Tue Nov 25, 2014 09:11
Hi Tony

Maybe you can first give a link to the tar.gz, then we can figure out if the archive stru ...


If it's the gz you tried to store here ( https://github.com/LeMaker/firmware ), it's way too big, the files where truncated

Edit: My bad, it's not truncated, it's ~ 16 Mb archives, I had read 16 Gb at first instance.

mattrix  
Edited by mattrix at Tue Nov 25, 2014 14:23
dlanor replied at Tue Nov 25, 2014 00:47
@ChrisP & mattrix, re: multicore use of VMware VS VirtualBox

We're talking about different things h ...


We need the complete source in a GIT repo.
The benefits of having it in a repo is huge and shouldn't need explaining.
Transferring 3GB files around the internet is not good for anyone.

Hosting just the changes as well is not ideal.

The repo will simply be a stock standard STABLE base for android images.
From this base, Stable android images can be built.

As for the VM, I can easily simulate more cores than my host PC has in VirtualBox.
With Vagrant it as simple as setting

  1. config.vm.provider "virtualbox" do |v|
  2.   v.memory = 1024
  3.   v.cpus = 6
  4. end
Copy the Code
This is just telling virtualbox how many cores and memory to simulate.

See here: https://www.virtualbox.org/manual/ch03.html
Section 3.4.2. "rocessor" tab
"On the "rocessor" tab, you can set how many virtual CPU cores the guest operating systems should see. Starting with version 3.0, VirtualBox supports symmetrical multiprocessing (SMP) and can present up to 32 virtual CPU cores to each virtual machine."

It goes on to say
"You should not, however, configure virtual machines to use more CPU cores than you have available physically (real cores, no hyperthreads)."

Which should be true to whatever VM you use.
If you look in the build script for the Kernel, it's actually using -J* anyway

ChrisP  
Edited by ChrisP at Tue Nov 25, 2014 21:27
mattrix replied at Tue Nov 25, 2014 21:20
We need the complete source in a GIT repo.
The benefits of having it in a repo is huge and shouldn ...


Storing the content of the archive on Github yes, storing the gz archive as a blob on Github, no ;)

For the number of Cores, VirtualBox refuse to allocate more vCPU that my cpu have cores, he does not take in account hyperthreading. So 4 vCPU max for a i7 2600k.

mattrix  
ChrisP replied at Tue Nov 25, 2014 03:42
Just tried your repo Mattrix but I have an error during kernel compilation:

Try  cp arch/arm/configs/banana_pi_config .config  before building

I will replace the .config in the repo with that

mattrix  
Edited by mattrix at Tue Nov 25, 2014 15:07
ChrisP replied at Tue Nov 25, 2014 14:25
Storing the content of the archive on Github yes, storing the gz archive as a blob on Github, no ; ...


Exactly.
Storing a .gz on github completely defeats the purpose

Have just updated the repo to use the bananan_config as it's default .config
So, build should work out of the box.


Once we get a working Repo, we can all work on removing "bloat", making sure it still compiles and then commit changes.
Chris - do you have a GITHUB username? I can add as contributor?

I have also added a new directory called "scripts"

Have 3 handy scripts in here

1) install_14.04.sh   #this installs all the dependencies for Ubuntu 14.04
2) install_12.04.sh   #this installs all the dependencies for Ubuntu 12.04
3) build.sh   #this runs all the install commands from the first post here  (haven't fully tested)

Therefore, for someone to start building, it should be as easy as
  1. git clone https://github.com/matthuisman/android android
  2. cd android/scripts
  3. ./install_14.04.sh
  4. ./build.sh
Copy the Code
My goal is always "as easy as possible" for the end-user.
The more people we get on to it - the more chances of great things!

ChrisP  
Ok, I'll restart from a fresh base to avoid any issues, I'm not yet very confortable with git.

mattrix  
ChrisP replied at Tue Nov 25, 2014 15:05
Ok, I'll restart from a fresh base to avoid any issues, I'm not yet very confortable with git.

i'm pretty new to GIT myself.

Stayed on SVN for ages.

git checkout . (in top directory) will revert any changes made back to match the current GIT head.
git pull (in top directory) will pull all new changed from the git repository

The .gitingore is pretty good at the moment.
Shouldn't pickup all the compiled modules etc.
A few things still need to be added, but pretty good.

You have to log in before you can reply Login | Sign Up

Points Rules