Rev A2 Beagle XM showing only 256Meg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro Linux |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This one is pretty simple.
I hit an OOM this morning and thinking to myself .. wait I've got 512 Meg ram on this thing... I happened to run top and that's when I noticed 1/2 the ram seems to be missing.
root@w00tstock:~# cat /proc/meminfo
MemTotal: 238240 kB
MemFree: 2564 kB
Buffers: 19408 kB
Cached: 73904 kB
SwapCached: 68 kB
Active: 165424 kB
Inactive: 53488 kB
Active(anon): 103736 kB
Inactive(anon): 22144 kB
Active(file): 61688 kB
Inactive(file): 31344 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 1847468 kB
SwapFree: 1847400 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 125556 kB
Mapped: 6200 kB
Shmem: 280 kB
Slab: 9904 kB
SReclaimable: 5712 kB
SUnreclaim: 4192 kB
KernelStack: 696 kB
PageTables: 948 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 1966588 kB
Committed_AS: 176260 kB
VmallocTotal: 647168 kB
VmallocUsed: 464 kB
VmallocChunk: 645200 kB
and dmesg from early in the boot seems to think the machine only has 256 as well:
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.35-
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] Reserving 12582912 bytes SDRAM for VRAM
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x100000
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] free_area_
[ 0.000000] Normal zone: 512 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65024 pages, LIFO batch:15
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=tty0 console=
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] allocated 1310720 bytes of page_cgroup
[ 0.000000] please try 'cgroup_
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 233340k/233340k available, 28804k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc0042000 ( 232 kB)
[ 0.000000] .text : 0xc0042000 - 0xc06a8000 (6552 kB)
[ 0.000000] .data : 0xc0712000 - 0xc0768d60 ( 348 kB)
[ 0.000000] SLUB: Genslabs=9, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU-based detection of stalled CPUs is disabled.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 0.000000] NR_IRQS:402
uboot's initial output seems to think there's only 256Meg as well.
U-Boot 2010.03-rc1 (Jun 01 2010 - 09:57:03)
OMAP3630/3730-GP ES1.0, CPU-OPP2, L3-165MHz,
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 256 MB
NAND: 256 MiB
*** Warning - bad CRC or NAND, using default environment
In: serial
Out: serial
Err: serial
I2C read: I/O error
Unrecognized expansion board: 0
Beagle xM Rev A
Die ID #505a0000061000
uboot bug?
Here's an angstrom boot log for comparison (note the date / version info on uboot)
U-Boot 2010.03-dirty (Aug 20 2010 - 20:50:46)
OMAP3630/3730-GP ES1.0, CPU-OPP2, L3-165MHz,
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MB
NAND: 256 MiB
*** Warning - bad CRC or NAND, using default environment
In: serial
Out: serial
Err: serial
Probing for expansion boards, if none are connected you'll see a harmless I2C error.
No EEPROM on expansion board 000156166b0a014 00c
Beagle xM Rev A
Die ID #52a40000061000
Hit any key to stop autoboot: 0
mmc1 is available
The user button is currently PRESSED.
reading user.scr
755 bytes read
Running bootscript from mmc ...
## Executing script at 80200000
mmc1 is available
reading ramdisk.gz
19960110 bytes read
reading uImage
3190568 bytes read 2.6.32/ beagleboard
Booting from ramdisk ...
## Booting kernel from Legacy Image at 80200000 ...
Image Name: Angstrom/
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3190504 Bytes = 3 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux.. ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ....... ... done, booting the kernel. ip-10-204- 115-71) (gcc version 4.3.3 (GCC) ) #3 PREEMPT Wed Aug 18 15:53:03 UTC 2010 ttyS2,115200n8 mem=80M@0x80000000 mem=384M@0x88000000 mpurate=1000 buddy=none camera=lbcm3m1 vram=16M omapfb. vram=0: 8M,1:4M, 2:4M omapfb. mode=dvi: 1024x768MR- 16@60 omapdss. def_disp= dvi root=/dev/ram0 rw ramdisk_size=131072 initrd= 0x88000000, 128M rootfstype=ext2
[ 0.000000] Linux version 2.6.32 (ubuntu@
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3630/DM3730 ES1.0 (l2cache iva sgx neon isp 192mhz_clk )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x100000
[ 0.000000] Reserving 16777216 bytes SDRAM for VRAM
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 117760
[ 0.000000] Kernel command line: console=tty0 console=
[ 0.000000] Beagle expansionboard: none
[ 0.000000] Beagle cameraboard: lbcm3m1
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 80MB 384MB = 464MB total
[ 0.000000] Memory: 316288KB available (5880K code, 671K data, 204K init, 0K highmem)