RK3568 使能IO命令和pin_debug_tool 工具

SDK默认不可使用IO命令,和使用pin_debug_tool工具报错或无法读取设备配置

Index: rk3568_sdk_11/kernel/configs/r/android-4.19/android-base-conditional.xml
===================================================================
--- rk3568_sdk_11/kernel/configs/r/android-4.19/android-base-conditional.xml    (revision 397)
+++ rk3568_sdk_11/kernel/configs/r/android-4.19/android-base-conditional.xml    (revision 398)
@@ -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>
Index: rk3568_sdk_11/kernel/configs/r/android-4.19/android-base.config
===================================================================
--- rk3568_sdk_11/kernel/configs/r/android-4.19/android-base.config    (revision 397)
+++ rk3568_sdk_11/kernel/configs/r/android-4.19/android-base.config    (revision 398)
@@ -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
Index: rk3568_sdk_11/kernel/configs/rockchip/android-11.config
===================================================================
--- rk3568_sdk_11/kernel/configs/rockchip/android-11.config    (revision 397)
+++ rk3568_sdk_11/kernel/configs/rockchip/android-11.config    (revision 398)
@@ -18,6 +18,9 @@
 # CONFIG_SYSVIPC is not set
 # CONFIG_USELIB is not set
 # CONFIG_VHOST is not set
+CONFIG_DEVMEM=y
+CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=Y
+CONFIG_STRICT_DEVMEM=Y
 CONFIG_ADVISE_SYSCALLS=y
 CONFIG_AIO=y
 CONFIG_ANDROID=y
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

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

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

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

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

打赏作者

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

抵扣说明:

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

余额充值