From: Wolfgang Denk Date: Sun, 30 Jan 2005 02:22:00 +0100 Subject: [U-Boot-Users] MIPS build environment In-Reply-To: Your message of "Sun, 30 Jan 2005 00:54:53 +0100." <1107042893.5393.19.camel@gamecube.scs.ch> Message-ID: <20050130012205.CDA43C108D@atlas.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 Thomas, in message <1107042893.5393.19.camel@gamecube.scs.ch> you wrote: > > Now I think there's a misunderstanding. There are two parts of u-boot, No, srictly speaking there are not two parts of U-Boot. U-Boot is one part, which runs from two different memory locations: first from ROM, and later from RAM. > namely the part that runs off SDRAM and the part that runs off the ROM. > For both parts the decision whether PIC or fixed address code should be > used is independent. You have to be very careful, as the code from the "ROM part" will call the very same routines as the code from the "RAM part", and everythink is linked into the very same binary image. > You argue for PIC/relocatable code in the main u-boot part that runs off > SDRAM. Rightly so, IMO. The patch I posted applies however to the part > that runs off ROM (FLASH) (SDRAM doesn't even work before the call to > memsetup, because the SDRAM controller and cache aren't setup yet). Now I see. Sorry, I missed that. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de In general, they do what you want, unless you want consistency. - Larry Wall in the perl man page