$ . ./build/envsetup.sh $ lunch yukawa-userdebug $ make -j24
$ git clone https://android.googlesource.com/kernel/hikey-linaro $ export PATH=$ANDROID_BUILD_TOP/prebuilts/clang/host/linux-x86/clang-r365631c/bin:$PATH
$ cd hikey-linaro $ git checkout -b android-amlogic-bmeson-4.19 origin/android-amlogic-bmeson-4.19 $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- CLANG_TRIPLE=aarch64-linux-gnu- CC=clang meson_defconfig $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- CLANG_TRIPLE=aarch64-linux-gnu- CC=clang -j24 $ lz4c -f arch/arm64/boot/Image arch/arm64/boot/Image.lz4 $ cp arch/arm64/boot/Image.lz4 $ANDROID_BUILD_TOP/device/amlogic/yukawa-kernel $ cp arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dtb $ANDROID_BUILD_TOP/device/amlogic/yukawa-kernel $ cp arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dtb $ANDROID_BUILD_TOP/device/amlogic/yukawa-kernel $ cp arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dtb $ANDROID_BUILD_TOP/device/amlogic/yukawa-kernel
$ cd ; rm out/target/product/yukawa/boot.img out/target/product/yukawa/kernel $ make bootimage -j24
$ fastboot flash boot out/target/product/yukawa/boot.img
Link to 'update' utility: https://github.com/khadas/utils/tree/master/aml-flash-tool/tools/linux-x86
$ update write u-boot_sei610.bin 0xfffa0000 0x10000 $ update run 0xfffa0000 $ update bl2_boot u-boot_sei610.bin $ fastboot oem format $ fastboot flash bootloader u-boot_sei610.bin $ fastboot erase bootenv $ fastboot reboot-bootloader