Before you start to build, make sure you have done all the Preparations
listed above.
$ cd PATH_YOUR_PROJECT $ cd uboot $ make CROSS_COMPILE=aarch64-linux-gnu- kvim_defconfig $ make CROSS_COMPILE=aarch64-linux-gnu-
Gernerate images in this step:
fip/u-boot.bin
: for onboard eMMC storage bootingfip/u-boot.bin.sd.bin
: for external TF card booting$ cd PATH_YOUR_PROJECT $ cd bootloader/uboot $ ./mk kvim
Gernerate images in this step:
build/u-boot.bin
: for onboard eMMC storage bootingbuild/u-boot.bin.sd.bin
: for external TF card booting$ cd PATH_YOUR_PROJECT $ source build/envsetup.sh $ lunch TARGET_LUNCH $ make -jN otapackage
Gernerate images: out/target/product/kvim/update.img
.
N
as the number you want when you run make -jN
.TARGET_LUNCH
to your lunch select.kvim-userdebug-64
.kvim-userdebug
.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:
$ source device/khadas/kvim/mkern.sh
$ make bootimage