如何查看当前项目的physical memory layout
时间:10-02
整理:3721RD
点击:
查看 物理内存分布, 两种方法:
一种是直接adb shell cat /proc/mtk_memcfg/memory_Layout
一种是需要接UART,抓一份开机过程的uart log,然后在log 当中搜索key word [
Phy Layout],就会发现类似下面的:
[ 0.000000]-(0)[0:swapper][Phy Layout] Avail. DRAM Size : 0x1ff00000
[ 0.000000]-(0)[0:swapper][Phy Layout] FB : 0x9fc00000-0xa0000000
(0x00400000)
[ 0.000000]-(0)[0:swapper][Phy Layout] PMEM : 0x9fc00000-0x9fc00000
(0x00000000)
[ 0.000000]-(0)[0:swapper][PHY layout]kernel : 0x80100000 - 0x9dffffff
(0x1df00000)
[ 0.000000]-(0)[0:swapper][PHY layout]kernel : 0x9f800000 - 0x9fbfffff
(0x00400000)
一种是直接adb shell cat /proc/mtk_memcfg/memory_Layout
一种是需要接UART,抓一份开机过程的uart log,然后在log 当中搜索key word [
Phy Layout],就会发现类似下面的:
[ 0.000000]-(0)[0:swapper][Phy Layout] Avail. DRAM Size : 0x1ff00000
[ 0.000000]-(0)[0:swapper][Phy Layout] FB : 0x9fc00000-0xa0000000
(0x00400000)
[ 0.000000]-(0)[0:swapper][Phy Layout] PMEM : 0x9fc00000-0x9fc00000
(0x00000000)
[ 0.000000]-(0)[0:swapper][PHY layout]kernel : 0x80100000 - 0x9dffffff
(0x1df00000)
[ 0.000000]-(0)[0:swapper][PHY layout]kernel : 0x9f800000 - 0x9fbfffff
(0x00400000)
。。
。。
。。
