Rev A2 Beagle XM showing only 256Meg

Bug #630283 reported by Tom Gall
12
This bug affects 2 people
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-1004-linaro-omap (buildd@gourd) (gcc version 4.4.5 20100824 (prerelease) (Ubuntu/Linaro 4.4.4-9ubuntu2) ) #9-Ubuntu Mon Aug 30 22:03:51 UTC 2010 (Ubuntu 2.6.35-1004.9-linaro-omap 2.6.35.3)
[ 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_init_node: node 0, pgdat c0764a70, node_mem_map c0820000
[ 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=ttyS2,115200n8 earlyprintk fixrtc nocompcache root=UUID=386d562e-f8a6-48a1-b7d1-57824adbf77f rootwait ro vram=12M omapfb.debug=y omapfb.mode=dvi:1280x720MR-16@60
[ 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_disable=memory' option if you don't want memory cgroups
[ 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 #505a0000061000000156166b0a026014

uboot bug?

Revision history for this message
Tom Gall (tom-gall) wrote :

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
Beagle xM Rev A
Die ID #52a40000061000000156166b0a01400c
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
Booting from ramdisk ...
## Booting kernel from Legacy Image at 80200000 ...
   Image Name: Angstrom/2.6.32/beagleboard
   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.
[ 0.000000] Linux version 2.6.32 (ubuntu@ip-10-204-115-71) (gcc version 4.3.3 (GCC) ) #3 PREEMPT Wed Aug 18 15:53:03 UTC 2010
[ 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=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] 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)

Revision history for this message
Robert Nelson (robertcnelson) wrote :

I'm pretty sure this is the lack of support of "Numonix" memory in Ubuntu's X-load.. Off the top of my head i don't remember which launchpad bug report has it, but your x-load needs this commit:

http://gitorious.org/beagleboard-validation/x-load/commit/ead751e4a361ce19552ac94bbeba232f12849244

Regards,

Revision history for this message
Loïc Minier (lool) wrote :

Tom, would you mind re-testing with x-loader 1.4.4git20100713-1ubuntu1?

x-loader (1.4.4git20100713-1ubuntu1) maverick; urgency=low

  * adding support_micron_and_numonyx_memory.patch to make x-loader
   work with Micron and Numonyx based Beagle xMs (LP: #628243)

 -- Ricardo Salveti de Araujo <email address hidden> Wed, 01 Sep 2010 14:30:46 -0300

Revision history for this message
Loïc Minier (lool) wrote :

Note that this x-loader was prepared on Wed 01 but was actually built 3 days ago.

Revision history for this message
Tom Gall (tom-gall) wrote :

Loïc,

Sure I'll give that a try today.

Thanks!

Revision history for this message
Tom Gall (tom-gall) wrote :

So installing the new version, copied over the new MLO from /usr/lib/x-load-omap to /dev/mmcblk0p1

Note the new file size:

-rwxr-xr-x 1 root root 18360 Aug 31 19:54 MLO
-rwxr-xr-x 1 root root 18360 Aug 31 19:52 MLO.new
-rwxr-xr-x 1 root root 19032 Aug 31 14:25 MLO.old

Here's the output

Texas Instruments X-Loader 1.4.4ss (Sep 6 2010 - 08:19:49)
Beagle xM Rev A
Reading boot sector
Loading u-boot.bin from mmc

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: 512 MB <----- better!
NAND: 256 MiB
*** Warning - bad CRC or NAND, using default environment

In: serial
Out: serial
Err: serial
timed out in wait_for_pin: I2C_STAT=100
I2C read: I/O error
Unrecognized expansion board: 0
Beagle xM Rev A
Die ID #505a0000061000000156166b0a026014
Hit any key to stop autoboot: 0
mmc1 is available
reading boot.scr

407 bytes read
Running bootscript from mmc ...
## Executing script at 82000000
mmc1 is available
reading uImage

3690124 bytes read
reading uInitrd

4786154 bytes read
## Booting kernel from Legacy Image at 80000000 ...
   Image Name: Ubuntu Kernel
   Image Type: ARM Linux Kernel Image (uncompressed)
   Data Size: 3690060 Bytes = 3.5 MB
   Load Address: 80008000
   Entry Point: 80008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 81600000 ...
   Image Name: Ubuntu Initrd
   Image Type: ARM Linux RAMDisk Image (uncompressed)
   Data Size: 4786090 Bytes = 4.6 MB
   Load Address: 00000000
   Entry Point: 00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.35-1004-linaro-omap (buildd@gourd) (gcc version 4.4.5 20100824 (prerelease) (Ubuntu/Li)
[ 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

and that's it for messages out of the kernel....

Boom Crash, Queue stock footage http://www.youtube.com/watch?v=sLCA9OxVA4Q

I wonder about the angstrom kernel command line, here it is again:
[ 0.000000] Kernel command line: console=tty0 console=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

Note those mem= params ... I wonder if we have that.....

Revision history for this message
Robert Nelson (robertcnelson) wrote :

mem= paramters are for TI's closed dsplink...

Otherwise I haven't seen that error on my xM A's yet..

Just for testing, incase it's the kernel and we are missing something else, do these work anybetter.. (they are built from Angstromss git tree)

MLO: http://rcn-ee.net/deb/tools/MLO/MLO-beagleboard-1.44+r15+gitr1c9276af4d6a5b7014a7630a1abeddf3b3177563-r15
UBOOT: http://rcn-ee.net/deb/tools/UBOOT/u-boot-beagleboard-2010.03+r64+gitrca6e1c136ddb720c3bb2cc043b99f7f06bc46c55-r64.bin

Regards,

Revision history for this message
Tom Gall (tom-gall) wrote :

Texas Instruments X-Loader 1.4.4ss (Jul 28 2010 - 12:39:41)
Beagle xM Rev A
Reading boot sector
u-boot.bin not found or blank nand contents - attempting serial boot . . .
## Ready for binary (kermit) download to 0x80008000 at 115200 bps...
60

odd it's not picking it up from the microSD card or picking up the file transfer via minicom anyway... I'll futz with this more first thing in the morning.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

FWIW, this happens to me too. Happy to test anything you like that might fix it, so long as you can explain in words of one syllable how to test it :-)

Revision history for this message
Tom Gall (tom-gall) wrote :

with sakoman's MLO from http://www.sakoman.com/feeds/omap3/glibc/images/beagleboard/201009091145/ this appears to address the issue.

However either make sure to grab u-boot from there as well or get it from http://hudson.dooz.org/job/u-boot-linaro-stable/BOARD=omap3_beagle/

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I think this has been fixed in the dailies for a week or so now, should we close the bug?

Revision history for this message
Jamie Bennett (jamiebennett) wrote :

Fixed in the dailies.

Changed in linux-linaro:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.