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 [2024/06/26 21:41] xiong [Build U-Boot] |
products:sbc:vim3:development:android:build-android [2024/10/28 02:35] (current) xiong |
||
|---|---|---|---|
| Line 29: | Line 29: | ||
| $ cd bootloader/ | $ cd bootloader/ | ||
| $ ./mk TARGET --vab | $ ./mk TARGET --vab | ||
| - | $ cp build/ | + | $ cp build/ |
| - | $ cp build/ | + | $ cp build/ |
| - | $ cp build/ | + | $ cp build/ |
| ``` | ``` | ||
| Line 39: | 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 49: | 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 57: | 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 ===== | ||