1

我正在为 powerpc 8641d 板构建一个 linux。我的 U-boot 已经过修改,可以识别 1 GB 的内存 (RAM),而且确实如此。但是当 mem=1024M 作为引导参数从 u-boot 传递时,Linux 2.6.28 崩溃。我在 DTS 文件中将内存大小指定为 0x40000000 (1GB)。谁能帮我找出原因?

但是当我将 bootargs 指定为 'mem=256M' 时,相同的 Linux 映像仍然有效。但是操作系统仅识别 256MB 的总内存,但我希望它识别完整的 1GB 内存。


这是 linux boot 的转储:* * 它此时挂起:

CPU:   8641D, Version: 3.0, (0x80900130)
Core:  E600 Core 0, Version: 2.2, (0x80040202)
Clock Configuration:
   CPU:1000 MHz, MPX:400  MHz
   DDR:200  MHz (400 MT/s data rate), LBC:25   MHz
L1:    D-cache 32 KB enabled
       I-cache 32 KB enabled
L2:    512 KB enabled
Board: Wind River SBC8641D
I2C:   ready
DRAM:      DDR: 1 GiB
FLASH: 16 MiB
PCI-EXPRESS 1: Configured as Host 
IGAPS: PCIE link is Up
Scanning PCI bus 01
        01  00  10cf  2034  0380  ff
    PCI-EXPRESS 1 on bus 00 - 01
PCI-EXPRESS 2: Disabled
In:    serial
Out:   serial
Err:   serial
    IGAPS: Interrupts enabled...!!!!
    Net:   eTSEC1, eTSEC2, eTSEC3, eTSEC4
Hit any key to stop autoboot:  0 

=> bootm 1000000 - 2000000
WARNING: adjusting available memory to 30000000
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   Linux-2.6.28
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    2417424 Bytes = 2.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 007fb000, end 007ffb2d ... OK
WARNING: your dts/dtb is old. You must update before the next kernel release
Using MPC86xx HPCN machine description
Total memory = 1024MB; using 2048kB for hash table (at cfe00000)
Linux version 2.6.28 (TCS@localhost) (gcc version 4.5.4 (Buildroot 2012.11.1) ) #42 SMP Tue Aug     20     22:32:49 IST 2013
CPU maps initialized for 1 thread per core
console [udbg0] enabled
setup_arch: bootmem
mpc86xx_hpcn_setup_arch()
Found FSL PCI host bridge at 0x00000000f8008000. Firmware bus number: 0->1
Zone PFN ranges:
  DMA      0x00000000 -> 0x00030000
  Normal   0x00030000 -> 0x00030000
  HighMem  0x00030000 -> 0x00040000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00040000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
Kernel command line: console=ttyS0,115200 mem=1024M     ip=172.19.180.10:172.19.180.30:172.19.180.1:255.255.255.0:sbc8641d:eth0:off rw root=/dev/nfs     nfsroot=172.19.180.30:/opt/nfsRootfs
PID hash table entries: 4096 (order: 12, 16384 bytes)
clocksource: timebase mult[2800000] shift[22] registered
Console: colour dummy device 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1031376k/1048576k available (4632k kernel code, 16396k reserved, 144k data, 175k bss, 208k init)

有什么理由挂在这里吗?

4

0 回答 0