当前位置: 代码迷 >> 驱动开发 >> 内核移植后内存显示不正确,该如何处理
  详细解决方案

内核移植后内存显示不正确,该如何处理

热度:60   发布时间:2016-04-28 11:01:44.0
内核移植后内存显示不正确
在下移植linux2.6.36到2440上时,移植成功了,但是发现内存的显示不正解,我用的是vivi,没有用uboot

本来应该是64M的,怎么会少呢?

启动信息如下:



Linux version 2.6.36.4 ([email protected]) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #19 Fri Oct 28 22:50:14 CST 2011
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064
Kernel command line: root=/dev/nfs nfsroot=192.168.1.118:/opt/kernel/rootfs ip=192.168.1.100:192.168.1.170:192.168.1.1:255.255.255.0:LAB701.170:eth0:off init=/linuxrc console=ttySAC0,115200
PID hash table entries: 64 (order: -4, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 16MB = 16MB total
Memory: 11784k/11784k available, 4600k reserved, 0K highmem
Virtual kernel memory layout:
  vector : 0xffff0000 - 0xffff1000 ( 4 kB)
  fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
  DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
  vmalloc : 0xc1800000 - 0xe0000000 ( 488 MB)
  lowmem : 0xc0000000 - 0xc1000000 ( 16 MB)
  modules : 0xbf000000 - 0xc0000000 ( 16 MB)
  .init : 0xc0008000 - 0xc002c000 ( 144 kB)
  .text : 0xc002c000 - 0xc03e2000 (3800 kB)
  .data : 0xc0402000 - 0xc0426440 ( 146 kB)
Hierarchical RCU implementation.
  RCU-based detection of stalled CPUs is disabled.
  Verbose stalled-CPUs detection is disabled.
NR_IRQS:99
irq: clearing pending ext status 00000200
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
gpiochip_add: gpios 288..303 (GPIOK) failed to register
gpiochip_add: gpios 320..334 (GPIOL) failed to register
gpiochip_add: gpios 352..353 (GPIOM) failed to register
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, Copyright 2003-2006 Simtec Electronics
DMA channel 0 at c1808000, irq 33
DMA channel 1 at c1808040, irq 34
DMA channel 2 at c1808080, irq 35
DMA channel 3 at c18080c0, irq 36
S3C244X: Clock Support, DVS off
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.23.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
ROMFS MTD (C) 2007 Red Hat, Inc.
  相关解决方案