Building Android Pie for VIM3

So I started building Android Pie for VIM3 - initialized khadas-vims-pie branch:

repo init -u https://github.com/khadas/android_manifest.git -b khadas-vims-pie

Then added SuperSU and Google Apps repositories to vendor/amlogic:

git clone https://github.com/khadas/supersu root -b Nougat
git clone https://github.com/terry2droid/google google -b Pie

It was mentioned in forum that SuperSU’s most decent version is under Nougat branch.

I added following to device/khadas/kvim3/kvim3.mk:

BUILD_WITH_ROOT_CONFIG :=true
BUILD_WITH_GAPPS_CONFIG :=true

My first error is with Google Apps - when Pie branch selected, build process complained about reference to Rockchip, so I bet there is no Google Apps Pie for Amlogic yet?

U-boot built successfull, so I proceeded with Android.

First following warning popped multiple times:

hardware/amlogic/wifi/configs/wifi.mk:43: warning: WIFI_MOUDLE is multiwifi
hardware/amlogic/wifi/configs/wifi.mk:47: warning: WIFI_BUILD_IN is false
hardware/amlogic/bluetooth/configs/bluetooth.mk:20: warning: BLUETOOTH_MODULE is BCMBT
hardware/amlogic/bluetooth/configs/bluetooth.mk:24: warning: BLUETOOTH_INF is not set

And afterwards build failed here:

943/959] including vendor/amlogic/common/tv/tvserver/Android.mk ...
"have hardware/amlogic/media"
"have hardware/amlogic/media"
[959/959] including vendor/widevine/Android.mk ...
device/khadas/kvim3/Kernel.mk:174: warning: overriding commands for target `out/target/product/kvim3/obj/lib_vendor/mali.ko'
vendor/amlogic/common//gpu/gpu-v2.mk:23: warning: ignoring old commands for target `out/target/product/kvim3/obj/lib_vendor/mali.ko'
build/make/core/base_rules.mk:412: warning: overriding commands for target `out/target/product/kvim3/system/usr/icu/icudt60l.dat'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/target/product/kvim3/system/usr/icu/icudt60l.dat'
build/make/core/base_rules.mk:412: warning: overriding commands for target `out/host/linux-x86/usr/icu/icudt60l.dat'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/host/linux-x86/usr/icu/icudt60l.dat'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/kvim3/obj/lib_vendor/ddr_window_64.ko'
device/khadas/kvim3/Kernel.mk:174: warning: ignoring old commands for target `out/target/product/kvim3/obj/lib_vendor/ddr_window_64.ko'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/kvim3/vendor/etc/init/android.hardware.wifi@1.0-service.rc'
build/make/core/base_rules.mk:426: warning: ignoring old commands for target `out/target/product/kvim3/vendor/etc/init/android.hardware.wifi@1.0-service.rc'
[ 99% 1189/1190] glob vendor/amlogic/common/interfaces/tvserver/1.0/src
ninja: error: 'hardware/wifi/atbm/atbm602x/firmware/fw_usb.bin', needed by 'out/target/product/kvim3/vendor/firmware/fw_usb.bin', missing and no known rule to make it
23:13:24 ninja failed with: exit status 1

#### failed to build some targets (01:28 (mm:ss)) ####

Am I forgetting something?

Building on Ubuntu 18.04.3 LTS.

Actually I get pretty much the same trying to build Android Pie for VIM1 as well:

ninja: error: 'hardware/wifi/atbm/atbm602x/firmware/fw_usb.bin', needed by 'out/target/product/kvim/vendor/firmware/fw_usb.bin', missing and no known rule to make it

Sorry for that. I have fixed it. You can exec ‘repo sync’ again. Thanks.

1 Like

@Gytis, it would be highly appreciated if you could upload your builds to a cloud service, especially for VIM3, so others can use your builds as Khadas’ Android builds are not updated frequently :slight_smile:

Thanks, I will try :slight_smile:

By the way, which gcc is right to build Android Pie - is it Ubuntu Bionic’s default gcc-7?

I didn’t try to build Android SDK with Ubuntu Bionic’s. Here is my host PC:

terry@Server:/users/terry/project/khadas/amlogic/android/VIM3_github/bootloader/uboot$ gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.11) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Hi Terry, the current manifest.xml has the linux repo pointing to the vim3-pie branch instead of the new vim-pie branch which makes it impossible to compile the OS without changing the current manifest to have repo download the right branch/commit.

Also a note that says you need to install u-boot-tools to be able to compile would have been appreciated.

1 Like

Now I have an issue with Google Apps - looks like Pie branch is intended for Rockchip:

[943/963] including vendor/amlogic/common/tv/tvserver/Android.mk ...
"have hardware/amlogic/media"
"have hardware/amlogic/media"
[963/963] including vendor/widevine/Android.mk ...
device/khadas/kvim3/Kernel.mk:174: warning: overriding commands for target `out/target/product/kvim3/obj/lib_vendor/mali.ko'
vendor/amlogic/common//gpu/gpu-v2.mk:23: warning: ignoring old commands for target `out/target/product/kvim3/obj/lib_vendor/mali.ko'
build/make/core/base_rules.mk:412: warning: overriding commands for target `out/target/product/kvim3/system/usr/icu/icudt60l.dat'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/target/product/kvim3/system/usr/icu/icudt60l.dat'
build/make/core/base_rules.mk:412: warning: overriding commands for target `out/host/linux-x86/usr/icu/icudt60l.dat'
build/make/core/base_rules.mk:412: warning: ignoring old commands for target `out/host/linux-x86/usr/icu/icudt60l.dat'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/kvim3/obj/lib_vendor/ddr_window_64.ko'
device/khadas/kvim3/Kernel.mk:174: warning: ignoring old commands for target `out/target/product/kvim3/obj/lib_vendor/ddr_window_64.ko'
build/make/core/Makefile:28: warning: overriding commands for target `out/target/product/kvim3/vendor/etc/init/android.hardware.wifi@1.0-service.rc'
build/make/core/base_rules.mk:426: warning: ignoring old commands for target `out/target/product/kvim3/vendor/etc/init/android.hardware.wifi@1.0-service.rc'
ninja: error: 'vendor/rockchip/google/framework/com.google.android.media.effects.jar', needed by 'out/target/product/kvim3/system/framework/com.google.android.media.effects.jar', missing and no known rule to make it
20:09:40 ninja failed with: exit status 1

#### failed to build some targets (01:25 (mm:ss)) ####

I’m making my own gapps package based on TVStock (arm), also I’ve noticed the rom seems to compile in arm instead of arm64. Is that normal @Terry? The original Nougat rom for the VIM1 would compile in arm64 rather than in arm.

Don’t download the Gapps with Pie branch. You should download the Gapps with Pie-arm branch.

1 Like

Hi, zdesautels

It’s normal. We still don’t release arm64 Pie SDK and need more time to do it.

1 Like

Will try, thanks!

Tried with GAPPS disabled but stuck there:

cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/media_clock.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/firmware.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/decoder_common.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/stream_input.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_avs.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_avs2.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mpeg12.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mmpeg12.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mpeg4.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mmpeg4.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_h264.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mh264.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_h264mvc.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_h265.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mjpeg.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mmjpeg.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_vc1.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_vp9.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_real.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/encoder.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/vpu.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/aml_hardware_dmx.ko': No such file or directory
[ 99% 70416/70423] Installed file list: out/target/product/kvim3/installed-files.txt
ninja: build stopped: subcommand failed.
23:14:18 ninja failed with: exit status 1

#### failed to build some targets (03:00:52 (hh:mm:ss)) ####

You need to provide more build information for me. Did you exec ‘make clean’ command for your product?

Do have any idea of when it’s going to be ready?

Yes, I did make clean. But still get these:

[ 84% 58607/69326] target Package: droidlogic-res (out/target/product/kvim3/obj/APPS/droidlogic-res_intermediates/package.apk)
warning: ignoring flag -c hdpi-v4. Use --preferred-density instead.
warning: ignoring flag -c xhdpi-v4. Use --preferred-density instead.
warning: ignoring flag -c xxhdpi-v4. Use --preferred-density instead.
warning: ignoring flag -c hdpi-v4. Use --preferred-density instead.
warning: ignoring flag -c xhdpi-v4. Use --preferred-density instead.
warning: ignoring flag -c hdpi-v4. Use --preferred-density instead.
warning: ignoring flag -c xhdpi-v4. Use --preferred-density instead.
warning: ignoring flag -c xxhdpi-v4. Use --preferred-density instead.
warning: ignoring flag -c hdpi-v4. Use --preferred-density instead.
warning: ignoring flag -c xhdpi-v4. Use --preferred-density instead.
[ 88% 61661/69326] //system/libhwbinder:libhwbinder link libhwbinder.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 93% 64874/69326] //external/scrypt:libscrypt_static clang lib/crypto/crypto_scrypt-neon.c
external/scrypt/lib/crypto/crypto_scrypt-neon.c:138:20: warning: unused variable 'X32' [-Wunused-variable]
        uint32_t * X32 = (void *)X;
                   ^
external/scrypt/lib/crypto/crypto_scrypt-neon.c:140:16: warning: unused variable 'k' [-Wunused-variable]
        size_t k;
               ^
external/scrypt/lib/crypto/crypto_scrypt-neon.c:228:15: warning: implicit declaration of function 'posix_memalign' is invalid in C99 [-Wimplicit-function-declaration]
        if ((errno = posix_memalign(&B0, 64, 128 * r * p)) != 0)
                     ^
3 warnings generated.
[ 93% 65063/69326] target Strip (mini debug info): e2fsdroid_static (out/target/product/kvim3/obj/EXECUTABLES/e2fsdroid_static_intermediates/e2fsdroid_static)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: out/target/product/kvim3/symbols/recovery/root/sbin/e2fsdroid_static: no symbols
[ 93% 65070/69326] target Strip (mini debug info): charger (out/target/product/kvim3/obj/EXECUTABLES/charger_intermediates/charger)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: out/target/product/kvim3/symbols/sbin/charger: no symbols
[ 93% 65071/69326] target Strip (mini debug info): init (out/target/product/kvim3/obj/EXECUTABLES/init_intermediates/init)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: out/target/product/kvim3/symbols/init: no symbols
[ 93% 65072/69326] target Strip (mini debug info): mke2fs_static (out/target/product/kvim3/obj/EXECUTABLES/mke2fs_static_intermediates/mke2fs_static)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: out/target/product/kvim3/symbols/recovery/root/sbin/mke2fs_static: no symbols
[ 93% 65081/69326] target Strip (mini debug info): getbootenv (out/target/product/kvim3/obj/EXECUTABLES/getbootenv_intermediates/getbootenv)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: out/target/product/kvim3/symbols/system/bin/getbootenv: no symbols
[ 93% 65083/69326] target Strip (mini debug info): setbootenv (out/target/product/kvim3/obj/EXECUTABLES/setbootenv_intermediates/setbootenv)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: out/target/product/kvim3/symbols/system/bin/setbootenv: no symbols
[ 93% 65090/69326] target Strip (mini debug info): micro_bench_static (out/target/product/kvim3/obj/EXECUTABLES/micro_bench_static_intermediates/micro_bench_static)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: out/target/product/kvim3/symbols/system/xbin/micro_bench_static: no symbols
[ 93% 65113/69326] target Strip (mini debug info): updater (out/target/product/kvim3/obj/EXECUTABLES/updater_intermediates/updater)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: out/target/product/kvim3/symbols/system/bin/updater: no symbols
[ 93% 65143/69326] target Strip (mini debug info): recovery (out/target/product/kvim3/obj/EXECUTABLES/recovery_intermediates/recovery)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: out/target/product/kvim3/symbols/recovery/root/sbin/recovery: no symbols
[ 94% 65345/69326] target Strip (mini debug info): simpleperf (out/target/product/kvim3/obj/EXECUTABLES/simpleperf_intermediates/simpleperf)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: out/target/product/kvim3/symbols/system/xbin/simpleperf: no symbols
[ 95% 66368/69326] //system/libhwbinder:libhwbinder link libhwbinder.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 99% 68665/69326] target Strip (mini debug info): mdnsd (out/target/product/kvim3/obj/EXECUTABLES/mdnsd_intermediates/mdnsd)
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-nm: out/target/product/kvim3/symbols/system/bin/mdnsd: no symbols
[ 99% 68765/69326] //frameworks/native/services/surfaceflinger:libsurfaceflinger link libsurfaceflinger.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 99% 68951/69326] //art/runtime:libart link libart.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 99% 68989/69326] //art/dexlayout:libart-dexlayout link libart-dexlayout.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 99% 69008/69326] //art/compiler:libart-compiler link libart-compiler.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 99% 69013/69326] //frameworks/base/libs/hwui:libhwui link libhwui.so
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 99% 69304/69326] //art/dex2oat:dex2oat link dex2oat
Warning: request a ThreadPool with 1 threads, but LLVM_ENABLE_THREADS has been turned off
[ 99% 69318/69326] Target vendor fs image: out/target/product/kvim3/vendor.img
FAILED: out/target/product/kvim3/vendor.img 
/bin/bash -c "(mkdir -p out/target/product/kvim3/vendor ) && (mkdir -p out/target/product/kvim3/obj/PACKAGING/vendor_intermediates && rm -rf out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"ext_mkuserimg=mkuserimg_mke2fs.sh\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"fs_type=ext4\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"system_size=1342177280\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"userdata_size=576716800\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"cache_fs_type=ext4\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"cache_size=69206016\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"vendor_fs_type=ext4\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"vendor_size=335544320\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"product_fs_type=ext4\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"product_size=134217728\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"extfs_sparse_flag=-s\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"squashfs_sparse_flag=-s\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"selinux_fc=out/target/product/kvim3/obj/ETC/file_contexts.bin_intermediates/file_contexts.bin\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"system_root_image=true\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt; echo \"ramdisk_dir=out/target/product/kvim3/root\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (echo \"skip_fsck=true\" >>  out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt ) && (rm -rf out/target/product/kvim3/vendor/lib/modules ) && (mkdir -p out/target/product/kvim3/vendor/lib/modules ) && (cp out/target/product/kvim3/obj/lib_vendor/iv009_isp.ko out/target/product/kvim3/obj/lib_vendor/iv009_isp_iq.ko out/target/product/kvim3/obj/lib_vendor/iv009_isp_lens.ko out/target/product/kvim3/obj/lib_vendor/iv009_isp_sensor.ko out/target/product/kvim3/obj/lib_vendor/ddr_window_64.ko out/target/product/kvim3/obj/lib_vendor/media_clock.ko out/target/product/kvim3/obj/lib_vendor/firmware.ko out/target/product/kvim3/obj/lib_vendor/decoder_common.ko out/target/product/kvim3/obj/lib_vendor/stream_input.ko out/target/product/kvim3/obj/lib_vendor/amvdec_avs.ko out/target/product/kvim3/obj/lib_vendor/amvdec_avs2.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mpeg12.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mmpeg12.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mpeg4.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mmpeg4.ko out/target/product/kvim3/obj/lib_vendor/amvdec_h264.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mh264.ko out/target/product/kvim3/obj/lib_vendor/amvdec_h264mvc.ko out/target/product/kvim3/obj/lib_vendor/amvdec_h265.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mjpeg.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mmjpeg.ko out/target/product/kvim3/obj/lib_vendor/amvdec_vc1.ko out/target/product/kvim3/obj/lib_vendor/amvdec_vp9.ko out/target/product/kvim3/obj/lib_vendor/amvdec_real.ko out/target/product/kvim3/obj/lib_vendor/encoder.ko out/target/product/kvim3/obj/lib_vendor/vpu.ko out/target/product/kvim3/obj/lib_vendor/aml_hardware_dmx.ko out/target/product/kvim3/obj/lib_vendor/dhd.ko out/target/product/kvim3/obj/lib_vendor/bcmdhd.ko  out/target/product/kvim3/obj/lib_vendor/tb_detect.ko out/target/product/kvim3/obj/lib_vendor/galcore.ko out/target/product/kvim3/obj/lib_vendor/mali.ko out/target/product/kvim3/vendor/lib/modules/ ) && (rm -rf out/target/product/kvim3/obj/PACKAGING/depmod_vendor_intermediates ) && (mkdir -p out/target/product/kvim3/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (cp out/target/product/kvim3/obj/lib_vendor/iv009_isp.ko out/target/product/kvim3/obj/lib_vendor/iv009_isp_iq.ko out/target/product/kvim3/obj/lib_vendor/iv009_isp_lens.ko out/target/product/kvim3/obj/lib_vendor/iv009_isp_sensor.ko out/target/product/kvim3/obj/lib_vendor/ddr_window_64.ko out/target/product/kvim3/obj/lib_vendor/media_clock.ko out/target/product/kvim3/obj/lib_vendor/firmware.ko out/target/product/kvim3/obj/lib_vendor/decoder_common.ko out/target/product/kvim3/obj/lib_vendor/stream_input.ko out/target/product/kvim3/obj/lib_vendor/amvdec_avs.ko out/target/product/kvim3/obj/lib_vendor/amvdec_avs2.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mpeg12.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mmpeg12.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mpeg4.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mmpeg4.ko out/target/product/kvim3/obj/lib_vendor/amvdec_h264.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mh264.ko out/target/product/kvim3/obj/lib_vendor/amvdec_h264mvc.ko out/target/product/kvim3/obj/lib_vendor/amvdec_h265.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mjpeg.ko out/target/product/kvim3/obj/lib_vendor/amvdec_mmjpeg.ko out/target/product/kvim3/obj/lib_vendor/amvdec_vc1.ko out/target/product/kvim3/obj/lib_vendor/amvdec_vp9.ko out/target/product/kvim3/obj/lib_vendor/amvdec_real.ko out/target/product/kvim3/obj/lib_vendor/encoder.ko out/target/product/kvim3/obj/lib_vendor/vpu.ko out/target/product/kvim3/obj/lib_vendor/aml_hardware_dmx.ko out/target/product/kvim3/obj/lib_vendor/dhd.ko out/target/product/kvim3/obj/lib_vendor/bcmdhd.ko  out/target/product/kvim3/obj/lib_vendor/tb_detect.ko out/target/product/kvim3/obj/lib_vendor/galcore.ko out/target/product/kvim3/obj/lib_vendor/mali.ko out/target/product/kvim3/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/vendor/lib/modules ) && (out/host/linux-x86/bin/depmod -b out/target/product/kvim3/obj/PACKAGING/depmod_vendor_intermediates 0.0 ) && (sed -e 's/\\(.*modules.*\\):/\\/\\1:/g' -e 's/ \\([^ ]*modules[^ ]*\\)/ \\/\\1/g' out/target/product/kvim3/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.dep > out/target/product/kvim3/vendor/lib/modules/modules.dep ) && (cp out/target/product/kvim3/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0/modules.alias out/target/product/kvim3/vendor/lib/modules ) && (PATH=out/host/linux-x86/bin/:\$PATH build/make/tools/releasetools/build_image.py out/target/product/kvim3/vendor out/target/product/kvim3/obj/PACKAGING/vendor_intermediates/vendor_image_info.txt out/target/product/kvim3/vendor.img out/target/product/kvim3/system ) && (size=\$(for i in out/target/product/kvim3/vendor.img; do stat --format \"%s\" \"\$i\" | tr -d '\\n'; echo +; done; echo 0); total=\$(( \$( echo \"\$size\" ) )); printname=\$(echo -n \"out/target/product/kvim3/vendor.img\" | tr \" \" +); maxsize=\$((335544320)); if [ \"\$total\" -gt \"\$maxsize\" ]; then echo \"error: \$printname too large (\$total > \$maxsize)\"; false; elif [ \"\$total\" -gt \$((maxsize - 32768)) ]; then echo \"WARNING: \$printname approaching size limit (\$total now; limit \$maxsize)\"; fi )"
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/media_clock.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/firmware.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/decoder_common.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/stream_input.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_avs.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_avs2.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mpeg12.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mmpeg12.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mpeg4.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mmpeg4.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_h264.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mh264.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_h264mvc.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_h265.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mjpeg.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_mmjpeg.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_vc1.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_vp9.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/amvdec_real.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/encoder.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/vpu.ko': No such file or directory
cp: cannot stat 'out/target/product/kvim3/obj/lib_vendor/aml_hardware_dmx.ko': No such file or directory
[ 99% 69319/69326] Installed file list: out/target/product/kvim3/installed-files.txt
ninja: build stopped: subcommand failed.
22:46:13 ninja failed with: exit status 1

#### failed to build some targets (02:56:59 (hh:mm:ss)) ####

Did you can provide full build informations for me? I couldn’t get useful information from it.

Here is the full build output.

1 Like

I have updated the github repository. And you can try to exec “repo sync” again. Please give me some feedbacks for that.

1 Like

Not yet, we are also waiting for some binaries from Amlogic.

1 Like

Now it fails on ffmpeg:

1 warning generated.
[ 67% 46449/69326] target arm C: libamffmpeg.vendor <= vendor/amlogic/common/external/ffmpeg/libavutil/../compat/strtod.c
FAILED: out/target/product/kvim3/obj/SHARED_LIBRARIES/libamffmpeg.vendor_intermediates/compat/strtod.o 
/bin/bash -c "PWD=/proc/self/cwd  prebuilts/clang/host/linux-x86/clang-4691093/bin/clang 	-I external/zlib -I vendor/amlogic/common/external/ffmpeg -I out/target/product/kvim3/obj/SHARED_LIBRARIES/libamffmpeg.vendor_intermediates -I out/target/product/kvim3/gen/SHARED_LIBRARIES/libamffmpeg.vendor_intermediates \$(cat out/target/product/kvim3/obj/SHARED_LIBRARIES/libamffmpeg.vendor_intermediates/import_includes)   -isystem out/target/product/kvim3/obj/include -c  -fomit-frame-pointer -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -g -fno-strict-aliasing -fdebug-prefix-map=/proc/self/cwd= -D__compiler_offsetof=__builtin_offsetof -Werror=int-conversion -Wno-reserved-id-macro -Wno-format-pedantic -Wno-unused-command-line-argument -fcolor-diagnostics -Wno-expansion-to-defined -Wno-zero-as-null-pointer-constant -fdebug-prefix-map=\$PWD/= -ffunction-sections -fdata-sections -fno-short-enums -funwind-tables -fstack-protector-strong -Wa,--noexecstack -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Werror=date-time -Werror=format-security -nostdlibinc -msoft-float -march=armv7-a -mfloat-abi=softfp -mfpu=neon  -target arm-linux-androideabi -Bprebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/arm-linux-androideabi/bin   -std=gnu99 -fstrict-aliasing   -Wall -DHAVE_AV_CONFIG_H -Ivendor/amlogic/common/external/ffmpeg -Wno-error=return-type -Wno-missing-field-initializers -Wno-parentheses -Wno-pointer-sign -Wno-sign-compare -Wno-switch -fPIC -std=c99 -llvm -DDISABLE_NEONINTR -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -DFF_API_AV_GETTIME=0 -D__ANDROID_API__=28 -D__ANDROID_VNDK__ -fPIC -DARCH_ARM -D_USING_LIBCXX -DANDROID_STRICT   -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=address-of-temporary -Werror=return-type -Wno-tautological-constant-compare -Wno-null-pointer-arithmetic -Wno-enum-compare -Wno-enum-compare-switch -MD -MF out/target/product/kvim3/obj/SHARED_LIBRARIES/libamffmpeg.vendor_intermediates/libavutil/../compat/strtod.d -o out/target/product/kvim3/obj/SHARED_LIBRARIES/libamffmpeg.vendor_intermediates/libavutil/../compat/strtod.o vendor/amlogic/common/external/ffmpeg/libavutil/../compat/strtod.c"
error: unable to open output file 'out/target/product/kvim3/obj/SHARED_LIBRARIES/libamffmpeg.vendor_intermediates/libavutil/../compat/strtod.o': 'No such file or directory'
1 error generated.
[ 67% 46452/69326] target arm C: libamffmpeg.vendor <= vendor/amlogic/common/external/ffmpeg/libavutil/aes.c
vendor/amlogic/common/external/ffmpeg/libavutil/aes.c:164:47: warning: unused parameter 'decrypt' [-Wunused-parameter]
                  int count, uint8_t *iv, int decrypt)
                                              ^
1 warning generated.
ninja: build stopped: subcommand failed.
22:14:52 ninja failed with: exit status 1

#### failed to build some targets (02:14:51 (hh:mm:ss)) ####

Will upload full log later.

1 Like