Howto known uncompressed length when uncompress_fd_to_buf
Sascha Hauer
s.hauer at pengutronix.de
Tue Dec 4 18:13:40 EST 2012
On Tue, Dec 04, 2012 at 04:09:32PM +0800, 张忠山 wrote:
> > Why don't you uncompress to a regular file (i.e. /tmp/foo) rather than
> > to the device file?
> >
> My fireware will be a huge file: about 12M bytes. I don't known How much
> a regular file's size.
barebox will handle these file sizes just fine given that your malloc
area size is configured big enough. The only thing that could happen is
that the performance of the memory allocator will decrease with that
many allocations. You can work around this by increasing CHUNK_SIZE in
fs/ramfs.c.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list