分类: LINUX
2009-12-01 16:59:53
内存地址:include/asm-arm/arch-pxa/memery.h
内存大小:arch/arm/kernel/setup.c中设定。MEM_SIZE (64*1024*1024)
(这个不用,因为系统是连续的内存)还需要对内核的include/asm-arm/arch-pxa/memory.h文件进行修改,修改CPU 内存BANK映射关系,默认还是以256MB(4x64MB)的空间映射的:
41 /*
42 * The nodes are matched with the physical SDRAM banks as follows:
43 *
44 * node 0: 0xa0000000-0xa3ffffff --> 0xc0000000-0xc3ffffff
45 * node 1: 0xa4000000-0xa7ffffff --> 0xc4000000-0xc7ffffff
46 * node 2: 0xa8000000-0xabffffff --> 0xc8000000-0xcbffffff
47 * node 3: 0xac000000-0xafffffff --> 0xcc000000-0xcfffffff
48 */
49 /* Note: depending on Blob revision Mainstone has 32 or 64 Mb of SDRAM
50 * initialized. Example with 32 Mb works for both
51 */
52 //#define NR_NODES 4
56 #define NODE_MAX_MEM_SHIFT 26
57 #define NODE_MAX_MEM_SIZE (1 << NODE_MAX_MEM_SHIFT)
1<<26位,刚好是64BM。
现在改为1G-byte(256MBx4),应该改为1<<28。
同时,在u-boot中设置参数mem=128M。