From mboxrd@z Thu Jan 1 00:00:00 1970 From: wd@denx.de (Wolfgang Denk) Date: Fri, 03 Jun 2011 14:17:02 +0200 Subject: i.MX consolidation patches In-Reply-To: <20110603120258.GR23771@pengutronix.de> References: <1305823648-2428-1-git-send-email-s.hauer@pengutronix.de> <20110530075745.GA31492@S2100-06.ap.freescale.net> <20110601123522.GE23771@pengutronix.de> <20110601134749.GI3660@n2100.arm.linux.org.uk> <20110601141847.GG23771@pengutronix.de> <20110601210855.663A3CEFB4E@gemini.denx.de> <20110602154659.697EFD09481@gemini.denx.de> <20110603120258.GR23771@pengutronix.de> Message-ID: <20110603121702.DB9E82FA@gemini.denx.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Dear Sascha Hauer, In message <20110603120258.GR23771@pengutronix.de> you wrote: > > > I'm not a friend of using magic values that are "totally-impossible". > > This is confusing, and here it is not needed. > > I find using a field labelled 'entry point' and 'load address' as > absolute addresses or offsets into sdram depending on some flag > also quite confusing. btw how do you want to decide whether the > fields are offsets or absolute addresses? I see no flags field in > the uImage format. I would define a new image type. Instead of "-T kernel" we could for example use a new type "-T relkernel" to indicate that addresses are relative to start of system RAM. > > If we could agree to interpret load address and entry point as > > offsets, the only remaining problem is to find out if we can use a > > common offset. > > The zImages encapsulated in uImages are relocatable. So pick any offset > between 32k and 128MB into sdram like Russell explained. Higher values > are not desirable as this would break boards with less sdram. What about the images without the preloader? You know that U-Boot already provides all the needed code to perform the uncompressing, so it would be nice if we could avoid to include this into each and every image. Is the raw kernel image, without the preloader, also relocatable and can be started at any address (keeping above restrictions in mind, of course)? 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 Brain off-line, please wait.