错误日志如下:
heaven7@heaven7-os:~/study/aosp_vim32$ lunch kvim3-userdebug
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
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=kvim3
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-64-generic-x86_64-Linux-Mint-19.1
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR1.180610.011
OUT_DIR=out
heaven7@heaven7-os:~/study/aosp_vim32$ make -j4 otapackage
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
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=kvim3
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-64-generic-x86_64-Linux-Mint-19.1
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PPR1.180610.011
OUT_DIR=out
[1/1] out/soong/.minibootstrap/minibp out/soong/.bootstrap/build.ninja
[55/56] glob prebuilts/ndk/stl.bp
[77/77] out/soong/.bootstrap/bin/soong_build out/soong/build.ninja
out/build-kvim3-cleanspec.ninja is missing, regenerating…
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
out/build-kvim3.ninja is missing, regenerating…
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
[4/951] including build/make/Android.mk …
device/khadas/common/factory.mk:184: warning: echo “radio add dt and bootloader”
device/khadas/common/factory.mk:322: warning: will keep out/target/product/kvim3/update.img
device/khadas/common/factory.mk:465: warning: will keep out/target/product/kvim3/kvim3-fastboot-flashall-20201011.zip
[313/951] including hardware/amlogic/audio/Android.mk …
“---------ott audio mode, compiler configure 2 channels output by default--------”
[316/951] including hardware/amlogic/camera/Android.mk …
eth0: error fetching interface information: Device not found
pdk or not:
target board: g12b
git version: “384df15da4bdd67155a234ff02ca70598385155e”
uncomment: 0 files
last changed: “Date: Sat May 23 10:18:30 2020 +0800”
build time: " Sun Oct 11 02:26:55 CST 2020"
builder name: " heaven7"
branch name: “* vim3”
build mode: userdebug
host name: “heaven7-os”
eth0: error fetching interface information: Device not found
host IP: “”
path: “/home/heaven7/study/aosp_vim32/hardware/amlogic/camera/v3/fake-pipeline2/tests”
[320/951] including hardware/amlogic/gralloc/Android.mk …
hardware/amlogic/gralloc/Android.mk:79: warning: “the value of GPU_ARCH is bifrost”
hardware/amlogic/gralloc/Android.mk:135: warning: “the value of BOARD_RESOLUTION_RATIO is 1080”
hardware/amlogic/gralloc/Android.mk:141: warning: “the value of HWC_PRIMARY_DISP_SUPPORT_AFBC is false”
hardware/amlogic/gralloc/Android.mk:142: warning: “the value of HWC_EXTEND_DISP_SUPPORT_AFBC is true”
hardware/amlogic/gralloc/Android.mk:154: warning: “the value of GPU_TYPE is gondul”
[322/951] including hardware/amlogic/hwcomposer/Android.mk …
“Build HWC 2.0”
[535/951] including system/sepolicy/Android.mk …
system/sepolicy/Android.mk:79: warning: BOARD_SEPOLICY_VERS not specified, assuming current platform version
[906/951] including vendor/amlogic/common/LibTsPlayer/Android.mk …
vendor/amlogic/common/LibTsPlayer/jni/compat/media_control/Android.mk:27: warning: 9
vendor/amlogic/common/LibTsPlayer/jni/compat/media_control/Android.mk:98: warning: 9
vendor/amlogic/common/LibTsPlayer/jni/test/Android.mk:5: warning: Kitkat
vendor/amlogic/common/LibTsPlayer/jni/test/Android.mk:6: warning: vendor/amlogic/common/LibTsPlayer/jni/test
[917/951] including vendor/amlogic/common/apps/NativeImagePlaye/Android.mk …
vendor/amlogic/common/apps/NativeImagePlaye/jni/Android.mk:10: warning: libnativehelper/include_jni
[925/951] including vendor/amlogic/common/external/DTVKit/android-inputsource/An
vendor/amlogic/common/external/DTVKit/android-inputsource/logicdtvkit/src/jni/Android.mk:10: warning: libnativehelper/include_jni
build/make/core/java_common.mk:183: warning: vendor/amlogic/common/external/DTVKit/android-inputsource/app/src/main/Android.mk: inputsource: Unused source files: vendor/amlogic/common/external/DTVKit/android-inputsource/app/src/main/droidlogic/java
inputsource: platform ‘amlogic’
[937/951] including vendor/amlogic/common/frameworks/Android.mk …
vendor/amlogic/common/frameworks/core/jni/screencontrol/Android.mk:7: warning: libnativehelper/include_jni
vendor/amlogic/common/frameworks/core/jni/systemcontrol/Android.mk:10: warning: libnativehelper/include_jni
[938/951] including vendor/amlogic/common/gpu-lib/Android.mk …
"the value of BOARD_INSTALL_VULKAN is "
TARGET_PRODUCT is kvim3
[943/951] including vendor/amlogic/common/prebuilt/Android.mk …
“no bootaccelerate source code, add prebuilts”
“no exoplayer source code, add prebuilts”
[949/951] including vendor/amlogic/common/tv/tvserver/Android.mk …
“have hardware/amlogic/media”
“have hardware/amlogic/media”
[951/951] 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% 1159/1160] glob vendor/amlogic/common/interfaces/tvserver/1.0/src
ninja: error: ‘out/target/product/kvim3/obj/lib/crtbegin_static.o’, needed by ‘out/target/product/kvim3/obj/EXECUTABLES/adbd_intermediates/LINKED/adbd’, missing and no known rule to make it
02:27:23 ninja failed with: exit status 1
failed to build some targets (01:21 (mm:ss))
步骤: 1, 按照https://docs.khadas.com/zh-cn/vim3/InstallToolchains.html 文档所示安装好交叉编译工具。
2, 下载vims的源码。 编译Uboot成功
3, 配置并编译 Amlogic平台 android系统时,失败。其中编译步骤按照
https://docs.khadas.com/zh-cn/vim3/BuildAndroid.html。
source build/envsetup.sh
$ lunch kvim3-userdebug
$ make -j4 otapackage
ps: 环境openjdk11