public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] SDRAM
Date: Sat, 06 Jun 2015 07:36:03 +0900	[thread overview]
Message-ID: <55722453.3010007@suse.de> (raw)
In-Reply-To: <OF206C0BB2.AEA8211E-ON85257E53.00510251-85257E53.005167B5@LocalDomain>

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)

  reply	other threads:[~2015-06-05 22:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-28 14:49 [U-Boot] SDRAM Naitik Amin
2015-06-05 22:36 ` Andreas Färber [this message]
2015-06-23  3:51   ` Naitik Amin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55722453.3010007@suse.de \
    --to=afaerber@suse.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox