
10 Dec
2008
10 Dec
'08
9:25 a.m.
Dear Mike Frysinger,
In message 1228882838-14437-1-git-send-email-vapier@gentoo.org 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: wd@denx.de
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