[RK3288][Android6.0] 除錯筆記 --- 讀取當前DDR頻率方法
OS: Android 6.0
Kernel: 3.10.92
ddr和gpu的clock都受dvfs模組管控, 所以只要執行:
[email protected]:/ # cat /sys/dvfs/dvfs_tree
kernel log中打印出來:
[ 2264.928913] DVFS TREE:
[ 2264.928977] |
[ 2264.928977] |- voltage domain:vd_gpu
[ 2264.929069] |- current voltage:1150000
[ 2264.929125] |- current regu_mode:UNKNOWN
[ 2264.929199] | |
[ 2264.929199] | |- power domain:pd_gpu, status = OFF, current volt = 1150000, current regu_mode = UNKNOWN
[ 2264.929423] | | |
[ 2264.929423] | | |- clock: clk_gpu current: rate 480000, volt = 1150000, enable_dvfs = ENABLE
[ 2264.929550] | | |- clk limit(enable):[99000000, 480000000]; last set rate = 480000
[ 2264.929624] | | | |- freq = 99000, volt = 900000
[ 2264.929689] | | | |- freq = 198000, volt = 900000
[ 2264.929751] | | | |- freq = 297000, volt = 950000
[ 2264.929814] | | | |- freq = 417000, volt = 1050000
[ 2264.929877] | | | |- freq = 480000, volt = 1150000
[ 2264.929949] | | |- clock: clk_gpu current: rate 480000
[ 2264.930019] |
[ 2264.930019] |- voltage domain:vd_logic
[ 2264.930105] |- current voltage:1100000
[ 2264.930161] |- current regu_mode:UNKNOWN
[ 2264.930231] | |
[ 2264.930231] | |- power domain:pd_vio, status = OFF, current volt = 1100000, current regu_mode = UNKNOWN
[ 2264.930348] | | |
[ 2264.930348] | | |- clock: aclk_vio1 current: rate 410000, volt = 1100000, enable_dvfs = ENABLE
[ 2264.930463] | | |- clk limit(enable):[82000000, 410000000]; last set rate = 410000
[ 2264.930534] | | | |- freq = 82000, volt = 1100000
[ 2264.930597] | | | |- freq = 410000, volt = 1100000
[ 2264.930670] | | |- clock: aclk_vio1 current: rate 410000, regu_mode = UNKNOWN, regu_mode_en = 0
[ 2264.930753] | |
[ 2264.930753] | |- power domain:pd_ddr, status = OFF, current volt = 1100000, current regu_mode = UNKNOWN
[ 2264.930868] | | |
[ 2264.930868] | | |- clock: clk_ddr current: rate 396000, volt = 1100000, enable_dvfs = ENABLE
[ 2264.930982] | | |- clk limit(enable):[200000000, 528000000]; last set rate = 396000
[ 2264.931053] | | | |- freq = 200000, volt = 1050000
[ 2264.931116] | | | |- freq = 300000, volt = 1050000
[ 2264.931178] | | | |- freq = 396000, volt = 1100000
[ 2264.931239] | | | |- freq = 528000, volt = 1150000
[ 2264.931309] | | |- clock: clk_ddr current: rate 396000
[ 2264.931379] |
[ 2264.931379] |- voltage domain:vd_arm
[ 2264.931464] |- current voltage:900000
[ 2264.931519] |- current regu_mode:UNKNOWN
[ 2264.931588] | |
[ 2264.931588] | |- power domain:pd_core, status = OFF, current volt = 900000, current regu_mode = UNKNOWN
[ 2264.931701] | | |
[ 2264.931701] | | |- clock: clk_core current: rate 126000, volt = 900000, enable_dvfs = ENABLE
[ 2264.931814] | | |- clk limit(enable):[126000000, 1608000000]; last set rate = 126000
[ 2264.931885] | | | |- freq = 126000, volt = 900000
[ 2264.931947] | | | |- freq = 216000, volt = 900000
[ 2264.932008] | | | |- freq = 312000, volt = 900000
[ 2264.932222] | | | |- freq = 408000, volt = 900000
[ 2264.932290] | | | |- freq = 600000, volt = 900000
[ 2264.932353] | | | |- freq = 696000, volt = 950000
[ 2264.932415] | | | |- freq = 816000, volt = 1000000
[ 2264.932478] | | | |- freq = 1008000, volt = 1050000
[ 2264.932542] | | | |- freq = 1200000, volt = 1100000
[ 2264.932604] | | | |- freq = 1416000, volt = 1200000
[ 2264.932667] | | | |- freq = 1512000, volt = 1300000
[ 2264.932729] | | | |- freq = 1608000, volt = 1350000
[ 2264.932801] | | |- clock: clk_core current: rate 126000, regu_mode = UNKNOWN, regu_mode_en = 0
[ 2264.932870] -------------DVFS TREE END------------
相關推薦
[RK3288][Android6.0] 除錯筆記 --- 讀取當前DDR頻率方法
Platform: Rockchip OS: Android 6.0 Kernel: 3.10.92 ddr和gpu的clock都受dvfs模組管控, 所以只要執行:[email protected]:/ # cat /sys/dvfs/dvfs_tree kernel log中打印出來: [ 2
[RK3288][Android6.0] 除錯筆記 --- CPU使用的頻率表
Platform: Rockchip OS: Android 6.0 Kernel: 3.10.92 系統中有三張CPU相關的頻率表: 1. rockchip-cpufreq.c: /* Fr
[RK3288][Android6.0] 除錯筆記 --- 命令列播放音樂方法
Platform: Rockchip OS: Android 6.0 Kernel: 3.10.92 播放wav檔案可以使用tinyplay [email protected]#
[RK3288][Android6.0] 除錯筆記 --- 普通串列埠的新增
Platform: ROCKCHIP OS: Android 6.0 Kernel: 3.10.92 uart0,1,3,4 (普通串列埠) 用的是同一個串列埠驅動. uart2(除錯串列埠)的驅動程式碼嵌在fiq debugger的code中. 相關的配置在rk3288.dtsi中:
[RK3288][Android6.0] 除錯筆記 --- hwclock命令無法使用
Platform: Rockchip OS: Android 6.0 Kernel: 3.10.92 現象: 使用hwclock,提示找不到檔案 [email protected]:/ # hwclock
[RK3288][Android6.0] 除錯筆記 --- I2C通訊失敗問題
Platform: Rockchip OS: Android 6.0 Kernel: 3.10.92 使用rk3288的i2c5讀寫時,會出現以下error log: [email prot
[RK3288][Android6.0] 除錯筆記 --- 測試I2C裝置正常傳輸方法
Platform: Rockchip OS: Android 6.0 Kernel: 3.10.92 rk在驅動層做了一個通用i2c測試程式碼提供給上層快速測試i2c外設是否傳輸正常. 測試使用方法
[RK3288][Android6.0] 除錯筆記 --- eMMC分割槽號和名字的對應
Platform: Rockchip OS: Android 6.0 Kernel: 3.10.92 有時候需要知道mmcblk對應的分割槽是哪一個,其實驅動已經完成這個功能了,如下: [email protected]:/dev/blo
[RK3288][Android6.0] 除錯筆記 --- user版本串列埠只有輸出不能輸入
Platform: ROCKCHIP OS: Android 6.0 Kernel: 3.10.92現象: 編譯成user版本之後串列埠只有輸出沒有輸入.原因: 編譯user版本之後 ro.debug
[RK3288][Android6.0] 除錯筆記 --- 系統自帶預置第三方APK方法
Platform: RK3288 OS: Android 6.0 Kernel: 3.10.92 Rockchip預設提供了機制來預置第三方APK, 方法很簡單: 1. 在device/rockchip/rk3288建立preinstall目錄(如果
[RK3288][Android6.0] 除錯筆記 --- Audio驅動層判斷錄音資料是否異常
Platform: Rockchip OS: Android 6.0 Kernel: 3.10.92 之前有提到上層可以通過dump pcm資料檢視波形來確定錄音取樣的資料是否正常,這裡給出驅動層檢視
[RK3288][Android6.0] 除錯筆記 --- 除錯串列埠的更換
Platform: ROCKCHIP OS: Android 6.0 Kernel: 3.10.92 假設專案有需求要將除錯串列埠uart2 改成 uart1, 改動如下 (還未驗證,先分享給大家,
[RK3288][Android6.0] 除錯筆記 --- pmu(rk818)暫存器讀寫
Platform: Rockchip OS: Android 6.0 Kernel: 3.10.92 rk的pmu模組只提供了每次單個暫存器的讀寫,驅動提供了這個節點供使用:/sys/rk818/rk818_test 舉例: 讀取: echo r
[RK3288][Android6.0] 除錯筆記 --- 遮蔽系統下拉選單顯示
Platform: Rockchip OS: Android 6.0 Kernel: 3.10.92 [email protected]:~/rk3288/frameworks/base/
[RK3288][Android6.0] 除錯筆記 --- ro.serialno的獲取
Platform: RK3288 OS: Android 6.0 Kernel: 3.10.92 rk3288平臺的serial number是由drmservice寫進去的,drmservice在rc檔案中定義啟動: init.rk30board.
[RK3288][Android6.0] 除錯筆記 --- 螢幕顯示旋轉方法
Platform: Rockchip OS: Android 6.0 Kernel: 3.10.92 顯示模組提供了一個property供修改旋轉方向,名為”ro.sf.hwrotation”,有四個值可選 Surface.java /** *
[RK3288][Android6.0] 除錯筆記 --- eMMC壞塊測試
Platform: Rockchip OS: Android 6.0 Kernel: 3.10.92 網上搜到一個叫eMMC Brickbug Check的apk 啟動后里面的Check Memory一項提示要root,但是系統已經是root過的了,
[RK3288][Android6.0] 除錯筆記 --- CPU溫度降頻控制
rk3288平臺關於溫度調節cpu頻率有個bug. 在rk3288.dtsi中,有: temp-limit-enable = <1>; target-temp = <80>; min_temp_limit = <48>
[RK3288][Android6.0] 除錯筆記 --- 移除uboot和kernel開機logo
Platform: RockchipOS: Android 6.0Kernel: 3.10.92diff --git a/arch/arm/boot/dts/rk3288-b.dts b/arch/arm/boot/dts/rk3288-b.dtsindex ad3bc1a.
[RK3288][Android6.0] 除錯筆記 --- 電池電量一直顯示100%
Platform: Rockchip OS: Android 6.0 Kernel: 3.10.92 跟蹤發現Android6.0相比之前的Android4.4會判斷Charger是否存在,不