From: Wolfgang Denk Date: Tue, 14 Oct 2008 10:50:52 +0200 Subject: [U-Boot] [PATCH 0/4] Convert MPC85xx platforms to a single linker script In-Reply-To: References: <20081013233646.5C1F881C99C8@gemini.denx.de> Message-ID: <20081014085052.602C881C99CC@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 Trent Piepho, In message you wrote: > > > U-Boot should *never* assume static flash bank sizes. The whole > > design is based on the idea to automatically determine the actual > > size of flash and RAM that is fit on a specific board, and to > > auto-adjust for this. > > The bank size here is only used for linking u-boot. The actual u-boot code is > no different that it is now. How is this expected to work if the flash bank size used to link the u-boot image is different from the real flash bank size present on the board? > In order to boot on mpc85xx, the u-boot image must be linked to locate the > boot page as the last page in the flash bank. There is no way to do this at > run time, it's the boot page. All existing 85xx platforms hard code the > location of the boot page in the u-boot image one way or another. I'm just > changing the linker script to do it in a way where the same script will work > on all 85xx boards. But in the patch you submit you hard-wire certain flash bank sizes into the linker scriopts, don't you? 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 I wish I had a bronze torc for every user who didn't read the manual. - Terry Pratchett, _The Light Fantastic_