Dear Mike Frysinger,

In message <[EMAIL PROTECTED]> you wrote:
> Some images can be quite large, so add an option to compress the image data
> with gzip in the U-Boot image.  Then at runtime, the board can decompress it
> with the normal zlib functions.

Good idea.

> +             FILE *gz;
> +
> +             sprintf (str, "%s.gz", filename);

Lenght checking?

> +             sprintf (app, "gzip > %s", str);

Lenght checking?

> +             gz = popen (app, "w");

Erorr checking?

> +             fwrite (image->data, image->size, 1, gz);

Erorr checking?

> +             pclose (gz);

Erorr checking?

And so on...


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: [EMAIL PROTECTED]
There is is no reason for any individual to have a computer in  their
home.      -- Ken Olsen (President of Digital Equipment Corporation),
              Convention of the World Future Society, in Boston, 1977
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to