Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:vim1:development:android:build-android

VIM1 Build Android

Preparations

Building

Before you start to build, make sure you have done all the Preparations listed above.

Build U-Boot

Android 6.0/Android 7.1

$ 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 booting
  • fip/u-boot.bin.sd.bin: for external TF card booting

Android 9.0

$ cd PATH_YOUR_PROJECT
$ cd bootloader/uboot
$ ./mk kvim

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

$ cd PATH_YOUR_PROJECT
$ source build/envsetup.sh
$ lunch TARGET_LUNCH
$ make -jN otapackage

Gernerate images: out/target/product/kvim/update.img.

  • 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 kvim-userdebug-64.
    • For Android Pie(9.0), it’s kvim-userdebug.

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:

Android 6.0/Android 7.1

$ source device/khadas/kvim/mkern.sh

Android 9.0

$ make bootimage

See Also

Last modified: 2023/07/31 02:33 by goenjoy