This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:vim4:development:android:build-android [2022/07/06 09:45] nick |
products:sbc:vim4:development:android:build-android [2023/08/22 21:23] (current) goenjoy |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{indexmenu_n> | + | {{indexmenu_n> |
- | ====== Build Android ====== | + | ====== |
===== Preparations ===== | ===== Preparations ===== | ||
- | - [x] [[http:// | + | * [[http:// |
- | - [x] [[DownloadAndroidSourceCode.html: | + | |
- | - [x] [[InstallToolchains|Install Toolchains for the Amlogic Platform]] | + | |
===== Building ===== | ===== Building ===== | ||
Line 16: | Line 14: | ||
<WRAP important > | <WRAP important > | ||
- | Before you start to build, make sure you have done all the '' | + | Make sure you have done all the '' |
</ | </ | ||
- | **Build U-Boot:** | + | ==== Build U-Boot |
- | ```sh | + | ```shell |
$ cd PATH_YOUR_PROJECT | $ cd PATH_YOUR_PROJECT | ||
$ cd bootloader/ | $ cd bootloader/ | ||
Line 32: | Line 30: | ||
* '' | * '' | ||
- | **Build Linux Kernel:** | + | ==== Build Linux Kernel |
- | ```sh | + | |
+ | ```shell | ||
$ ./mk kvim4 -v 5.4 -jN | $ ./mk kvim4 -v 5.4 -jN | ||
``` | ``` | ||
Line 43: | Line 42: | ||
- | **Build Android:** | + | ==== Build Android |
- | ```sh | + | ```shell |
$ cd PATH_YOUR_PROJECT | $ cd PATH_YOUR_PROJECT | ||
$ . build/ | $ . build/ | ||
Line 52: | Line 52: | ||
``` | ``` | ||
- | Gernerate images in this step: | + | Gernerate images in this step: '' |
- | + | ||
- | * '' | + | |
<WRAP important > | <WRAP important > | ||
- | * VIM4 compiling Android | + | * Unlike VIM3, |
* Replace '' | * Replace '' | ||
* Replace '' | * Replace '' | ||
Line 66: | Line 64: | ||
- | + | ==== Build Script Demo ==== | |
- | + | ||
- | **Made your own compiled script demo:** | + | |
```sh demo.sh | ```sh demo.sh | ||
Line 86: | Line 82: | ||
echo "build Kernel" | echo "build Kernel" | ||
if [ " | if [ " | ||
+ | . build/ | ||
+ | lunch kvim4-userdebug | ||
make distclean | make distclean | ||
fi | fi | ||
Line 95: | Line 93: | ||
echo "build Android" | echo "build Android" | ||
if [ " | if [ " | ||
+ | . build/ | ||
+ | lunch kvim4-userdebug | ||
make clean | make clean | ||
fi | fi | ||
Line 105: | Line 105: | ||
``` | ``` | ||
- | ```sh | + | **Build |
- | # | + | ```shell |
$ ./demo.sh u | $ ./demo.sh u | ||
+ | ``` | ||
- | # | + | **Build |
+ | |||
+ | ```shell | ||
$ ./demo.sh k | $ ./demo.sh k | ||
+ | ``` | ||
- | # | + | **Build |
+ | |||
+ | ```shell | ||
$ ./demo.sh a | $ ./demo.sh a | ||
+ | ``` | ||
+ | |||
+ | **Build all:** | ||
- | #build all | + | ```shell |
$ ./demo.sh n | $ ./demo.sh n | ||
``` | ``` | ||