All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Problem generating rootfs for ci20 defconfig
@ 2020-01-20 14:19 Paulo Matos
  2020-01-20 14:33 ` Carlos Santos
  0 siblings, 1 reply; 7+ messages in thread
From: Paulo Matos @ 2020-01-20 14:19 UTC (permalink / raw)
  To: buildroot

While trying to generate an image using the ci20_defconfig (on
git 84d471a0b1) with a few
extra libraries added I am getting the following error:

>>>   Executing post-image script support/scripts/genimage.sh
INFO: cmd: "mkdir -p "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"" (stderr):
INFO: cmd: "rm -rf "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"/*" (stderr):
INFO: cmd: "mkdir -p "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"" (stderr):
INFO: cmd: "cp -a "/tmp/tmp.ymKkcnSKic" "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root"" (stderr):
INFO: cmd: "find '/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root' -depth -type d -printf '%P\0' | xargs -0 -I {} touch -r '/tmp/tmp.ymKkcnSKic/{}' '/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root/{}'" (stderr):
ERROR: hdimage(sdcard.img): part rootfs size (62914560) too small for rootfs.ext4 (134217728)
make[1]: *** [Makefile:808: target-post-image] Error 1

Does anybody understand what this part rootfs size refers to? The
rootfs.ext4 size if the 128M I set as BR2_TARGET_ROOTFS_EXT2_SIZE but
unsure what the other number is, or what it means.

Kind regards,

Paulo Matos

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

* [Buildroot] Problem generating rootfs for ci20 defconfig
  2020-01-20 14:19 [Buildroot] Problem generating rootfs for ci20 defconfig Paulo Matos
@ 2020-01-20 14:33 ` Carlos Santos
  2020-01-20 14:45   ` Paulo Matos
  0 siblings, 1 reply; 7+ messages in thread
From: Carlos Santos @ 2020-01-20 14:33 UTC (permalink / raw)
  To: buildroot

On Mon, Jan 20, 2020 at 11:20 AM Paulo Matos <pmatos@igalia.com> wrote:
>
> While trying to generate an image using the ci20_defconfig (on
> git 84d471a0b1) with a few
> extra libraries added I am getting the following error:
>
> >>>   Executing post-image script support/scripts/genimage.sh
> INFO: cmd: "mkdir -p "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"" (stderr):
> INFO: cmd: "rm -rf "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"/*" (stderr):
> INFO: cmd: "mkdir -p "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"" (stderr):
> INFO: cmd: "cp -a "/tmp/tmp.ymKkcnSKic" "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root"" (stderr):
> INFO: cmd: "find '/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root' -depth -type d -printf '%P\0' | xargs -0 -I {} touch -r '/tmp/tmp.ymKkcnSKic/{}' '/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root/{}'" (stderr):
> ERROR: hdimage(sdcard.img): part rootfs size (62914560) too small for rootfs.ext4 (134217728)
> make[1]: *** [Makefile:808: target-post-image] Error 1
>
> Does anybody understand what this part rootfs size refers to? The
> rootfs.ext4 size if the 128M I set as BR2_TARGET_ROOTFS_EXT2_SIZE but
> unsure what the other number is, or what it means.
>
> Kind regards,
>
> Paulo Matos
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

It comes from "size = 60M" in board/ci20/genimage.cfg.

-- 
Carlos Santos <unixmania@gmail.com>

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

* [Buildroot] Problem generating rootfs for ci20 defconfig
  2020-01-20 14:33 ` Carlos Santos
@ 2020-01-20 14:45   ` Paulo Matos
  2020-01-20 16:41     ` Carlos Santos
  0 siblings, 1 reply; 7+ messages in thread
From: Paulo Matos @ 2020-01-20 14:45 UTC (permalink / raw)
  To: buildroot


Carlos Santos writes:

> On Mon, Jan 20, 2020 at 11:20 AM Paulo Matos <pmatos@igalia.com> wrote:
>>
>> While trying to generate an image using the ci20_defconfig (on
>> git 84d471a0b1) with a few
>> extra libraries added I am getting the following error:
>>
>> >>>   Executing post-image script support/scripts/genimage.sh
>> INFO: cmd: "mkdir -p "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"" (stderr):
>> INFO: cmd: "rm -rf "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"/*" (stderr):
>> INFO: cmd: "mkdir -p "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"" (stderr):
>> INFO: cmd: "cp -a "/tmp/tmp.ymKkcnSKic" "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root"" (stderr):
>> INFO: cmd: "find '/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root' -depth -type d -printf '%P\0' | xargs -0 -I {} touch -r '/tmp/tmp.ymKkcnSKic/{}' '/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root/{}'" (stderr):
>> ERROR: hdimage(sdcard.img): part rootfs size (62914560) too small for rootfs.ext4 (134217728)
>> make[1]: *** [Makefile:808: target-post-image] Error 1
>>
>> Does anybody understand what this part rootfs size refers to? The
>> rootfs.ext4 size if the 128M I set as BR2_TARGET_ROOTFS_EXT2_SIZE but
>> unsure what the other number is, or what it means.
>>
>
> It comes from "size = 60M" in board/ci20/genimage.cfg.

Thanks!

Working now.

--
Paulo Matos

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

* [Buildroot] Problem generating rootfs for ci20 defconfig
  2020-01-20 14:45   ` Paulo Matos
@ 2020-01-20 16:41     ` Carlos Santos
  2020-01-20 21:09       ` Arnout Vandecappelle
  2020-01-21 21:04       ` Peter Korsgaard
  0 siblings, 2 replies; 7+ messages in thread
From: Carlos Santos @ 2020-01-20 16:41 UTC (permalink / raw)
  To: buildroot

On Mon, Jan 20, 2020 at 11:46 AM Paulo Matos <pmatos@igalia.com> wrote:
>
>
> Carlos Santos writes:
>
> > On Mon, Jan 20, 2020 at 11:20 AM Paulo Matos <pmatos@igalia.com> wrote:
> >>
> >> While trying to generate an image using the ci20_defconfig (on
> >> git 84d471a0b1) with a few
> >> extra libraries added I am getting the following error:
> >>
> >> >>>   Executing post-image script support/scripts/genimage.sh
> >> INFO: cmd: "mkdir -p "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"" (stderr):
> >> INFO: cmd: "rm -rf "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"/*" (stderr):
> >> INFO: cmd: "mkdir -p "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"" (stderr):
> >> INFO: cmd: "cp -a "/tmp/tmp.ymKkcnSKic" "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root"" (stderr):
> >> INFO: cmd: "find '/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root' -depth -type d -printf '%P\0' | xargs -0 -I {} touch -r '/tmp/tmp.ymKkcnSKic/{}' '/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root/{}'" (stderr):
> >> ERROR: hdimage(sdcard.img): part rootfs size (62914560) too small for rootfs.ext4 (134217728)
> >> make[1]: *** [Makefile:808: target-post-image] Error 1
> >>
> >> Does anybody understand what this part rootfs size refers to? The
> >> rootfs.ext4 size if the 128M I set as BR2_TARGET_ROOTFS_EXT2_SIZE but
> >> unsure what the other number is, or what it means.
> >>
> >
> > It comes from "size = 60M" in board/ci20/genimage.cfg.
>
> Thanks!
>
> Working now.
>
> --
> Paulo Matos

Perhaps we should drop the size parameter for rootts in
board/*/genimage.cfg and let genimage always use the size of the
filesystem image.

Thomas, Yann, Arnout, what do you think?

-- 
Carlos Santos <unixmania@gmail.com>

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

* [Buildroot] Problem generating rootfs for ci20 defconfig
  2020-01-20 16:41     ` Carlos Santos
@ 2020-01-20 21:09       ` Arnout Vandecappelle
  2020-01-21 21:01         ` Peter Korsgaard
  2020-01-21 21:04       ` Peter Korsgaard
  1 sibling, 1 reply; 7+ messages in thread
From: Arnout Vandecappelle @ 2020-01-20 21:09 UTC (permalink / raw)
  To: buildroot



On 20/01/2020 17:41, Carlos Santos wrote:
> On Mon, Jan 20, 2020 at 11:46 AM Paulo Matos <pmatos@igalia.com> wrote:
>>
>>
>> Carlos Santos writes:
>>
>>> On Mon, Jan 20, 2020 at 11:20 AM Paulo Matos <pmatos@igalia.com> wrote:
>>>>
>>>> While trying to generate an image using the ci20_defconfig (on
>>>> git 84d471a0b1) with a few
>>>> extra libraries added I am getting the following error:
>>>>
>>>>>>>   Executing post-image script support/scripts/genimage.sh
>>>> INFO: cmd: "mkdir -p "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"" (stderr):
>>>> INFO: cmd: "rm -rf "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"/*" (stderr):
>>>> INFO: cmd: "mkdir -p "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp"" (stderr):
>>>> INFO: cmd: "cp -a "/tmp/tmp.ymKkcnSKic" "/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root"" (stderr):
>>>> INFO: cmd: "find '/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root' -depth -type d -printf '%P\0' | xargs -0 -I {} touch -r '/tmp/tmp.ymKkcnSKic/{}' '/home/pmatos/roots/br-root.jsc32-mips/build/genimage.tmp/root/{}'" (stderr):
>>>> ERROR: hdimage(sdcard.img): part rootfs size (62914560) too small for rootfs.ext4 (134217728)
>>>> make[1]: *** [Makefile:808: target-post-image] Error 1
>>>>
>>>> Does anybody understand what this part rootfs size refers to? The
>>>> rootfs.ext4 size if the 128M I set as BR2_TARGET_ROOTFS_EXT2_SIZE but
>>>> unsure what the other number is, or what it means.
>>>>
>>>
>>> It comes from "size = 60M" in board/ci20/genimage.cfg.
>>
>> Thanks!
>>
>> Working now.
>>
>> --
>> Paulo Matos
> 
> Perhaps we should drop the size parameter for rootts in
> board/*/genimage.cfg and let genimage always use the size of the
> filesystem image.

 That's the case for most genimage.cfg files anyway. I think the few which do
have a specified size are just historical accident.

 Regards,
 Arnout

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

* [Buildroot] Problem generating rootfs for ci20 defconfig
  2020-01-20 21:09       ` Arnout Vandecappelle
@ 2020-01-21 21:01         ` Peter Korsgaard
  0 siblings, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2020-01-21 21:01 UTC (permalink / raw)
  To: buildroot

>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:

 >> Perhaps we should drop the size parameter for rootts in
 >> board/*/genimage.cfg and let genimage always use the size of the
 >> filesystem image.

 >  That's the case for most genimage.cfg files anyway. I think the few which do
 > have a specified size are just historical accident.

Indeed. For the use case of wanting extra space to add more files are
runtime to a writable file system, it makes more sense to set
BR2_TARGET_ROOTFS_EXT2_SIZE (or similar) to something like 512MB rather
than hardcoding the rootfs partition size to 512MB.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] Problem generating rootfs for ci20 defconfig
  2020-01-20 16:41     ` Carlos Santos
  2020-01-20 21:09       ` Arnout Vandecappelle
@ 2020-01-21 21:04       ` Peter Korsgaard
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2020-01-21 21:04 UTC (permalink / raw)
  To: buildroot

>>>>> "Carlos" == Carlos Santos <unixmania@gmail.com> writes:

Hi,

 > Perhaps we should drop the size parameter for rootts in
 > board/*/genimage.cfg and let genimage always use the size of the
 > filesystem image.

I was thinking the same. I sent a patch for ci20, but it indeed probably
makes sense to do it for all defconfigs.

https://patchwork.ozlabs.org/patch/1226767/

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2020-01-21 21:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-20 14:19 [Buildroot] Problem generating rootfs for ci20 defconfig Paulo Matos
2020-01-20 14:33 ` Carlos Santos
2020-01-20 14:45   ` Paulo Matos
2020-01-20 16:41     ` Carlos Santos
2020-01-20 21:09       ` Arnout Vandecappelle
2020-01-21 21:01         ` Peter Korsgaard
2020-01-21 21:04       ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.