Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:edge2:development:android:build-android

This is an old revision of the document!


Edge2 Build Android

Introduction

This document mainly introduces how to compile the Android source code. You will learn how to compile different versions of android source code.

Preparation

Building

Before you start to build, make sure you have done all the Preperations listed above.

Android 12.0

Build ALL:

$ cd PATH_YOUR_PROJECT
$ ./enjoy.sh

Build U-Boot:

$ cd PATH_YOUR_PROJECT
$ cd u-boot
$ ./make.sh rk3588

Build kernel:

$ cd PATH_YOUR_PROJECT
$ source build/envsetup.sh
$ lunch rk3588_s-userdebug
$ ./build.sh -K

Build Android:

$ cd PATH_YOUR_PROJECT
$ source build/envsetup.sh
$ lunch rk3588_s-userdebug
$ ./build.sh -A

Replace N as the number you want when you run make -jN.

After executing ./build.sh -u, generate a complete firmware package in the rockdev/Image-xxx/directory(xxx is the product name of the specific lunch).

rockdev/Image-xxx/
├── boot-debug.img
├── boot.img
├── config.cfg
├── dtbo.img
├── MiniLoaderAll.bin
├── misc.img
├── parameter.txt
├── pcba_small_misc.img
├── pcba_whole_misc.img
├── recovery.img
├── resource.img
├── super.img
├── uboot.img
├── update.img
└── vbmeta.img

Packing update.img:

$ cd PATH_YOUR_PROJECT
$ source build/envsetup.sh
$ lunch rk3588_s-userdebug
$ ./build.sh -u

See Also

Last modified: 2022/08/02 21:06 by haylrn