From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?windows-1252?Q?Andreas_F=E4rber?= Date: Sat, 06 Jun 2015 07:36:03 +0900 Subject: [U-Boot] SDRAM In-Reply-To: References: Message-ID: <55722453.3010007@suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, Am 28.05.2015 um 23:49 schrieb Naitik Amin: > I am using Altera SOC, under my includes, I have a file called > /include/configs/socfpga_common.h > > In this file, I have #define as below. > #define PHYS_SDRAM_1_SIZE 0x20000000 > > If this #define is set to 0x20000000, and uboot is compiled and loaded, > the system when boots up into Linux, issuing free command under linux > shows 512 MB. Which is *correct*. If I change that #define to 0x40000000, > upon executing free command, linux shows 1G. > > My questions, is how does this info from uboot reach kernel ? That will depend on your boot environment. :) The new mechanism would be the Device Tree node /memory, if you are passing a .dtb file to bootm/bootz. The legacy mechanism is so-called atags. HTH, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Dilip Upmanyu, Graham Norton; HRB 21284 (AG N?rnberg)