I am looking for clarification of the kernel's means of determining the DRAM size. For background, our board is closely derived from the AM3517evm, and has 512MB DRAM.
We define our DRAM size as 512MB in our u-boot config header file in a symbol called CONFIG_SYS_CS0_SIZE. Until recently, we were passing the DRAM size to the kernel via bootargs with 'mem=512M'.
But, we observed that even without the bootargs/mem arg, the kernel correctly figures out the DRAM size. It appears that the kernel must read the DRAM configuration register written by u-boot, to figure out DRAM size on its own.
That suggests the only point of the bootargs/mem arg is if one wants the kernel to override that u-boot DRAM setup for some reason. If one is content with the u-boot setup, then the bootargs/mem arg may be safely omitted.
Is that correct?
Thanks,
Ron