[oe] packaged staging fails in do_deploy for kernel
Frans Meulenbroeks
fransmeulenbroeks at gmail.com
Sat Jan 23 12:31:03 UTC 2010
I decided to give packaged staging a try.
(more or less) following the instructions on
http://marcin.juszkiewicz.com.pl/2008/07/01/packaged-staging-and-what-it-gives/
distribution angstrom (dev head)
machine: beagleboard.
I set the DEPLOY_DIR_PSTAGE to outside tmp. (packaged-staging is
already inherited by default in Angstrom).
rm tmp; bitbake console-image
great, few hours later everything is rebuild. now the final proof.
mv tmp tmp.bak; bitbake console-image
And lo-and-behold things are fetched from pstage.
Until suddenly after 20 minutes:
NOTE: Running task 2352 of 2433 (ID: 538,
/home/frans/oe/openembedded/recipes/linux/linux-omap_2.6.29.bb,
do_deploy)
ERROR: function do_deploy failed
Bummer.
Log file for deploy has just a single line: install: cannot stat
`arch/arm/boot/uImage': No such file or directory
There is also a log.staging_helper.11952 but that one is empty.
and there is a dir git adjacent to temp in the work dir which is also empty.
The uImage file exists in staging:
staging/beagleboard-angstrom-linux-gnueabi/kernel/arch/arm/boot/uImage
staging/beagleboard-angstrom-linux-gnueabi/kernel/arch/arm/boot/.uImage.cmd
staging/beagleboard-angstrom-linux-gnueabi/kernel/uImage
and do_deploy says:
do_deploy() {
install -d /home/frans/oe/tmp_angstrom/deploy/glibc/images/beagleboard
install -m 0644 arch/arm/boot/uImage
/home/frans/oe/tmp_angstrom/deploy/glibc/images/beagleboard/uImage-2.6.29-r51-beagleboard.bin
package_stagefile_shell
/home/frans/oe/tmp_angstrom/deploy/glibc/images/beagleboard/uImage-2.6.29-r51-beagleboard.bin
if [ -d
"/home/frans/oe/tmp_angstrom/work/beagleboard-angstrom-linux-gnueabi/linux-omap-2.6.29-r51/package/lib"
]; then
fakeroot tar -cvzf
/home/frans/oe/tmp_angstrom/deploy/glibc/images/beagleboard/modules-2.6.29-r51-beagleboard.tgz
-C /home/frans/oe/tmp_angstrom/work/beagleboard-angstrom-linux-gnueabi/linux-omap-2.6.29-r51/package
lib
fi
cd /home/frans/oe/tmp_angstrom/deploy/glibc/images/beagleboard
rm -f uImage-beagleboard.bin
ln -sf uImage-2.6.29-r51-beagleboard.bin uImage-beagleboard.bin
package_stagefile_shell
/home/frans/oe/tmp_angstrom/deploy/glibc/images/beagleboard/uImage-beagleboard.bin
}
which of course fails on the install -m as $arch/arm/boot/uImage does
not exist in work
the code is from kernel.bbclass.
do_deploy() {
install -d ${DEPLOY_DIR_IMAGE}
install -m 0644 ${KERNEL_OUTPUT}
${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin
package_stagefile_shell
${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.bin
if [ -d "${PKGD}/lib" ]; then
fakeroot tar -cvzf
${DEPLOY_DIR_IMAGE}/${MODULES_IMAGE_BASE_NAME}.tgz -C ${PKGD} lib
fi
cd ${DEPLOY_DIR_IMAGE}
rm -f ${KERNEL_IMAGE_SYMLINK_NAME}.bin
ln -sf ${KERNEL_IMAGE_BASE_NAME}.bin ${KERNEL_IMAGE_SYMLINK_NAME}.bin
package_stagefile_shell
${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_SYMLINK_NAME}.bin
}
Not really an idea how to fix this. Any expert with an opinion?
next steps:
after that I did a bitbake -cclean virtual/kernel and got several
messages of the type:
* Package staging-strace-armv7a-angstrom-linux-gnueabi version
4.5.14-r9 has no architecture specified, defaulting to i686-linux.
which also seem odd to me.
after cleaning the kernel I tried to rebuild console-image. The kernel
compiles but the system fails when building the rootfs:
>From work/beagleboard-angstrom-linux-gnueabi/console-image-1.0-r0/temp/log.do_rootfs.28400
* Cannot find package task-base.
* Cannot find package psplash-angstrom.
* Cannot find package psplash-zap.
* Cannot find package task-base-extended.
* Cannot find package initscripts.
* Cannot find package udev.
* Cannot find package sysvinit.
* Cannot find package sysvinit-pidof.
* Cannot find package tinylogin.
* Cannot find package opkg-nogpg-nocurl.
* Cannot find package angstrom-feed-configs.
* Cannot find package opkg-collateral.
task-base did run staging-helper. I did not dig into the others
Did a bitbake -cclean for the packages listed above, but got new failures.
See below.
That is where I gave up. Suggestions are welcome!
Frans
PS: logs are also sent to tinderbox (as eFfeM)
log_check: Using
/home/frans/oe/tmp_angstrom/work/beagleboard-angstrom-linux-gnueabi/console-image-1.0-r0/temp/log.do_rootfs.32140
as logfile
log_check: There were error messages in the logfile
log_check: Matched keyword: [Cannot find package]
* task-boot * libgcc1 (>= 4.3.3) * libc6 (>= 2.9) *
util-linux-ng-mount * util-linux-ng-umount *
angstrom-libc-fixup-hack * dropbear * sysfsutils *
module-init-tools * apm * apmd * alsa-utils-alsactl *
alsa-utils-alsamixer * update-modules * update-modules *
update-modules * update-modules * update-modules * usbutils *
update-modules * portmap * update-modules * update-modules * ppp *
ppp-dialin * update-modules * update-modules * update-modules *
update-modules * update-modules *
* Cannot find package task-base.
* ERROR: Cannot satisfy the following dependencies for psplash-angstrom:
* makedevs * libc6 (>= 2.9) * update-rc.d * libc6 (>= 2.9) *
* Cannot find package psplash-angstrom.
* ERROR: Cannot satisfy the following dependencies for psplash-zap:
* update-rc.d *
* Cannot find package psplash-zap.
* ERROR: Cannot satisfy the following dependencies for task-base-extended:
* wireless-tools * wpa-supplicant * blueprobe * bluez4 *
* Cannot find package task-base-extended.
* ERROR: Cannot satisfy the following dependencies for udev:
* libc6 (>= 2.9) * update-rc.d * libc6 (>= 2.9) * libc6 (>= 2.9) *
* Cannot find package udev.
* ERROR: Cannot satisfy the following dependencies for sysvinit:
* libc6 (>= 2.9) * libc6 (>= 2.9) *
* Cannot find package sysvinit.
* ERROR: Cannot satisfy the following dependencies for tinylogin:
* libc6 (>= 2.9) *
* Cannot find package tinylogin.
+ export D=/home/frans/oe/tmp_angstrom/rootfs/console-image
log_check: There were error messages in the logfile
log_check: Matched keyword: [Cannot satisfy the following dependencies]
Collected errors:
* ERROR: Cannot satisfy the following dependencies for task-base:
* task-boot * libgcc1 (>= 4.3.3) * libc6 (>= 2.9) *
util-linux-ng-mount * util-linux-ng-umount *
angstrom-libc-fixup-hack * dropbear * sysfsutils *
module-init-tools * apm * apmd * alsa-utils-alsactl *
alsa-utils-alsamixer * update-modules * update-modules *
update-modules * update-modules * update-modules * usbutils *
update-modules * portmap * update-modules * update-modules * ppp *
ppp-dialin * update-modules * update-modules * update-modules *
update-modules * update-modules *
* Cannot find package task-base.
* ERROR: Cannot satisfy the following dependencies for psplash-angstrom:
* makedevs * libc6 (>= 2.9) * update-rc.d * libc6 (>= 2.9) *
* Cannot find package psplash-angstrom.
* ERROR: Cannot satisfy the following dependencies for psplash-zap:
* update-rc.d *
* Cannot find package psplash-zap.
* ERROR: Cannot satisfy the following dependencies for task-base-extended:
* wireless-tools * wpa-supplicant * blueprobe * bluez4 *
* Cannot find package task-base-extended.
* ERROR: Cannot satisfy the following dependencies for udev:
* libc6 (>= 2.9) * update-rc.d * libc6 (>= 2.9) * libc6 (>= 2.9) *
* Cannot find package udev.
* ERROR: Cannot satisfy the following dependencies for sysvinit:
* libc6 (>= 2.9) * libc6 (>= 2.9) *
* Cannot find package sysvinit.
* ERROR: Cannot satisfy the following dependencies for tinylogin:
* libc6 (>= 2.9) *
More information about the Openembedded-devel
mailing list