From: Wolfgang Denk Date: Wed, 27 Jan 2010 20:28:31 +0100 Subject: [U-Boot] [PATCH 1/2 v2] cramfs: make cramfs usable on non NOR flash In-Reply-To: <4B5FEB9E.3040908@denx.de> References: <4B459395.2050301@denx.de> <20100117235121.5E479C88AE@gemini.denx.de> <4B5FE9EC.6090909@denx.de> <4B5FEB9E.3040908@denx.de> Message-ID: <20100127192831.32327D334C9@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 Heiko Schocher, In message <4B5FEB9E.3040908@denx.de> you wrote: > [PATCH 1/2] cramfs: make cramfs usable without a NOR flash I'm afraid I still don't understand how this is supposed to work. Where would you store the cramfs on a system "without a NOR flash"? Are we talking about - say - a NAND storage device then? > @@ -119,7 +121,11 @@ int do_cramfs_load(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) > dev.id = &id; > part.dev = &dev; > /* fake the address offset */ > +#if !defined(CONFIG_SYS_NO_FLASH) > part.offset = addr - flash_info[id.num].start[0]; > +#else > + part.offset = addr; > +#endif I understand that we now can have the cramfs image either in NOR flash _or_ in NAND. What about systems that have both NOR _and_ NAND? 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 The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time.