[yocto] [poky] ERROR: Function failed: do_rootfs, when using ipk package class

Chris Larson clarson at kergoth.com
Wed Apr 16 09:31:03 PDT 2014


On Wed, Apr 16, 2014 at 9:28 AM, Elvis Dowson <elvis.dowson at gmail.com>wrote:

> I just tries a build with poky master, and meta-xilinx master branch, and
> got the following build error.
>
> For some reason the yocto build process fails is PACKAGE_CLASSES is set to
> package_ipk.
>
> ERROR: Unable to install packages. Command
> '/tool/yocto/build/zc706/tmp/sysroots/x86_64-lux/usr/bin/opkg-cl -f
> /tool/yocto/build/zc706/tmp/work/zc706_zynq7-poky-linux-gnueabi/core-image-minimal/1.0-r0/opkg.conf
> -o
> /tool/yocto/build/zc706/tmp/work/zc706_zynq7-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs
> --force_postinstall --prefer-arch-to-version   install run-postinsts
> packagegroup-core-boot' returned 255:
> Installing run-postinsts (1.0-r9) to root...
> Downloading
> file:/tool/yocto/build/zc706/tmp/deploy/ipk/all/run-postinsts_1.0-r9_all.ipk.
> Installing update-rc.d (0.7-r5) to root...
> Downloading
> file:/tool/yocto/build/zc706/tmp/deploy/ipk/all/update-rc.d_0.7-r5_all.ipk.
> sh: 1: /tmp/opkg-RUBbug/run-postinsts-mxgou5/preinst: Permission denied
>

Sounds like your /tmp is mounted disallowing execution there, and opkg must
assume it's able to execute its scripts there. Either use a different
package manager, fix opkg to change this behavior, or change your /tmp
mount to no longer be noexec.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140416/15c92935/attachment.html>


More information about the yocto mailing list