This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:vim3:development:android:build-android [2022/07/15 02:30] frank |
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 ====== | ====== VIM3/3L Build Android ====== | ||
| Line 17: | Line 17: | ||
| ==== Build U-Boot ==== | ==== Build U-Boot ==== | ||
| + | **android 9.0:** | ||
| ```shell | ```shell | ||
| $ cd PATH_YOUR_PROJECT | $ cd PATH_YOUR_PROJECT | ||
| $ cd bootloader/ | $ cd bootloader/ | ||
| $ ./mk TARGET | $ ./mk TARGET | ||
| + | ``` | ||
| + | |||
| + | **android 11.0:** | ||
| + | ```shell | ||
| + | $ cd PATH_YOUR_PROJECT | ||
| + | $ cd bootloader/ | ||
| + | $ ./mk TARGET --vab | ||
| + | $ cp build/ | ||
| + | $ cp build/ | ||
| + | $ cp build/ | ||
| ``` | ``` | ||
| Line 28: | Line 39: | ||
| * '' | * '' | ||
| + | ==== 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 ==== | ==== Build Android ==== | ||
| + | **android 9.0:** | ||
| ```shell | ```shell | ||
| $ cd PATH_YOUR_PROJECT | $ cd PATH_YOUR_PROJECT | ||
| Line 38: | Line 65: | ||
| Gernerate images: '' | 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 > | <WRAP info > | ||
| Line 46: | Line 85: | ||
| * '' | * '' | ||
| </ | </ | ||
| - | |||
| - | ==== 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: | ||
| - | |||
| - | ```shell | ||
| - | $ make bootimage | ||
| - | ``` | ||
| ===== See Also ===== | ===== See Also ===== | ||
| - | * [[/ | + | * [[/ |
| - | * [[/ | + | * [[/ |