Building Angstrom image for Beaglebone fails when building Busybox.

I’m attempting to build a complete Angstrom image for the Beaglebone.

I did this:

`
git clone git://github.com/Angstrom-distribution/setup-scripts.git

cd setup-scripts

./oebb.sh config beaglebone

MACHINE=beaglebone ./oebb.sh bitbake systemd-image
`

This command ran for a very long time (almost 2 hours) and performed over 2800 tasks, but it failed when it tried to build busybox-1.19.4. The “do_configure” task failed with the error message “bbnote: command not found”.

Here is the output:

`
NOTE: Running task 2827 of 3282 (ID: 1360,
/mnt/bulk/temasp/setup-scripts/sources/openembedded-core/meta/recipes-core/busybox/busybox_1.19.4.bb,
do_configure)

NOTE: package busybox-1.19.4-r6: task do_configure: Started

ERROR: Function failed: do_configure (see
/mnt/bulk/temasp/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/work/armv7a-angstrom-linux-gnueabi/busybox-1.19.4-r6/temp/log.do_configure.16345
for further information)

ERROR: Logfile of failure stored in:
/mnt/bulk/temasp/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/work/armv7a-angstrom-linux-gnueabi/busybox-1.19.4-r6/temp/log.do_configure.16345

Log data follows:

ERROR: Function failed: do_configure (see
/mnt/bulk/temasp/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/work/armv7a-angstrom-linux-gnueabi/busybox-1.19.4-r6/temp/log.do_configure.16345
for further information)

/mnt/bulk/temasp/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/work/armv7a-angstrom-linux-gnueabi/busybox-1.19.4-r6/temp/run.do_configure.16345:
line 123: bbnote: command not found

NOTE: package busybox-1.19.4-r6: task do_configure: Failed

ERROR: Task 1360
(/mnt/bulk/temasp/setup-scripts/sources/openembedded-core/meta/recipes-core/busybox/busybox_1.19.4.bb,
do_configure) failed with exit code ‘1’

`

As a result, the whole thing failed and I didn’t get the image I want.

I don’t know what bbnote is (a program? a script?). A Google search didn’t turn up anything useful. Does anyone know the solution to this problem?

Thanks,
Tim M

Hi Tim,

a few days ago I did the same with some slight differences.

I did this:

    #! /bin/zsh
    MACHINE=beaglebone ./oebb.sh config beaglebone
    MACHINE=beaglebone ./oebb.sh update
    source ~/.oe/environment-angstromv2012.05
    MACHINE=beaglebone bitbake virtual/kernel
    source ~/.oe/environment-angstromv2012.05
    MACHINE=beaglebone bitbake systemd-gnome-image

which also took a looooong time and eats more than
20GBytes on my harddisk...but all images were
created. May be your setup misses the build-kernel
step? Or the update-step?

Good Luck! :slight_smile:
Best regards,
mcc

Tim M <timlorimurtaugh@hotmail.com> [12-08-23 00:08]:

i get:

In file included from clean-temp.h:22:0,
from clean-temp.c:23:
./stdio.h:477:1: error: ‘gets’ undeclared here (not in a function)
In file included from freadahead.h:18:0,
from freadahead.c:20:
./stdio.h:477:1: error: ‘gets’ undeclared here (not in a function)
make[3]: *** [clean-temp.o] Error 1
make[3]: *** Waiting for unfinished jobs…
make[3]: *** [freadahead.o] Error 1
make[3]: Leaving directory `/home/airy/wk/beagle/setup-scripts/build/tmp-angstrom_v2012_05-eglibc/work/i686-linux/m4-native-1.4.16-r2/m4-1.4.16/lib’
make[2]: *** [all] Error 2

my make version is 3.82

2012/8/22 <meino.cramer@gmx.de>

Thanks for your suggestions guys.

I tried mmc’s suggestion of building the virtual/kernel first:
MACHINE=beaglebone ./oebb.sh bitbake virtual/kernel

and then trying to build the systemd-image:
MACHINE=beaglebone ./oebb.sh bitbake systemd-image

The virtual/kernel built without error, but the systemd-image build still gets the “bbnote: command not found” error when it tries to build busybox.

I’m trying to debug this. What is bbnote? Has anyone had a similar failure?

Any tips or suggestions would be appreciated!

Thanks,
Tim

Hello all,

I found bbnote. It’s a function defined in setup-scripts/sources/bitbake/classes/base.bbclass. I read somewhere that ALL recipes inherit from base.bbclass, so ALL recipes should be able to find function bbnote.

However, it seems that the busybox recipe setup-scripts/sources/openembedded-core/meta/recipes-core/busybox/busybox_1.19.4.bb CANNOT find bbnote for some reason. I don’t know the reason.

Does the busybox recipe have to explicitly include base.bbclass? I compared this recipe with other recipes, and I can’t find an error, but then I’m far from a recipe expert.

Does anyone know why the busybox recipe can’t find the function bbnote that is defined in base.bbclass?

Thanks,
Tim