为什么总内存只有827MB而不是1GB - cubieplayer/Cubian GitHub Wiki

问题

我只能看到 846992KB 的总内存,而不是预计中的104857KB。

root@Cubian:/proc# cat meminfo
MemTotal:         846992 kB
MemFree:          729104 kB
Buffers:            5616 kB
Cached:            85140 kB
SwapCached:            0 kB
Active:            24860 kB
Inactive:          77996 kB
Active(anon):      12128 kB
Inactive(anon):     1536 kB
Active(file):      12732 kB
Inactive(file):    76460 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:        270336 kB
HighFree:         172176 kB
LowTotal:         576656 kB
LowFree:          556928 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:         12172 kB
Mapped:             6412 kB
Shmem:              1568 kB
Slab:               6384 kB
SReclaimable:       1816 kB
SUnreclaim:         4568 kB
KernelStack:        1096 kB
PageTables:          852 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:      423496 kB
Committed_AS:     501032 kB
VmallocTotal:     245760 kB
VmallocUsed:       12200 kB
VmallocChunk:     212928 kB

解决方法

修改 uEnv.txt (系统运行在NAND上) or boot.scr (系统运行在SD卡上)

setenv bootargs console=tty0 console=ttyS0,115200 sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x800p60 root=/dev/mmcblk0p1 rootwait panic=10

参考

  1. Kernel arguments