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:48] 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 '' |
</ | </ | ||
Line 22: | Line 20: | ||
==== Build U-Boot ==== | ==== Build U-Boot ==== | ||
- | ```sh | + | ```shell |
$ cd PATH_YOUR_PROJECT | $ cd PATH_YOUR_PROJECT | ||
$ cd bootloader/ | $ cd bootloader/ | ||
Line 35: | Line 33: | ||
- | ```sh | + | ```shell |
$ ./mk kvim4 -v 5.4 -jN | $ ./mk kvim4 -v 5.4 -jN | ||
``` | ``` | ||
Line 47: | Line 45: | ||
- | ```sh | + | ```shell |
$ cd PATH_YOUR_PROJECT | $ cd PATH_YOUR_PROJECT | ||
$ . build/ | $ . build/ | ||
Line 58: | Line 56: | ||
<WRAP important > | <WRAP important > | ||
- | * VIM4 compiling Android | + | * Unlike VIM3, |
* Replace '' | * Replace '' | ||
* Replace '' | * Replace '' | ||
Line 84: | Line 82: | ||
echo "build Kernel" | echo "build Kernel" | ||
if [ " | if [ " | ||
+ | . build/ | ||
+ | lunch kvim4-userdebug | ||
make distclean | make distclean | ||
fi | fi | ||
Line 93: | Line 93: | ||
echo "build Android" | echo "build Android" | ||
if [ " | if [ " | ||
+ | . build/ | ||
+ | lunch kvim4-userdebug | ||
make clean | make clean | ||
fi | fi | ||
Line 103: | Line 105: | ||
``` | ``` | ||
- | | + | **Build |
- | ```sh | + | ```shell |
$ ./demo.sh u | $ ./demo.sh u | ||
``` | ``` | ||
- | | + | **Build Kernel:** |
- | ``` | + | |
+ | ```shell | ||
$ ./demo.sh k | $ ./demo.sh k | ||
``` | ``` | ||
- | | + | **Build Android:** |
- | ``` | + | |
+ | ```shell | ||
$ ./demo.sh a | $ ./demo.sh a | ||
``` | ``` | ||
- | * build all | + | **Build |
- | ``` | + | |
+ | ```shell | ||
$ ./demo.sh n | $ ./demo.sh n | ||
``` | ``` | ||