Hi all,
I would like a clarification on how to recognize the system right size of ram in Kernel Space.
I have a DM3730 and it's equipped with 256Mb of Low Power DDR (MICRON MT46H64M32). I'm using Kernel version 2.6.32, DVSDK ti-dvsdk_dm3730-evm_4_02_00_06, configured for omap3 Evm board.
I was initially able to access only 128 Mb of RAM.
In the x-loader and in the U-boot I found where to make changes in the source code, and now I can read and write all 256Mbytes (using "md" and "mw" in U-boot for example).
In the u-boot source I changed sdrc.c (row 110) changing RAMSIZE_128 with RAMSIZE_256; and the value of the sdrc controller register is set to 0x02588099.
See the u-boot screenshot:
-----------------------------------------------------------------------------------------------------------
U-Boot 2009.11 (Apr 22 2013 - 17:47:03)
AM37x/DM37x-GP ES2.1, CPU-OPP2 L3-165MHz
OMAP3 EVM board + LPDDR/NAND
I2C: ready
DRAM: 256 MB
--------------------------------------------------------------------------------------------------------------
But when Kernel starts I can access only first 128Mb of RAM.
In particular: i turned off: cmem, dsplink, sdma, ecc... disabling them in loadmodule-rc.
If I use bootargs:
setenv bootargs 'console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 ip=off mem=128M@0x80000000 omapfb.vram=0:4M rootwait'
fatload mmc 0 82000000 uImage
bootm 82000000
kernel starts correctly but, obiovsly, i can see only 128Mb of RAM.
If I use, for example, bootargs:
setenv bootargs 'console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 ip=off mem=100M@0x80000000 omapfb.vram=0:4M mem=100M@0x88000000 rootwait'
fatload mmc 0 82000000 uImage
bootm 82000000
kernel hangs before login prompt. And this happens with any size of mapped memory from 0x88000000 or setting more than 128Mb from 0x80000000.
Thanks in advance for any suggestion,
Lorenzo