diff --git a/kernel/arch/arm64/configs/rockchip_defconfig b/kernel/arch/arm64/configs/rockchip_defconfig
index 962c426..1ca783d 100755
--- a/kernel/arch/arm64/configs/rockchip_defconfig
+++ b/kernel/arch/arm64/configs/rockchip_defconfig
@@ -938,3 +938,6 @@ CONFIG_SCHED_STACK_END_CHECK=y
# CONFIG_DEBUG_PREEMPT is not set
CONFIG_ENABLE_DEFAULT_TRACERS=y
CONFIG_BUG_ON_DATA_CORRUPTION=y
+CONFIG_DEVMEM=y
+CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
+CONFIG_STRICT_DEVMEM=y
diff --git a/kernel/configs/rockchip/android-11.config b/kernel/configs/rockchip/android-11.config
old mode 100644
new mode 100755
index ad15f0d..c06c1d5
--- 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
./build.sh -KA
android编译会出错!!!
checkvintf I 08-17 20:43:04 14697 14697 check_vintf.cpp:74] Fetch 'out/target/product/rk3566_r/system/etc/vintf/compatibility_matrix.5.xml': SUCCESS checkvintf I 08-17 20:43:04 14697 14697 check_vintf.cpp:74] Fetch 'out/target/product/rk3566_r/system/etc/vintf/compatibility_matrix.4.xml': SUCCESS checkvintf I 08-17 20:43:04 14697 14697 check_vintf.cpp:84] List 'out/target/product/rk3566_r/system_ext/etc/vintf/': SUCCESS checkvintf I 08-17 20:43:04 14697 14697 check_vintf.cpp:74] Fetch 'out/target/product/rk3566_r/system_ext/etc/vintf/manifest.xml': SUCCESS checkvintf I 08-17 20:43:04 14697 14697 check_vintf.cpp:84] List 'out/target/product/rk3566_r/product/etc/vintf/': No such file or directory checkvintf E 08-17 20:43:04 14697 14697 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 08-17 20:43:04 14697 14697 check_vintf.cpp:554] For kernel requirements at matrix level 5, For config CONFIG_DEVMEM, value = y but required n checkvintf E 08-17 20:43:04 14697 14697 check_vintf.cpp:554] : Success INCOMPATIBLE 20:43:06 ninja failed with: exit status 1 #### failed to build some targets (21 seconds) ####
需修改以下文件:
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 @@
CONFIG_CPU_SW_DOMAIN_PAN
y
-
+
CONFIG_OABI_COMPAT
n
@@ -77,10 +77,10 @@
y
-
+
CONFIG_PAGE_TABLE_ISOLATION
y
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 set
amp设置方法
io设置如:
rk3566_r:/ # io -4 -r 0xfdcb0010
fdcb0010: 00003333
rk3566_r:/ # io -4 -w 0xfdcb0010 0xffff0055
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)