Bitbake tutorial

Hi

I successfully installed OE and bitbake, and even ran bitbake ffmpeg.
But I am not sure how to or what I need to do to install this program
in to my existing Angstrom install.

Is there a wiki describing what to do after a bitbake is complete?

Thanks,
Neel

Hi Neel,

I've wished for something like that too, and I will try to put together a wiki page now that I have found out what to do through asking on this list, the gumstix list, and trial and error. If you have a revision C4 board, you need to use the demo version of u-boot in order to turn power on to the HS usb port.

Briefly, if you have bitbaked these images:

bitbake console-image x11-image
bitbake MLO
bitbake x-load

then you should be able to navigate to ~/{$OE}/angstrom-dev/deploy/glibc/images/beagleboard

where $OE is whatever you named your openembedded directory.

Some people call '~/{$OE}/angstrom-dev' a different name, '~/{$OE}/work', use whatever name you decided on.

Inside the directory, you will find the various images that you can copy to your SD card. (I didn't say you should copy all of them, just the ones you need.)

Thanks

Bob Cochran

Ooops, I forgot you need base-image, too. So the bitbake order seems to be:

bitbake base-image
bitbake console-image x11-image
bitbake MLO
bitbake x-load

Bob

From: beagleboard@googlegroups.com
[mailto:beagleboard@googlegroups.com] On Behalf Of Robert L Cochran
Sent: Thursday, February 04, 2010 7:27 PM
To: beagleboard@googlegroups.com
Subject: Re: [beagleboard] Bitbake tutorial

Ooops, I forgot you need base-image, too. So the bitbake order seems to

be:

bitbake base-image
bitbake console-image x11-image
bitbake MLO
bitbake x-load

Or you could just run bitbake beagleboard-demo-image. BTW, bitbake x-load
also gives you MLO.

Dear Neel,

I successfully installed OE and bitbake, and even ran bitbake ffmpeg.
But I am not sure how to or what I need to do to install this program
in to my existing Angstrom install.

Is there a wiki describing what to do after a bitbake is complete?

»Images generated by building package groups like opie-image or
pivotboot-image are placed in the tmp/deploy/images/ directory.
Individual ipkg packages are put in tmp/deploy/ipk.« [1]

Copy the ffmpeg*.ipk (?) from `tmp/deploy/ipk` (or what your temporary
directory is) to your system and install them using `opkg`. If you do
not want to build it by yourself you can take the package from the feeds
using `opkg install packagename` [2].

Thanks,

Paul

[1] http://wiki.openembedded.net/index.php/Getting_started#Adding_Packages
[2] http://www.angstrom-distribution.org/repo/

Thanks everyone for the info!

i was going to mention that very thing. one bitbake command gives
you everything you need.

rday

Hi,

I'm interested in just building a very small rootfs to be flashed in
the NAND (no video/X11/multimedia needed). Will bitbake base-image
give me such as small footprint image? Thanks.

Regards,
Andy

I have tried bitbake to test building images like helloworld-image,
base-image and beagleboard-demo-image. I always got the error

/home/tang/Project/OE/build/tmp/cross/armv7a/arm-angstrom-linux-
gnueabi/bin/as: unrecognized option '-Qy'

make[2]: *** [dummy-checksum.o] Error 1
make[2]: *** Waiting for unfinished jobs....

.
.
.

make[2]: Leaving directory `/home/tang/Project/OE/build/tmp/work/
armv7a-angstrom-linux-gnueabi/gcc-cross-initial-4.3.3-r11.1/gcc-4.3.3/
build.x86_64-linux.arm-angstrom-linux-gnueabi/gcc'

make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/tang/Project/OE/build/tmp/work/

armv7a-angstrom-linux-gnueabi/gcc-cross-initial-4.3.3-r11.1/gcc-4.3.3/
build.x86_64-linux.arm-angstrom-linux-gnueabi'

make: *** [all] Error 2
FATAL: oe_runmake failed

NOTE: Task failed: /home/tang/Project/OE/build/tmp/work/armv7a-
angstrom-linux-gnueabi/gcc-cross-initial-4.3.3-r11.1/temp/
log.do_compile.3482
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/tang/Project/OE/openembedded/recipes/gcc/gcc-
cross-initial_4.3.3.bb do_compile failed
ERROR: Task 1945 (/home/tang/Project/OE/openembedded/recipes/gcc/gcc-
cross-initial_4.3.3.bb, do_compile) failed
NOTE: Tasks Summary: Attempted 171 tasks of which 0 didn't need to be
rerun and 1 failed.
ERROR: '/home/tang/Project/OE/openembedded/recipes/gcc/gcc-cross-
initial_4.3.3.bb' failed

I can not find out where '-Qy' is flaged.

Any ideas? This is my first hurdle to use OE.