简体   繁体   English

为Linux内核配置物理内存

[英]Configuring physical memory for linux kernel

I have an embedded board (MIPS architecture) running linux 2.6.29 with u-boot as the bootloader. 我有一个运行linux 2.6.29的嵌入式板(MIPS架构),并使用u-boot作为引导加载程序。 I have 512MB(bytes) of DDR3 RAM. 我有512MB(字节)的DDR3 RAM。

The problem is, Linux is able to use only around 128MB of it. 问题是,Linux只能使用大约128MB。 I tried changing the memory size while kernel compilation, but the kernel crashes while booting up. 我尝试在内核编译时更改内存大小,但是在启动时内核崩溃。

Can somebody please help me with this?. 有人可以帮我吗? I even tried passing mem=512MB as kernel command line parameter from uboot, but that didn't work. 我什至尝试从uboot传递mem=512MB作为内核命令行参数,但是那没有用。

No experience with MIPS boards but a problem i've encountered on ARM is that the physical memory isn't mapped to 512 M of contiguous address space but split. 没有使用MIPS板的经验,但是我在ARM上遇到的一个问题是物理内存未映射到512 M的连续地址空间而是被拆分了。 Look at the memmap parameter for the kernel, and at the documentation for your board. 查看内核的memmap参数和开发板的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM