Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Genimage last partition size issue
@ 2016-05-24 15:26 Matthew Weber
  2016-05-24 15:56 ` Peter Korsgaard
  0 siblings, 1 reply; 15+ messages in thread
From: Matthew Weber @ 2016-05-24 15:26 UTC (permalink / raw)
  To: buildroot

As noted in the partition options, size = 0 should cause the last
partition to take the rest of the space on the device.  However, when
I set size = 0 and then write the image to a SD card using "sudo dd
if=foo.img of=/dev/sdb", the rootfs partition only has 190M (the same
amount as when I don't use the size argument) when there is almost 4G
worth of space available.  I know the size argument works in general
as if I set the size to 3000M, the rootfs partition is 3000M after
writing it to the SD card.


Below is the config file for genimage that I am using.

> image boot.vfat {
>   vfat {
>     files = {
>       "MLO",
>       "u-boot.img"
>     }
>   }
>   size = 32M
> }
> image foo.img {
>   hdimage {
>   }
>   partition boot {
>     partition-type = 0xC
>     bootable = "true"
>     image = "boot.vfat"
>   }
>   partition rootfs {
>     partition-type = 0x83
>     image = "rootfs.ext4"
>     size = 0
>   }
> }




-- 
Matthew L Weber / Pr Software Engineer
Airborne Information Systems / Security Systems and Software / Secure Platforms
MS 131-100, C Ave NE, Cedar Rapids, IA, 52498, USA
www.rockwellcollins.com

Note: Any Export License Required Information and License Restricted
Third Party Intellectual Property (TPIP) content must be encrypted and
sent to matthew.weber at corp.rockwellcollins.com.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2016-05-26 21:08 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-24 15:26 [Buildroot] Genimage last partition size issue Matthew Weber
2016-05-24 15:56 ` Peter Korsgaard
2016-05-26 17:42   ` Matthew Weber
2016-05-26 17:49     ` Gustavo Zacarias
2016-05-26 18:35   ` Thomas Petazzoni
2016-05-26 18:37     ` Gustavo Zacarias
2016-05-26 18:41       ` Thomas Petazzoni
2016-05-26 18:45         ` Gustavo Zacarias
2016-05-26 19:18           ` Thomas Petazzoni
2016-05-26 19:19             ` Gustavo Zacarias
2016-05-26 19:55           ` Peter Korsgaard
2016-05-26 19:54     ` Peter Korsgaard
2016-05-26 19:59       ` Thomas Petazzoni
2016-05-26 20:05         ` Peter Korsgaard
2016-05-26 21:08           ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox