From: Wolfgang Denk Date: Thu, 07 Jan 2016 20:30:53 +0100 Subject: [U-Boot] [PATCH] powerpc, mpc5xxx: fix missing bootflag init In-Reply-To: References: <1448441179-6214-1-git-send-email-hs@denx.de> Message-ID: <20160107193053.88101380311@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 York, In message you wrote: > > > So board_init_f gets a undefined bootflag, > > currently the gd pointer address. Unfortunately > > this address sets the GD_FLG_SKIP_RELOC bit, > > so u-boot code gets not relocated and u-boot > > does not boot ... > > > > Init bootflag with 0, and tqm5200 boots fine again. ... > Applied to u-boot-mpc85x. Merged upstream. Thanmks - but I think this needs a follow-up patch - Heiko is already looking into that. On closer inspection it appears as if the whole passing around of "bootflag" variables is just dead code - there is no place anywhere in U-Boot that makes real use of this data. We should remove all of the related code, which will make the code cleaner and smaller - which might be especially welcome in a number of SPL configurations. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk 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 Quotation, n. The act of repeating erroneously the words of another. The words erroneously repeated. - Ambrose Bierce _The Devil's Dictionary_