From: Wolfgang Denk Date: Sat, 05 Nov 2011 22:53:02 +0100 Subject: [U-Boot] [PATCH v2 1/3] image: Make image_get_fdt work like image_get_{ram_disk, kernel} In-Reply-To: References: <1320164902-24190-1-git-send-email-swarren@nvidia.com> <201111051941.38920.marek.vasut@gmail.com> Message-ID: <20111105215302.789531893014@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 Simon Glass, In message you wrote: > > Just a quick Q. What is the ultimate intent here? Should we be aiming > to have U-Boot copy and decompress the data into RAM ready for Linux? Yes. Rigth from the beginning of PPCBoot / U-Boot we designed it that U-Boot would do all needed steps to verify, load and uncompress an image. It make no sense to attach the uncompression and loading code to each and every image, and to download it and store it again and again and again. This works really well for example on Power, only ARM is one of the examples where the PTB never bothered to acquaint themself with ideas that went beyond the capabilities of Blob or similar boot loaders. > In theory this should be slightly faster since U-Boot already has the > data in its cache. I think zImage now supports having an FDT inside > but what is the advantage of zImage over a uImage with compressed > portions? There is none. Also, there is no advantage in attaching the DT blob to the Linux image/. This is only of use to braindead boot loaders. 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 A stone was placed at a ford in a river with the inscription: "When this stone is covered it is dangerous to ford here."