[yocto] [meta-raspberrypi] du giving non-integer result?
Jonathan Liu
net147 at gmail.com
Wed Sep 16 21:14:21 PDT 2015
On 11 September 2015 at 11:37, Trevor Woerner <twoerner at gmail.com> wrote:
> From the feedback, it looks like I'm the only one seeing this issue.
> That's okay, but I'll update this issue with new information in case
> it's useful to others. Today I also had some other strangeness with the
> "make sd card image" portion of a build, this time for cubietruck
> (meta-sunxi):
>
>
> ERROR: Error: The image creation script
> '/z/tmp/build/tmp/work/cubietruck-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/create_image.sunxi-sdimg'
> returned 1:
> 0+0 records in
> 0+0 records out
> 0 bytes (0 B) copied, 3.0606e-05 s, 0.0 kB/s
> expr: non-integer argument
> WARNING:
> /z/tmp/build/tmp/work/cubietruck-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/create_image.sunxi-sdimg:1
> exit 1 from
> parted -s
> /z/tmp/build/tmp/deploy/images/cubietruck/core-image-minimal-cubietruck-20150910182624.rootfs.sunxi-sdimg
> unit KiB mkpart primary ext2 $(expr ${BOOT_SPACE_ALIGNED} \+ 2048)
> $(expr ${BOOT_SPACE_ALIGNED} \+ 2048 \+ 10240.0)
>
>
>
> Not only am I getting the floating point again, but it looks like
> "BOOT_SPACE_ALIGNED" isn't getting expanded!
>
> The frustrating part is that simply rerunning "bitbake
> core-image-minimal" fixes the problem. The second time it completes
> without error.
> --
I sent a patch to openembedded-core mailing list for ROOTFS_SIZE not
being an integer.
It seems http://git.openembedded.org/openembedded-core/commit/?id=af37bb8ae71c4f932e2126bb620b3fb2b11cc466
results in ROOTFS_SIZE now being set as a bitbake variable.
meta-raspberrypi will need to be updated to not have a conflicting
ROOTFS_SIZE variable as ${ROOTFS_SIZE} is being substituted by bitbake
instead of the shell there.
Regards,
Jonathan
More information about the yocto
mailing list