This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:edge2:development:android:build-android [2022/08/01 22:43] haylrn |
products:sbc:edge2:development:android:build-android [2024/10/28 06:15] (current) xiong |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{indexmenu_n> | + | {{indexmenu_n> |
| Line 6: | Line 6: | ||
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | This document mainly introduces how to compile the Android source code. You will learn how to compile different versions of android | + | This document mainly introduces how to compile the Android source code. You will learn how to compile different versions of Android |
| ===== Preparation ===== | ===== Preparation ===== | ||
| Line 21: | Line 21: | ||
| - | <tabbox Android 10.0> | + | Build ALL: |
| - | Build U-Boot: | + | |
| ```shell | ```shell | ||
| $ cd PATH_YOUR_PROJECT | $ cd PATH_YOUR_PROJECT | ||
| - | $ cd u-boot | + | $ source build/ |
| - | $ make mrproper | + | $ lunch kedge2-userdebug |
| - | $ ./make.sh kedge | + | $ ./build.sh -UCKAou |
| ``` | ``` | ||
| + | You can also distribute compilations: | ||
| - | Build kernel: | ||
| - | ```shell | ||
| - | $ cd PATH_YOUR_PROJECT | ||
| - | $ cd kernel | ||
| - | $ make ARCH=arm64 kedge_defconfig android-10.config rk3399.config | ||
| - | $ make ARCH=arm64 rk3399-khadas-edge-android.img -jN | ||
| - | ``` | ||
| - | Build Android: | + | Build U-Boot: |
| ```shell | ```shell | ||
| $ cd PATH_YOUR_PROJECT | $ cd PATH_YOUR_PROJECT | ||
| $ source build/ | $ source build/ | ||
| - | $ lunch rk3399_Android10-userdebug | + | $ lunch kedge2-userdebug |
| - | $ make installclean | + | $ ./build.sh -Uu |
| - | $ make -jN | + | |
| - | $ ./mkimage.sh | + | |
| ``` | ``` | ||
| - | <WRAP info > | + | Build kernel: |
| - | Replace '' | + | |
| - | </ | + | |
| - | + | ||
| - | After executing '' | + | |
| - | + | ||
| - | ``` | + | |
| - | rockdev/ | + | |
| - | ├── MiniLoaderAll.bin | + | |
| - | ├── boot.img | + | |
| - | ├── dtbo.img | + | |
| - | ├── | + | |
| - | ├── misc.img | + | |
| - | ├── oem.img | + | |
| - | ├── parameter.txt | + | |
| - | ├── pcba_small_misc.img | + | |
| - | ├── pcba_whole_misc.img | + | |
| - | ├── recovery.img | + | |
| - | ├── resource.img | + | |
| - | ├── system.img | + | |
| - | ├── trust.img | + | |
| - | ├── uboot.img | + | |
| - | ├── update.img | + | |
| - | ├── vbmeta.img | + | |
| - | ├── super.img | + | |
| - | └── vendor.img | + | |
| - | ``` | + | |
| - | + | ||
| - | Packing update.img: | + | |
| ```shell | ```shell | ||
| $ cd PATH_YOUR_PROJECT | $ cd PATH_YOUR_PROJECT | ||
| $ source build/ | $ source build/ | ||
| - | $ lunch rk3399_Android10-userdebug | + | $ lunch kedge2-userdebug |
| - | $ ./pack_image.sh | + | $ ./build.sh -CKu |
| ``` | ``` | ||
| - | <tabbox Android 9.0> | + | Build Android: |
| - | + | ||
| - | Build U-Boot: | + | |
| ```shell | ```shell | ||
| $ cd PATH_YOUR_PROJECT | $ cd PATH_YOUR_PROJECT | ||
| - | $ cd u-boot | + | $ source build/ |
| - | $ make mrproper | + | $ lunch kedge2-userdebug |
| - | $ ./make.sh kedge | + | $ ./build.sh -Au |
| ``` | ``` | ||
| - | Build kernel: | + | Build OTA: |
| ```shell | ```shell | ||
| $ cd PATH_YOUR_PROJECT | $ cd PATH_YOUR_PROJECT | ||
| - | $ cd kernel | + | $ source build/ |
| - | $ make ARCH=arm64 kedge_defconfig | + | $ lunch kedge2-userdebug |
| - | $ make ARCH=arm64 rk3399-khadas-edge-android.img -jN | + | $ ./ |
| ``` | ``` | ||
| - | Build Android: | ||
| - | |||
| - | ```shell | ||
| - | $ cd PATH_YOUR_PROJECT | ||
| - | $ source build/ | ||
| - | $ lunch rk3399-userdebug | ||
| - | $ make installclean | ||
| - | $ make -jN | ||
| - | $ ./ | ||
| - | ``` | ||
| <WRAP info > | <WRAP info > | ||
| - | Replace | + | |
| </ | </ | ||
| - | After executing '' | + | After executing '' |
| ``` | ``` | ||
| rockdev/ | rockdev/ | ||
| - | ├── | + | ├── |
| ├── boot.img | ├── boot.img | ||
| + | ├── config.cfg | ||
| ├── dtbo.img | ├── dtbo.img | ||
| - | ├── | + | ├── |
| ├── misc.img | ├── misc.img | ||
| - | ├── oem.img | ||
| ├── parameter.txt | ├── parameter.txt | ||
| ├── pcba_small_misc.img | ├── pcba_small_misc.img | ||
| Line 136: | Line 86: | ||
| ├── recovery.img | ├── recovery.img | ||
| ├── resource.img | ├── resource.img | ||
| - | ├── | + | ├── |
| - | ├── trust.img | + | |
| ├── uboot.img | ├── uboot.img | ||
| ├── update.img | ├── update.img | ||
| - | ├── vbmeta.img | + | └── vbmeta.img |
| ``` | ``` | ||
| Line 148: | Line 97: | ||
| $ cd PATH_YOUR_PROJECT | $ cd PATH_YOUR_PROJECT | ||
| $ source build/ | $ source build/ | ||
| - | $ lunch rk3399-userdebug | + | $ lunch kedge2-userdebug |
| - | $ ./pack_image.sh | + | $ ./build.sh -u |
| ``` | ``` | ||
| - | <tabbox Android 7.1> | + | < |
| - | + | After compiling, you need to reload | |
| - | + | ||
| - | Build U-Boot: | + | |
| - | + | ||
| - | ```shell | + | |
| - | $ cd PATH_YOUR_PROJECT | + | |
| - | $ cd uboot | + | |
| - | $ make kedge_defconfig | + | |
| - | $ make ARCHV=aarch64 | + | |
| - | ``` | + | |
| - | + | ||
| - | Build kernel: | + | |
| - | + | ||
| - | ```shell | + | |
| - | $ cd PATH_YOUR_PROJECT | + | |
| - | $ cd kernel | + | |
| - | $ make ARCH=arm64 kedge_defconfig -jN | + | |
| - | $ make ARCH=arm64 rk3399-khadas-edge-android.img -jN | + | |
| - | ``` | + | |
| - | + | ||
| - | Build Android: | + | |
| - | + | ||
| - | ```shell | + | |
| - | $ cd PATH_YOUR_PROJECT | + | |
| - | $ source build/ | + | |
| - | $ lunch rk3399_all-userdebug | + | |
| - | $ make installclean | + | |
| - | $ make -jN | + | |
| - | $ ./ | + | |
| - | ``` | + | |
| - | + | ||
| - | < | + | |
| - | Replace | + | |
| </ | </ | ||
| - | After executing '' | + | ===== See Also ===== |
| - | ``` | + | * [[/products/ |
| - | rockdev/Image-xxx/ | + | * [[/ |
| - | ├── boot.img | + | |
| - | ├── kernel.img | + | |
| - | ├── misc.img | + | |
| - | ├── parameter.txt | + | |
| - | ├── recovery.img | + | |
| - | ├── resource.img | + | |
| - | ├── RK3399MiniLoaderAll.bin | + | |
| - | ├── system.img | + | |
| - | ├── trust.img | + | |
| - | └── uboot.img | + | |
| - | ``` | + | |
| - | Packing '' | ||
| - | |||
| - | ```shell | ||
| - | $ cd PATH_YOUR_PROJECT | ||
| - | $ source build/ | ||
| - | $ lunch rk3399_all-userdebug | ||
| - | $ ./ | ||
| - | ``` | ||
| - | |||
| - | </ | ||
| - | |||
| - | ===== See Also ===== | ||
| - | * [[/ | ||
| - | * [[/ | ||
| - | {{indexmenu_n> | ||