Preparations
- Establishing a Build Environment
- Downloading the Android Source
- Install Toolchains for the Amlogic Platform
Building
Note: Before you start to build, make sure you have done all the Preparations
listed above.
Build Android 7.1 U-Boot:
1 | $ cd PATH_YOUR_PROJECT |
Gernerate images in this step:
- fip/u-boot.bin: for onboard EMMC storage booting
- fip/u-boot.bin.sd.bin: for external TF card booting
Build Android 9.0 U-Boot:
1 | $ cd PATH_YOUR_PROJECT |
Gernerate images in this step:
- build/u-boot.bin: for onboard EMMC storage booting
- build/u-boot.bin.sd.bin: for external TF card booting
Build Android:
1 | $ cd PATH_YOUR_PROJECT |
Note:
- Replace ‘N’ as the number you want when you run ‘make -jN’
- Replace ‘TARGET_LUNCH’ to your lunch select.
- For Android Nougat(7.1), it’s kvim2-userdebug-64.
- For Android Pie(9.0), it’s kvim2-userdebug.
Gernerate images in this step:
- out/target/product/kvim2/update.img
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:
For Android 7.1:
1 | $ source device/khadas/kvim2/mkern.sh |
For Android 9.0:
1 | $ make bootimage |