[Buildroot] Genimage last partition size issue

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu May 26 18:35:17 UTC 2016


Hello,

On Tue, 24 May 2016 17:56:50 +0200, Peter Korsgaard wrote:

> How should genimage know what the size is of your SD card when you
> generate the foo.img image? I guess you would need to add size = 4G
> inside image foo.img { }, but notice that this is isn't very efficient
> as you will be writing lots of zeros to the sd card.

Isn't it possible to generate a sparse file, and then use the sparse
capability of dd to avoid writing those lots of zeros?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list