This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
products:sbc:vim3:development:android:build-android [2022/07/06 10:12] 127.0.0.1 external edit |
products:sbc:vim3:development:android:build-android [2024/10/28 02:35] (current) xiong |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{indexmenu_n> | + | {{indexmenu_n> |
| + | ====== VIM3/3L Build Android ====== | ||
| - | ====== Build Android ====== | + | ===== Preparations |
| + | * [[http:// | ||
| + | * [[/ | ||
| + | * [[/ | ||
| + | ===== Building ===== | ||
| + | <WRAP info > | ||
| + | Before you start to build, make sure you have done all the '' | ||
| + | </ | ||
| + | |||
| + | ==== Build U-Boot ==== | ||
| + | |||
| + | **android 9.0:** | ||
| + | ```shell | ||
| + | $ cd PATH_YOUR_PROJECT | ||
| + | $ cd bootloader/ | ||
| + | $ ./mk TARGET | ||
| + | ``` | ||
| + | |||
| + | **android 11.0:** | ||
| + | ```shell | ||
| + | $ cd PATH_YOUR_PROJECT | ||
| + | $ cd bootloader/ | ||
| + | $ ./mk TARGET --vab | ||
| + | $ cp build/ | ||
| + | $ cp build/ | ||
| + | $ cp build/ | ||
| + | ``` | ||
| + | |||
| + | Gernerate images in this step: | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ==== Build Linux Kernel ==== | ||
| + | |||
| + | When you build the Android Kernel (above), the Linux Kernel will also be built simultaneously. | ||
| + | |||
| + | In some cases, you might want to build the Linux Kernel separately. You can run this script below to do that: | ||
| + | |||
| + | **android 9.0:** | ||
| + | ```shell | ||
| + | $ make bootimage | ||
| + | ``` | ||
| + | |||
| + | **android 11.0:** | ||
| + | ```shell | ||
| + | $ ./mk TARGET -v 4.9 | ||
| + | ``` | ||
| + | ==== Build Android ==== | ||
| + | |||
| + | **android 9.0:** | ||
| + | ```shell | ||
| + | $ cd PATH_YOUR_PROJECT | ||
| + | $ source build/ | ||
| + | $ lunch TARGET_LUNCH | ||
| + | $ make -jN otapackage | ||
| + | ``` | ||
| + | |||
| + | Gernerate images: '' | ||
| + | |||
| + | **android 11.0:** | ||
| + | ```shell | ||
| + | $ cd PATH_YOUR_PROJECT | ||
| + | $ export BOARD_COMPILE_ATV=false | ||
| + | $ export BOARD_COMPILE_CTS=false | ||
| + | $ source build/ | ||
| + | $ lunch TARGET_LUNCH | ||
| + | $ make -jN otapackage | ||
| + | ``` | ||
| + | |||
| + | Gernerate images: '' | ||
| + | |||
| + | <WRAP info > | ||
| + | * Replace '' | ||
| + | * Replace '' | ||
| + | * For VIM3, it’s '' | ||
| + | * For VIM3L, it’s '' | ||
| + | * '' | ||
| + | </ | ||
| + | |||
| + | ===== See Also ===== | ||
| + | |||
| + | * [[/ | ||
| + | * [[/ | ||