RK3568 Android11 编译报错

start build android
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
TARGET_PRODUCT=rk3568_r
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a55
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-2a
TARGET_2ND_CPU_VARIANT=cortex-a55
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-142-generic-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RD2A.211001.002
OUT_DIR=out
============================================
20:01:54 Deleted images and staging directories.

#### build completed successfully (2 seconds) ####

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=11
TARGET_PRODUCT=rk3568_r
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a55
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-2a
TARGET_2ND_CPU_VARIANT=cortex-a55
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-142-generic-x86_64-Ubuntu-16.04.6-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=RD2A.211001.002
OUT_DIR=out
============================================
[ 21% 3481/16574] Building dtbo img file out/target/product/rk3568_r/obj/FAKE/rockchip_dtbo_intermediates/rebuild-dtbo.img.
out/target/product/rk3568_r/obj/FAKE/rockchip_dtbo_intermediates/device-dtbo.dtb: Warning (unit_address_vs_reg): Node /fragment@0 has a unit name, but no reg property
out/target/product/rk3568_r/obj/FAKE/rockchip_dtbo_intermediates/device-dtbo.dtb: Warning (unit_address_vs_reg): Node /fragment@1 has a unit name, but no reg property
create image file: out/target/product/rk3568_r/obj/FAKE/rockchip_dtbo_intermediates/rebuild-dtbo.img...
Total 1 entries.
[ 31% 5254/16574] build out/target/product/rk3568_r/system/etc/event-log-tags
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:39: warning: tag "wm_on_paused_called" (30021) duplicated in frameworks/base/core/java/android/app/EventLogTags.logtags:9
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:41: warning: tag "wm_on_resume_called" (30022) duplicated in frameworks/base/core/java/android/app/EventLogTags.logtags:11
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:50: warning: tag "wm_stop_activity" (30048) duplicated in frameworks/base/core/java/android/app/EventLogTags.logtags:14
frameworks/base/services/core/java/com/android/server/wm/EventLogTags.logtags:56: warning: tag "wm_add_to_stopping" (30066) duplicated in frameworks/base/core/java/android/app/EventLogTags.logtags:35
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:6: warning: tag "lock_screen_type" (90200) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:6
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:9: warning: tag "exp_det_device_admin_activated_by_user" (90201) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:9
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:12: warning: tag "exp_det_device_admin_declined_by_user" (90202) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:12
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:15: warning: tag "exp_det_device_admin_uninstalled_by_user" (90203) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:15
packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/EventLogTags.logtags:18: warning: tag "settings_latency" (90204) duplicated in packages/apps/Settings/src/com/android/settings/EventLogTags.logtags:18
[ 35% 5946/16574] Install: out/target/product/rk3568_r/vendor/lib/egl/libGLES_mali.so
/home/simon/at5v5_1108/AT5_V5_android11/rk3568_sdk_11
/home/simon/at5v5_1108/AT5_V5_android11/rk3568_sdk_11
[ 36% 6076/16574] Install: out/target/product/rk3568_r/vendor/lib64/egl/libGLES_mali.so
/home/simon/at5v5_1108/AT5_V5_android11/rk3568_sdk_11
/home/simon/at5v5_1108/AT5_V5_android11/rk3568_sdk_11
[ 37% 6209/16574] depmod out/target/product/rk3568_r/obj/PACKAGING/depmod_VENDOR_intermediates
depmod: WARNING: could not open modules.order at /home/simon/at5v5_1108/AT5_V5_android11/rk3568_sdk_11/out/target/product/rk3568_r/obj/PACKAGING/depmod_VENDOR_intermediates/lib/modules/0.0: No such file or directory
depmod: WARNING: could not open modules.builtin at /home/simon/at5v5_1108/AT5_V5_android11/rk3568_sdk_11/out/target/product/rk3568_r/obj/PACKAGING/depmod_VENDOR_intermediates/lib/modules/0.0: No such file or directory
[ 37% 6214/16574] build out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log
FAILED: out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log
/bin/bash -c "(echo -n -e 'Deps: \\n  ' > out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log ) && (sed 's/ /\\n  /g' <<< \"out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.1.xml out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.2.xml out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.3.xml out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.4.xml out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.5.xml out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.device.xml out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.legacy.xml out/target/product/rk3568_r/system/etc/vintf/manifest.xml out/target/product/rk3568_r/system/etc/vintf/manifest/android.frameworks.stats@1.0-service.xml out/target/product/rk3568_r/system/etc/vintf/manifest/android.hidl.allocator@1.0-service.xml out/target/product/rk3568_r/system/etc/vintf/manifest/android.system.suspend@1.0-service.xml out/target/product/rk3568_r/system/etc/vintf/manifest/manifest_android.frameworks.cameraservice.service@2.1.xml out/target/product/rk3568_r/system/etc/vintf/manifest/manifest_media_c2_software.xml out/target/product/rk3568_r/system_ext/etc/vintf/manifest.xml out/target/product/rk3568_r/vendor/etc/vintf/compatibility_matrix.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.cas@1.2-service.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.drm@1.3-service.widevine.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.gatekeeper@1.0-service.optee.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.health@2.1.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.keymaster@4.0-service.optee.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.weaver@1.0-service.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.wifi.hostapd.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.wifi@1.0-service.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/lights-rockchip.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/manifest.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/manifest_android.hardware.drm@1.3-service.clearkey.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/power-aidl-rockchip.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/rockchip.hardware.neuralnetworks@1.0-service.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/rockchip.hardware.outputmanager@1.0-service.xml out/target/product/rk3568_r/vendor/etc/vintf/manifest/rockchip.hardware.rockit.hw@1.0-service.xml out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/kernel_configs.txt out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/kernel_version.txt\" >> out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log ) && (echo -n -e 'Args: \\n  ' >> out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log ) && (cat <<< \" --kernel \$(cat out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/kernel_version.txt):out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/kernel_configs.txt --dirmap /system:out/target/product/rk3568_r/system --dirmap /vendor:out/target/product/rk3568_r/vendor --dirmap /odm:out/target/product/rk3568_r/odm --dirmap /product:out/target/product/rk3568_r/product --dirmap /system_ext:out/target/product/rk3568_r/system_ext  --property ro.product.first_api_level=30\" >> out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log ) && (echo \"For ODM SKU = EMPTY_ODM_SKU_PLACEHOLDER, vendor SKU = EMPTY_VENDOR_SKU_PLACEHOLDER\" >> out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log; ( out/host/linux-x86/bin/checkvintf --check-compat  --kernel \$(cat out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/kernel_version.txt):out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/kernel_configs.txt --dirmap /system:out/target/product/rk3568_r/system --dirmap /vendor:out/target/product/rk3568_r/vendor --dirmap /odm:out/target/product/rk3568_r/odm --dirmap /product:out/target/product/rk3568_r/product --dirmap /system_ext:out/target/product/rk3568_r/system_ext  --property ro.product.first_api_level=30 --property ro.boot.product.hardware.sku= --property ro.boot.product.vendor.sku= >> out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log 2>&1 ) || (cat out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log && exit 1) )"
Deps:
  out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.1.xml
  out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.2.xml
  out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.3.xml
  out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.4.xml
  out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.5.xml
  out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.device.xml
  out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.legacy.xml
  out/target/product/rk3568_r/system/etc/vintf/manifest.xml
  out/target/product/rk3568_r/system/etc/vintf/manifest/android.frameworks.stats@1.0-service.xml
  out/target/product/rk3568_r/system/etc/vintf/manifest/android.hidl.allocator@1.0-service.xml
  out/target/product/rk3568_r/system/etc/vintf/manifest/android.system.suspend@1.0-service.xml
  out/target/product/rk3568_r/system/etc/vintf/manifest/manifest_android.frameworks.cameraservice.service@2.1.xml
  out/target/product/rk3568_r/system/etc/vintf/manifest/manifest_media_c2_software.xml
  out/target/product/rk3568_r/system_ext/etc/vintf/manifest.xml
  out/target/product/rk3568_r/vendor/etc/vintf/compatibility_matrix.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.cas@1.2-service.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.drm@1.3-service.widevine.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.gatekeeper@1.0-service.optee.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.health@2.1.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.keymaster@4.0-service.optee.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.weaver@1.0-service.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.wifi.hostapd.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.wifi@1.0-service.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/lights-rockchip.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/manifest.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/manifest_android.hardware.drm@1.3-service.clearkey.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/power-aidl-rockchip.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/rockchip.hardware.neuralnetworks@1.0-service.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/rockchip.hardware.outputmanager@1.0-service.xml
  out/target/product/rk3568_r/vendor/etc/vintf/manifest/rockchip.hardware.rockit.hw@1.0-service.xml
  out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/kernel_configs.txt
  out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/kernel_version.txt
Args:
   --kernel 4.19.232:out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/kernel_configs.txt --dirmap /system:out/target/product/rk3568_r/system --dirmap /vendor:out/target/product/rk3568_r/vendor --dirmap /odm:out/target/product/rk3568_r/odm --dirmap /product:out/target/product/rk3568_r/product --dirmap /system_ext:out/target/product/rk3568_r/system_ext  --property ro.product.first_api_level=30
For ODM SKU = EMPTY_ODM_SKU_PLACEHOLDER, vendor SKU = EMPTY_VENDOR_SKU_PLACEHOLDER
checkvintf I 11-16 20:02:07 18816 18816 VintfObject.cpp:55] getFrameworkHalManifest: Reading VINTF information.
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/manifest.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/system/etc/vintf/manifest/': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/manifest/android.frameworks.stats@1.0-service.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/manifest/manifest_android.frameworks.cameraservice.service@2.1.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/manifest/android.system.suspend@1.0-service.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/manifest/android.hidl.allocator@1.0-service.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/manifest/manifest_media_c2_software.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/product/etc/vintf/manifest.xml': No such file or directory
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/product/etc/vintf/manifest/': No such file or directory
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system_ext/etc/vintf/manifest.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/system_ext/etc/vintf/manifest/': No such file or directory
checkvintf I 11-16 20:02:07 18816 18816 VintfObject.cpp:61] getFrameworkHalManifest: Successfully processed VINTF information
checkvintf I 11-16 20:02:07 18816 18816 VintfObject.cpp:55] getDeviceHalManifest: Reading VINTF information.
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:122] Sysprop ro.boot.product.vendor.sku=
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/manifest.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/rockchip.hardware.rockit.hw@1.0-service.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/power-aidl-rockchip.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.wifi@1.0-service.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/manifest_android.hardware.drm@1.3-service.clearkey.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.weaver@1.0-service.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.drm@1.3-service.widevine.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.gatekeeper@1.0-service.optee.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.keymaster@4.0-service.optee.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/lights-rockchip.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.cas@1.2-service.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.wifi.hostapd.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/rockchip.hardware.neuralnetworks@1.0-service.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/android.hardware.health@2.1.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/manifest/rockchip.hardware.outputmanager@1.0-service.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:122] Sysprop ro.boot.product.hardware.sku=
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/odm/etc/vintf/manifest.xml': No such file or directory
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/odm/etc/manifest.xml': No such file or directory
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/odm/etc/vintf/manifest/': No such file or directory
checkvintf I 11-16 20:02:07 18816 18816 VintfObject.cpp:61] getDeviceHalManifest: Successfully processed VINTF information
checkvintf I 11-16 20:02:07 18816 18816 VintfObject.cpp:55] getFrameworkCompatibilityMatrix: Reading VINTF information.
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/system/etc/vintf/': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/manifest.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.1.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.2.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.3.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.legacy.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.5.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.4.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.device.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/system_ext/etc/vintf/': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system_ext/etc/vintf/manifest.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/product/etc/vintf/': No such file or directory
checkvintf I 11-16 20:02:07 18816 18816 VintfObject.cpp:61] getFrameworkCompatibilityMatrix: Successfully processed VINTF information
checkvintf I 11-16 20:02:07 18816 18816 VintfObject.cpp:55] getDeviceCompatibilityMatrix: Reading VINTF information.
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/vendor/etc/vintf/compatibility_matrix.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 VintfObject.cpp:61] getDeviceCompatibilityMatrix: Successfully processed VINTF information
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:154] fetched kernel version 4.19.232
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:168] read kernel configs from out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/kernel_configs.txt
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/system/etc/vintf/': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/manifest.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.1.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.2.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.3.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.legacy.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.5.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.4.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.device.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/system_ext/etc/vintf/': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system_ext/etc/vintf/manifest.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/product/etc/vintf/': No such file or directory
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/system/etc/vintf/': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/manifest.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.1.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.2.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.3.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.legacy.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.5.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.4.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system/etc/vintf/compatibility_matrix.device.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/system_ext/etc/vintf/': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system_ext/etc/vintf/manifest.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/product/etc/vintf/': No such file or directory
checkvintf E 11-16 20:02:07 18816 18816 check_vintf.cpp:554] files are incompatible: Runtime info and framework compatibility matrix are incompatible: No compatible kernel requirement found (kernel FCM version = 5).
checkvintf E 11-16 20:02:07 18816 18816 check_vintf.cpp:554] For kernel requirements at matrix level 5, For config CONFIG_DEVMEM, value = y but required n
checkvintf E 11-16 20:02:07 18816 18816 check_vintf.cpp:554] : Success
INCOMPATIBLE
20:02:14 ninja failed with: exit status 1

关键报错:

[ 37% 6209/16574] depmod out/target/product/rk3568_r/obj/PACKAGING/depmod_VENDOR_intermediates
depmod: WARNING: could not open modules.order at /home/simon/at5v5_1108/AT5_V5_android11/rk3568_sdk_11/out/target/product/rk3568_r/obj/PACKAGING/depmod_VENDOR_intermediates/lib/modules/0.0: No such file or directory
depmod: WARNING: could not open modules.builtin at /home/simon/at5v5_1108/AT5_V5_android11/rk3568_sdk_11/out/target/product/rk3568_r/obj/PACKAGING/depmod_VENDOR_intermediates/lib/modules/0.0: No such file or directory
[ 37% 6214/16574] build out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log
FAILED: out/target/product/rk3568_r/obj/PACKAGING/check_vintf_all_intermediates/check_vintf_compatible_log
 

checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/system_ext/etc/vintf/': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:74] Fetch 'out/target/product/rk3568_r/system_ext/etc/vintf/manifest.xml': SUCCESS
checkvintf I 11-16 20:02:07 18816 18816 check_vintf.cpp:84] List 'out/target/product/rk3568_r/product/etc/vintf/': No such file or directory
checkvintf E 11-16 20:02:07 18816 18816 check_vintf.cpp:554] files are incompatible: Runtime info and framework compatibility matrix are incompatible: No compatible kernel requirement found (kernel FCM version = 5).
checkvintf E 11-16 20:02:07 18816 18816 check_vintf.cpp:554] For kernel requirements at matrix level 5, For config CONFIG_DEVMEM, value = y but required n
checkvintf E 11-16 20:02:07 18816 18816 check_vintf.cpp:554] : Success
INCOMPATIBLE
20:02:14 ninja failed with: exit status 1

#### failed to build some targets (20 seconds) ####

Build android failed!
 

原因是因为kernel需要支持IO命令操作,在kernel/configs/android-11.config中增加了如下内容导致的:

--- a/kernel/configs/rockchip/android-11.config
+++ b/kernel/configs/rockchip/android-11.config
@@ -5,7 +5,9 @@
 # CONFIG_CIFS_XATTR is not set
 # CONFIG_CIFS_POSIX is not set
 # CONFIG_CRYPTO_MD4 is not set
-# CONFIG_DEVMEM is not set
+CONFIG_DEVMEM=y
+CONFIG_STRICT_DEVMEM=y
+CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
 # CONFIG_FHANDLE is not set
 # CONFIG_FW_CACHE is not set
 # CONFIG_IP6_NF_NAT is not set

解决方法:

diff --git a/kernel/configs/r/android-4.19/android-base-conditional.xml b/kernel/configs/r/android-4.19/android-base-conditional.xml
old mode 100644
new mode 100755
index 5d5a477..7f666b8
--- a/kernel/configs/r/android-4.19/android-base-conditional.xml
+++ b/kernel/configs/r/android-4.19/android-base-conditional.xml
@@ -17,10 +17,10 @@
                <key>CONFIG_CPU_SW_DOMAIN_PAN</key>
                <value type="bool">y</value>
        </config>
-       <config>
+<!--   <config>
                <key>CONFIG_DEVKMEM</key>
                <value type="bool">n</value>
-       </config>
+       </config> -->
        <config>
                <key>CONFIG_OABI_COMPAT</key>
                <value type="bool">n</value>
@@ -77,10 +77,10 @@
                        <value type="bool">y</value>
                </config>
        </conditions>
-       <config>
+<!--   <config>
                <key>CONFIG_DEVKMEM</key>
                <value type="bool">n</value>
-       </config>
+       </config> -->
        <config>
                <key>CONFIG_PAGE_TABLE_ISOLATION</key>
                <value type="bool">y</value>
diff --git a/kernel/configs/r/android-4.19/android-base.config b/kernel/configs/r/android-4.19/android-base.config
old mode 100644
new mode 100755
index f942b8e..4d136c6
--- a/kernel/configs/r/android-4.19/android-base.config
+++ b/kernel/configs/r/android-4.19/android-base.config
@@ -2,7 +2,6 @@
 # CONFIG_ANDROID_LOW_MEMORY_KILLER is not set
 # CONFIG_BPFILTER is not set
 # CONFIG_CRYPTO_MD4 is not set
-# CONFIG_DEVMEM is not set
 # CONFIG_FHANDLE is not set
 # CONFIG_FW_CACHE is not set
 # CONFIG_IP6_NF_NAT is not se

  • 5
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 5
    评论
编译Android 11需要先确保安装了必要的软件和工具。首先,需要安装Java Development Kit(JDK),推荐版本为JDK 8。然后,需要安装Android SDK和Android Studio,它们包含了Android开发所需的各种工具和库。 接下来,要获取Android源代码,可以使用Git版本控制工具进行克隆。在命令行中输入以下命令: ``` $ repo init -u https://android.googlesource.com/platform/manifest -b android-11.0.0_r45 $ repo sync ``` 其中,`-u`参数指定了源代码的位置,`-b`参数指定了要下载的具体版本。`repo sync`命令用于下载源代码。 完成源代码的下载后,需要执行一些准备工作。首先,执行以下命令初始化环境: ``` $ source build/envsetup.sh ``` 然后,选择目标设备的编译配置。可以使用以下命令列出可用的设备: ``` $ lunch ``` 选择相应的设备,例如“rk3568-user”或“rk3568-userdebug”。设备选择完成后,执行以下命令开始编译: ``` $ m ``` 编译过程可能需要一段时间,具体时间取决于计算机性能和网络速度。 编译完成后,可以在`out/target/product/<device>`目录下找到生成的系统镜像文件。可以将该镜像文件刷入目标设备进行测试和调试。 总结来说,编译Android 11需要安装必要的软件和工具,获取源代码并进行初始化,选择目标设备的编译配置,执行编译命令,最后得到系统镜像文件。以上是对rk3568编译Android 11和目录结构的简要讲解。
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

九月天-深圳专业软硬件开发

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值