From: Wolfgang Denk Date: Tue, 26 Oct 2010 11:40:54 +0200 Subject: [U-Boot] ALERT! >90% of all board configurations BROKEN In-Reply-To: <4CC6909F.4060503@emk-elektronik.de> References: <20101025200019.B5BBC152451@gemini.denx.de> <4CC5E865.70003@emk-elektronik.de> <20101025220712.35FCC135C64@gemini.denx.de> <4CC61C96.9010806@emk-elektronik.de> <4CC675C0.8030203@free.fr> <4CC6909F.4060503@emk-elektronik.de> Message-ID: <20101026094054.41CD4152451@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Reinhard Meyer, In message <4CC6909F.4060503@emk-elektronik.de> you wrote: > Dear Albert ARIBAUD, > > >> That is #ifdef-ed away in case of ARM-relocation. Perhaps we should remove > >> all code that pertains to "WITHOUT_RELOC"... Would make the rest of the code > >> less obscure... > > > >> I changed my board.config like this: > >> ... > >> /*#define CONFIG_SYS_GBL_DATA_SIZE 128*/ /* 128 bytes for initial data */ > >> ... > >> #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x1000 /*- CONFIG_SYS_GBL_DATA_SIZE*/) > > I must confess I copied that #define from other boards without much reasoning about it:) I just mentioned it in another mail: there is lots of confusion in this area, and little common code. I will try to remove all of this. All we need is the address and size of the initial RAM area; all the rest can (now) be automatically calculated. Patches are in the works. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Emotions are alien to me. I'm a scientist. -- Spock, "This Side of Paradise", stardate 3417.3