Preparations
- Establishing a Build Environment
- Downloading the Android Source
- Install Toolchains for the Amlogic Platform
Building
NoteBefore you start to build, make sure you have done all the
Preparationslisted above.
Build U-Boot:
1 | $ cd PATH_YOUR_PROJECT |
Gernerate images in this step:
build/u-boot.bin: for onboard EMMC storage bootingbuild/u-boot.bin.sd.bin: for external TF card booting
Build Linux Kernel:
1 | $ ./mk kvim4 -v 5.4 -jN |
Note
- Replace
Nwith the actual number of threads on your own computer
Build Android:
1 | $ cd PATH_YOUR_PROJECT |
Gernerate images in this step:
out/target/product/TARGET/update.img
Note
- VIM4 compiling Android will not compile the Linux Kernel at the same time as VIM3.
- Replace
Nwith the actual number of threads on your own computer- Replace
TARGET_LUNCHto your lunch select.
- For VIM4, it’s
kvim4-userdebug.
Made your own compiled script demo:
1 | $ vim demo.sh |
1 |
|
1 | #build U-Boot |