1. MTK平台,有个节点查看内存表(有些人做假内存大小)
/proc/mtk_memcfg/memory_layout
FS502:/proc/mtk_memcfg # cat memory_layout
Physical layout:
------------------------------ 0xbe3e0000
- -
- kernel - size : (0xe0000)
- -
------------------------------ 0xbe300000
- -
- consys-reserve-memo - size : (0x100000)
- -
------------------------------ 0xbe200000
- -
- kernel - size : (0x9f0000)
- -
------------------------------ 0xbd810000
- -
- reserve-memory-ccci - size : (0x3810000)
- -
------------------------------ 0xba000000
- -
- kernel - size : (0x76fd0000)
- -
------------------------------ 0x43030000
- -
- atf-reserved-memory - size : (0x30000)
- -
------------------------------ 0x43000000
- -
- kernel - size : (0x3000000)
- -
------------------------------ 0x40000000
Debug Info:
[PHY layout]atf-reserved-memory@43000000 : 0x43000000 - 0x4302ffff (0x30000)
[PHY layout]reserve-memory-ccci_md1 : 0xba000000 - 0xbd80ffff (0x3810000)
[PHY layout]consys-reserve-memory : 0xbe200000 - 0xbe2fffff (0x100000)
[PHY layout]kernel : 0x40000000 - 0x42ffffff (0x3000000)
[PHY layout]kernel : 0x43030000 - 0xb9ffffff (0x76fd0000)
[PHY layout]kernel : 0xbd810000 - 0xbe1fffff (0x9f0000)
[PHY layout]kernel : 0xbe300000 - 0xbe3dffff (0xe0000)
[PHY layout]tee_reserved_mem : 0xbffc0000 - 0xbfffffff (0x40000)
[debug]available DRAM size = 0x7e3e0000
[PHY layout]FB (dt) : 0xbe3e0000 - 0xbffbffff (0x1be0000)
software IO TLB [mem 0xb8200000-0xb8400000] (2MB) mapped at [ffffffc078200000-ffffffc0783fffff]
buffer usage: 741/2048
Memory: 1940828K/2009728K available, 10848K kernel code, 2316K rwdata, 5624K rodata, 1040K init, 12906K bss, 68900K reserved
vmemmap : 0xffffffbe00000000 - 0xffffffbe01b9d900 ( 27 MB actual)
2. 查看ROM分区节点
/proc/partions