gunzip api
I have to uncompress a gzipped application inside
uboot.
But i do not understand the gunzip api:
gunzip ((void *)ntohl(hdr->ih_load), unc_len,
(uchar *)data,
(int *)&len)
In partcular i would like to know:
1. How to get a pointer to uncompressed image after calling gunzip.
2. How to get the size of umcompressed image.
Regards,
Jhavk
__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.yahoo.com
Quoted 4 lines · In message <[email protected]> you wrote:
I have to uncompress a gzipped application inside
uboot.But i do not understand the gunzip api:
Don't reinvent the wheel. Don't even write new code. Use existing commands.
Mostly: RTFM.
Especially: http://www.denx.de/twiki/bin/view/DULG/HowCanILoadAndUncompressACompressedImage
Best regards,
Wolfgang Denk
Signature · 5 lines
See us @ Embedded/Electronica Munich, Nov 09 - 12, Hall A.6 Booth 513 Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de On the subject of C program indentation: "In My Egotistical Opinion, most people's C programs should be indented six feet downward and covered with dirt." - Blair P. Houghton