No description
Find a file
August a32f4aeefd dragon: fix pack fail issue
* Since, 8.0(O), due to this commit https://android.googlesource.com/platform/system/extras/+/63362e153f799f41d3e0dd256d8b8281da3f2672 , cache.img compilation gets failed .

* Reason is when we set the size of ext4 file to a group size of 128M(in our case, cache.img size is 128mb), it get crashed when compile a ext4 file because:
  group size = Blocks per group(32768) * Block size(4096)
  last_group_size is set to 0 and aux_info.groups to 1
  But, if aux_info.groups <= 1 , critical_error: "filesystem size too small" is called.
* Yes, this is a bug in make_ext4fs.
* Fixing this issue for our device has two ways, one is switch to mke2fs as it works fine, second either revert the above changes from ext4_utils or fix code.
* According to report, mke2fs is upstream tool of make_ext4fs, and in future google will permanently switch to it. So better to use this on our device instead of putting hands on repo codes.
2019-02-27 18:50:08 +08:00
android Update hwc for 10" panel support, get default_mode from bsp configuration and set 2018-12-13 00:52:49 +08:00
lichee dragon: fix pack fail issue 2019-02-27 18:50:08 +08:00
README.md update readme.md 2018-08-09 15:02:10 +08:00

BPI-A64-Android 8.1

Prepare

Please download oversize files from this link and merge them to the source code.

Get the docker image from Sinovoip Docker Hub , Build the android source with this docker environment.


Build

Build U-boot

$ cd brandy 
$ ./build.sh -p sun50iw1p1

Build Lichee

$ cd lichee
$ ./build.sh config

 Welcome to mkscript setup progress
 All available platform:
    0. android
    1. dragonboard
    2. linux
    3. camdroid
 Choice [dragonboard]: 0
 All available chip:
    0. sun3iw1p1
    1. sun50iw1p1
    2. sun50iw2p1
    3. sun50iw3p1
 ...
 Choice [sun50iw1p1]: 1
 All available kern_ver:
    0. linux-4.9
 Choice [linux-4.9]: 0
 All available board:
    0. dp18
    1. fpga
    2. m64
    3. m64_hdmi
    4. m64_old
 ...
 Choice [m64_hdmi]: 2
 
 $ ./build.sh

Build Android

$ cd ../android
$ source build/envsetup.sh
$ lunch
$ extract-bsp
$ make -j8
$ pack

Flash

The target image is packed at lichee/tools/pack/, flash it to your device by PhoenixCard or LiveSuit.