[U-Boot] [PATCH 1/2 v2] cramfs: make cramfs usable on non NOR flash

Wolfgang Denk wd at denx.de
Wed Jan 27 20:28:31 CET 2010


Dear Heiko Schocher,

In message <4B5FEB9E.3040908 at 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.


More information about the U-Boot mailing list