1Build Yukawa userdebug image: 2============================= 3 4$ . ./build/envsetup.sh 5$ lunch yukawa-userdebug 6$ make -j24 7 8- For VIM3L: make TARGET_VIM3L=true -j24 9 10Compile Kernel: 11=============== 12 13$ git clone https://android.googlesource.com/kernel/hikey-linaro 14$ export PATH=$ANDROID_BUILD_TOP/prebuilts/clang/host/linux-x86/clang-r365631c/bin:$PATH 15 16$ cd hikey-linaro 17$ git checkout -b android-amlogic-bmeson-4.19 origin/android-amlogic-bmeson-4.19 18$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- CLANG_TRIPLE=aarch64-linux-gnu- CC=clang meson_defconfig 19$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- CLANG_TRIPLE=aarch64-linux-gnu- CC=clang -j24 20$ lz4c -f arch/arm64/boot/Image arch/arm64/boot/Image.lz4 21$ cp arch/arm64/boot/Image.lz4 $ANDROID_BUILD_TOP/device/amlogic/yukawa-kernel 22$ cp arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dtb $ANDROID_BUILD_TOP/device/amlogic/yukawa-kernel 23$ cp arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dtb $ANDROID_BUILD_TOP/device/amlogic/yukawa-kernel 24$ cp arch/arm64/boot/dts/amlogic/meson-sm1-khadas-vim3l.dtb $ANDROID_BUILD_TOP/device/amlogic/yukawa-kernel 25 26$ cd <Path-to-AOSP>; rm out/target/product/yukawa/boot.img out/target/product/yukawa/kernel 27$ make bootimage -j24 28 29$ fastboot flash boot out/target/product/yukawa/boot.img 30 31- For VIM3L: make TARGET_VIM3L=true bootimage -j24 32- If yukawa-userdebug build was not launched, set direct path to aarch64: 33$ export PATH=$ANDROID_BUILD_TOP/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin:$PATH 34 35Recover Bootloader: 36=================== 37- Enter USB recovery mode by pressing USB Boot Button and turning Power ON 38$ update write u-boot_sei610.bin 0xfffa0000 0x10000 39$ update run 0xfffa0000 40$ update bl2_boot u-boot_sei610.bin 41$ fastboot oem format 42$ fastboot flash bootloader u-boot_sei610.bin 43$ fastboot erase bootenv 44$ fastboot reboot-bootloader 45 46- For VIM3L: use u-boot_kvim3l.bin 47 48Link to 'update' utility: https://github.com/khadas/utils/tree/master/aml-flash-tool/tools/linux-x86 49