Build Khadas VIM2 Android Source ERROR (


#1

Hello dear Khadas developers!
I have problem. I try to build Android Nougat for Khadas VIM2. I’ve followed the instructions … maybe i’m so stupid. =( Please HELP!

I try:

$ export PATH=$PATH:/opt/toolchains/bin
$ cd ~/KHADAS/uboot
$ make CROSS_COMPILE=aarch64-linux-gnu- kvim2_defconfig
$ make CROSS_COMPILE=aarch64-linux-gnu-

$ cd ~/KHADAS
$ source build/envsetup.sh
$ lunch kvim2-userdebug-64
$ make -j4 otapackage

I get:

cp /home/lobz/KHADAS/hardware/wifi/broadcom/drivers/ap6xxx/bcmdhd.1.363.59.144.x.cn/dhd.ko out/target/product/kvim2/system/lib/
cp /home/lobz/KHADAS/out/target/product/kvim2/obj/KERNEL_OBJ/net/wireless/cfg80211.ko out/target/product/kvim2/system/lib/
make -C /home/lobz/KHADAS/out/target/product/kvim2/obj/KERNEL_OBJ M=/home/lobz/KHADAS/hardware/wifi/broadcom/drivers/ap6xxx/bcmdhd-usb.1.201.88.27.x ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules
make[1]: Entering directory '/home/lobz/KHADAS/out/target/product/kvim2/obj/KERNEL_OBJ’
KBUILD_CFLAGS_MODULE:-DMODULE
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory '/home/lobz/KHADAS/out/target/product/kvim2/obj/KERNEL_OBJ’
cp /home/lobz/KHADAS/hardware/wifi/broadcom/drivers/ap6xxx/bcmdhd-usb.1.201.88.27.x/bcmdhd.ko out/target/product/kvim2/system/lib/
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target ‘ninja_wrapper’ failed
make: *** [ninja_wrapper] Error 1

make failed to build some targets (02:18 (mm:ss))


#2

Can you provide more build informations for me? Thanks.


#3

Finally successful build!!!

install curl
restart jack-server
limit memory to jack-server
mount 20GB swap file
install libxml2-utils

done.

Thank you!