Re: Howto known uncompressed length when uncompress_fd_to_buf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux