限制Linux内核的内存区域

限制Linux内核的内存区域

可能重复:
限制Linux内核的内存区域

我在 P1022RDK(P1022 核心)平台上运行 ltib linux。我有 512 MB = 0x20000000 内存。我希望我的 linux 内核使用主板内存的后半部分(即从 256 MB 到 512 MB),并希望将前半部分内存保留用于其他用途。为此,我正在使用 ltib 构建 linux 内核。为此,我设置了以下内核配置。请建议我是否做对了。

CONFIG_LOWMEM_SIZE = 0x10000000 # 256 MB 
CONFIG_PHYSICAL_START = 0x10000000 # Starting from 256MB (second half of memory)

在 Uboot 上我按以下方式加载内核

setenv loadaddr 0x11000000 # Kernel base = 0x10000000 + 0x01000000 (offset)
setenv fdtaddr     0x10c00000 # Kernel base = 0x10000000 + 0x00c00000 (offset)
bootm $loadaddr - $fdtaddr 

我的内核加载地址是 0x10000000,内核入口点是 0x10000000

完成上述配置/步骤后,我的内核在 Uboot 上卡在了以下位置

## Booting kernel from Legacy Image at 11000000 ...
Image Name: Linux-2.6.32.13
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 3352851 Bytes = 3.2 MB
Load Address: 10000000
Entry Point: 10000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 10c00000
Booting using the fdt blob at 0x10c00000
Uncompressing Kernel Image ... OK
================ >> It should uncompress FDT here & continue ==============

有什么想法吗 ?

相关内容