From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Antonio Garcia Redondo Date: Fri, 25 Feb 2005 11:44:53 +0100 Subject: [U-Boot-Users] reading ethaddr from env In-Reply-To: <20050224224955.25547C1430@atlas.denx.de> References: <20050223100142.GA3003@nabla101> <20050224224955.25547C1430@atlas.denx.de> Message-ID: <20050225104453.GA4536@nabla101> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 24/02/05 23:49, Wolfgang Denk wrote: > In message <20050223100142.GA3003@nabla101> you wrote: > I cannot reproduce this problem here. WHat do you get when you use > printf() to display the addresses _before_ calling getenv_r()? > I've found the problem. I'd forgotten to assign the CFG_GBL_DATA_SIZE constant, so sp was pointing to a wrong place. Thanks for your answer. Regards, Juan Antonio