Difference between revisions of "Android SDK for RK3566"

From PINE64
Jump to navigation Jump to search
 
(14 intermediate revisions by one other user not shown)
Line 3: Line 3:
== QUARTZ64_SDK_android11 ==
== QUARTZ64_SDK_android11 ==


=== Android 11 SDK for Quartz64 model A SBC and SOQuartz ===
=== Android 11 SDK ===
for Quartz64 model A SBC and SOQuartz
* [http://files.pine64.org/SDK/Quartz64/QUARTZ64_SDK_android11.tar.gz Direct Download from pine64.org]
* [http://files.pine64.org/SDK/Quartz64/QUARTZ64_SDK_android11.tar.gz Direct Download from pine64.org]
** MD5 (TAR-GZip file): 77c2ff57ea3372fb04da7fb49e17d12b
** MD5 (TAR-GZip file): 77c2ff57ea3372fb04da7fb49e17d12b
** File Size: 79.00GB
** File Size: 79.00GB
** Just the boot blobs (<1MB): [[File:Rk35-blobs.tar.gz]]
** Just the boot blobs (<1MB): [[File:Rk35-blobs.tar.gz]]
** Android build version:  
** Android build version:


== QUARTZ64-model-A_eink.android11_SDK ==
== QUARTZ64-model-A_eink.android11_SDK ==


=== Android 11 eink SDK for PineNote and Quart64 model A SBC  ===
=== Android 11 eink SDK ===
* This is the Android SDK build for 10.3" eink panel on Quartz64 model A SBC.
for PineNote and Quart64 model A SBC
* [http://files.pine64.org/SDK/Quartz64/QUARTZ64-model-A_eink.android11_SDK.tar.gz Direct Download from pine64.org]
* [http://files.pine64.org/SDK/Quartz64/QUARTZ64-model-A_eink.android11_SDK.tar.gz Direct Download from pine64.org]
** MD5 (TAR-GZip file): 293a550584298de4fb95ceae18103672
** MD5 (TAR-GZip file): 293a550584298de4fb95ceae18103672
** File Size: 72.88GB
** File Size: 72.88GB
** Just the boot blobs (<1MB): [[File:Rk35-blobs.tar.gz]]
** Just the boot blobs (<1MB): [[File:Rk35-blobs.tar.gz]]
** Android build version:  
** Android build version:


== Compiling ==
== Compiling ==
Line 26: Line 27:
* At least 16G RAM
* At least 16G RAM
* At least 250G free storage, preferably SSD based
* At least 250G free storage, preferably SSD based
* Use a POSIX compliant shell such as bash, not zsh (in Manjaro "chsh -s /bin/bash username")
==== Manjaro packages ====
The following packages are needed (install with "sudo pacman -S packagename"):-
* make
* gcc
* python-pip
* dtc
* bison
* flex
* cpio
* unzip
* zip
Once this is done run
* pip install pyelftools
** sudo isn't needed
You will also need libncurses.so.5. The easiest way to install this appears to be using an Arch AUR package.
* Enable AUR
* pamac install ncurses5-compat-libs
** don't use sudo


=== Patches ===
=== Patches ===
Line 36: Line 58:
* rk3566_ebook/u-boot/scripts/dtc/dtc-lexer.lex.c
* rk3566_ebook/u-boot/scripts/dtc/dtc-lexer.lex.c
* rk3566_ebook/u-boot/scripts/dtc/dtc-lexer.lex.c_shipped
* rk3566_ebook/u-boot/scripts/dtc/dtc-lexer.lex.c_shipped
* [https://wiki.pine64.org/images/c/ca/QUARTZ64-model-A_eink.android11_SDK.patches.04112021.tar QUARTZ64-model-A_eink.android11_SDK.patches.04112021.tar]
* Download link [https://wiki.pine64.org/images/c/ca/QUARTZ64-model-A_eink.android11_SDK.patches.04112021.tar QUARTZ64-model-A_eink.android11_SDK.patches.04112021.tar]
* Only the PineNote target has been tested at this time.


=== Compilation process ===
=== Compilation process ===
* cd rk3566
* cd rk3566 (for non eink)
* cd rk3566_ebook (for eink)
* source build/envsetup.sh
* source build/envsetup.sh
* lunch
* lunch
* ./build.sh -UCKAu
* ./build.sh -UCKAu
[[Category:SOQuartz]] [[Category:SOQuartz]]

Latest revision as of 16:45, 20 February 2023

Two Android SDKs are available from Pine64 for RK3566 devices:-

QUARTZ64_SDK_android11

Android 11 SDK

for Quartz64 model A SBC and SOQuartz

QUARTZ64-model-A_eink.android11_SDK

Android 11 eink SDK

for PineNote and Quart64 model A SBC

Compiling

Build machine

  • 64 bit Linux (Manjaro tested)
  • At least 16G RAM
  • At least 250G free storage, preferably SSD based
  • Use a POSIX compliant shell such as bash, not zsh (in Manjaro "chsh -s /bin/bash username")

Manjaro packages

The following packages are needed (install with "sudo pacman -S packagename"):-

  • make
  • gcc
  • python-pip
  • dtc
  • bison
  • flex
  • cpio
  • unzip
  • zip

Once this is done run

  • pip install pyelftools
    • sudo isn't needed

You will also need libncurses.so.5. The easiest way to install this appears to be using an Arch AUR package.

  • Enable AUR
  • pamac install ncurses5-compat-libs
    • don't use sudo

Patches

QUARTZ64-model-A_eink.android11_SDK

For QUARTZ64-model-A_eink.android11_SDK the following files will need to be updated:-

  • rk3566_ebook/u-boot/arch/arm/mach-rockchip/decode_bl31.py
  • rk3566_ebook/u-boot/arch/arm/dts/Makefile
  • rk3566_ebook/u-boot/scripts/dtc/dtc-lexer.l
  • rk3566_ebook/u-boot/scripts/dtc/dtc-lexer.lex.c
  • rk3566_ebook/u-boot/scripts/dtc/dtc-lexer.lex.c_shipped
  • Download link QUARTZ64-model-A_eink.android11_SDK.patches.04112021.tar
  • Only the PineNote target has been tested at this time.

Compilation process

  • cd rk3566 (for non eink)
  • cd rk3566_ebook (for eink)
  • source build/envsetup.sh
  • lunch
  • ./build.sh -UCKAu