From: Wolfgang Denk Date: Thu, 13 Oct 2011 21:56:35 +0200 Subject: [U-Boot] [PATCH 1/2] image: Support relative-addresses property in FIT images In-Reply-To: <74CDBE0F657A3D45AFBB94109FB122FF173A2C7619@HQMAIL01.nvidia.com> References: <1317412383-7731-1-git-send-email-swarren@nvidia.com> <74CDBE0F657A3D45AFBB94109FB122FF173A2C7568@HQMAIL01.nvidia.com> <20111006192026.78CF21408751@gemini.denx.de> <74CDBE0F657A3D45AFBB94109FB122FF173A2C75C4@HQMAIL01.nvidia.com> <20111006205132.2EF58140874A@gemini.denx.de> <74CDBE0F657A3D45AFBB94109FB122FF173A2C7619@HQMAIL01.nvidia.com> Message-ID: <20111013195635.8E80014094B4@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 Stephen Warren, In message <74CDBE0F657A3D45AFBB94109FB122FF173A2C7619@HQMAIL01.nvidia.com> you wrote: > > > > OK. Wouldn't we also need e.g. IH_TYPE_STANDALONE_REL, IH_TYPE_RAMDISK_REL > > > and perhaps other too? > > > > I don't think so - either these don't have (and use) load and entry > > point addesses (like in the ramdisk case), or they are not easily > > relocatable in the same way as the Linux kernel. > > Sorry, I don't quite understand then; in both boot_get_ramdisk() and > boot_get_fdt(), I see calls to image_get_load() and fit_image_get_load(). Agreed for FDT images, but you wrote IH_TYPE_STANDALONE_REL - standanole images are something differend, and usually not relocatable. And ramdisks have neither a load address nor an entry point associated with them; no matter where they are located in memory, we just pass their address to the Linux kernel. > I guess in the ramdisk case, this just sets rd_load, which isn't used, > but in the FDT case, it sets load_start, which is used to derive load_end > and fdt_blob. Agreed. But that's not what you wrote above. 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 "There's only one way to have a happy marriage and as soon as I learn what it is I'll get married again." - Clint Eastwood