Skip to contentSkip to conversation

packaged staging fails in do_deploy for kernel

DISCUSSION Frans Meulenbroeks 3 participants 5 messages Jan 23, 2010 – Feb 8, 2010

lore
Share & tools
lore
#0 lore raw

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) *

#1 lore raw
Quoted 2 lines

I set the DEPLOY_DIR_PSTAGE to outside tmp. (packaged-staging is already inherited by default in Angstrom).

Then you incurr in that infamous issue:
http://blog.denix.org/2008/09/getting-even-more-dangerous-with-pstage.html

Quoted 1 line

Not really an idea how to fix this. Any expert with an opinion?

See above link.

Quoted 3 lines

 * 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.

Yes, this leads to subsequent failures during rebuild from pstage. See e.g. udev and machine-specific staging-packages have wrong arch too.

Quoted 1 line

That is where I gave up. Suggestions are welcome!

The good news are that RP, kergoth and Tartarus are aware of the issue :) Still, it seems this is a low-priority task...

Regards

Andrea

#2 lore raw

2010/1/23 Andrea Adami <[email protected]>:

Quoted 4 lines
Quoted 2 lines

I set the DEPLOY_DIR_PSTAGE to outside tmp. (packaged-staging is already inherited by default in Angstrom).

Then you incurr in that infamous issue:
http://blog.denix.org/2008/09/getting-even-more-dangerous-with-pstage.html

This seems like a good patch to me.
Any particular reason why it is not applied?

Quoted 10 lines
Quoted 3 lines

Not really an idea how to fix this. Any expert with an opinion?

See above link.

Quoted 3 lines

 * 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.

Yes, this leads to subsequent failures during rebuild from pstage. See e.g. udev and machine-specific staging-packages have wrong arch too.

Yes, but how to get rid of it?

Quoted 14 lines
Quoted 2 lines

That is where I gave up. Suggestions are welcome!

The good news are that RP, kergoth and Tartarus are aware of the issue :) Still, it seems this is a low-priority task...

Regards

Andrea

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

#3 lore raw

2010/1/26 Frans Meulenbroeks <[email protected]>:

Quoted 14 lines

2010/1/23 Andrea Adami <[email protected]>:

Quoted 4 lines
Quoted 2 lines

I set the DEPLOY_DIR_PSTAGE to outside tmp. (packaged-staging is already inherited by default in Angstrom).

Then you incurr in that infamous issue:
http://blog.denix.org/2008/09/getting-even-more-dangerous-with-pstage.html

This seems like a good patch to me.
Any particular reason why it is not applied?

Quoted 5 lines
Quoted 3 lines

Not really an idea how to fix this. Any expert with an opinion?

See above link.

Quoted 15 lines
Quoted 5 lines
Quoted 3 lines

 * 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.

Yes, this leads to subsequent failures during rebuild from pstage. See e.g. udev and machine-specific staging-packages have wrong arch too.

Yes, but how to get rid of it?

Quoted 8 lines
Quoted 2 lines

That is where I gave up. Suggestions are welcome!

The good news are that RP, kergoth and Tartarus are aware of the issue :) Still, it seems this is a low-priority task...

Regards

Andrea

Andrea, I saw your message on irc saying that last night you hit the same issue.

The odd thing is that I have not seen the issue any more.

I have a hunch that it is time-stamp-related. That is also why I post here so others can share their $ 0.02.

My idea is that the granularityof the time stamps might not be good enough. Packaged staging restores the time stamps and based upon that the system decides that nothing has to be done after it.
However the stamp for packaged staging is generated shortly after do_deploy. I believe the granularity of timestamps is one second. Not sure what the build system does if both files have an identical time.

Any expert opinion?

Frans.

#4 lore raw
Quoted 7 lines · Frans Meulenbroeks

Andrea, I saw your message on irc saying that last night you hit the same issue.

The odd thing is that I have not seen the issue any more.

I have a hunch that it is time-stamp-related. That is also why I post here so others can share their $ 0.02.

Quoted 8 lines

My idea is that the granularityof the time stamps might not be good enough. Packaged staging restores the time stamps and based upon that the system decides that nothing has to be done after it.
However the stamp for packaged staging is generated shortly after do_deploy. I believe the granularity of timestamps is one second. Not sure what the build system does if both files have an identical time.

Any expert opinion?

So, the general case of this problem should be fixed now. We add ${S}/${KERNEL_OUTPUT} (or so) to the manually cached list. However, if any recipe overrides kernel.bbclass' do_deploy, it will still choke.

Signature · 2 lines
Tom Rini <[email protected]>
Mentor Graphics Corporation