Banana Pi BPI-M64 android 7 source code

Banana Pi BPI-M64 android 7 source code

After many trials & error, this morning I achieved to bootup succesfully by compiling above source code & sdk.

Prequisities:

  • Any linux machine ( Native or VM )
  • Internet connection
  • git & Docker must be installed

Here is what I did:

  1. git clone https://github.com/BPI-SINOVOIP/BPI-A64-Android7.git BPI-ANDROID-BSP

  2. Above source code has missing toolchain, you can download here:

After download, you need to copy it to toolchain dir:

mv gcc-linaro-aarch64.tar.xz BPI-ANDROID-BSP/lichee/tools/build/toolchain/

  1. Now we are ready to build:

time docker run -it -v /F250/BPI-ANDROID-BSP/:/media/ sinovoip/bpi-build-android-7:ubuntu16.04 /bin/bash -c 'cd /media/lichee && ./build.sh -p sun50iw1p1 -k linux-3.10 && cd ../android && source build/envsetup.sh && lunch 24 && extract-bsp && export USER=root && make -j8 && pack' | tee -a buildlog.txt

Notes:

  1. Do you see “export USER=root” ??? Android make fails if I don’t set this environment variable
  2. For the initial config, I used:

./build.sh -p sun50iw1p1 -k linux-3.10

I don’t know if this is true or not. But my board can boot with this. If I select board manually by triggering “./build.sh” only, my board doesn’t boot, it fails to find a valid ext4 partition in the image. May be a bug in the SDK ?

  1. This image doesn’t have any GAPPS ( No google play store ! ). I am looking for a way to port it.

  2. I use scrcpy , highly recommend to developers. It is an amazing software I think.

  3. The LOADAVG seems to have a problem I think:

    stulluk /F250/BPI-ANDROID-BSP (master) $ adb shell

    tulip-m64-hdmi:/ $ su

    tulip-m64-hdmi:/ # uptime

    08:24:31 up 22 min, 0 users, load average: 2.13, 2.15, 1.69

    tulip-m64-hdmi:/ # cat /proc/loadavg

    2.11 2.14 1.70 3/654 4756

    tulip-m64-hdmi:/ # uname -a

    Linux localhost 3.10.65 #1 SMP PREEMPT Sat Sep 26 14:49:13 UTC 2020 aarch64

    tulip-m64-hdmi:/ # cat /sys/class/thermal/thermal_zone0/temp

    33

    tulip-m64-hdmi:/ #

1 Like