how to force openembedded/bitbake to re-generate uImage?

Hi,

Following the instructions of oe for beagle (http://elinux.org/
BeagleBoardAndOpenEmbeddedGit), I have successfully built all the
files (console-image-beagleboard.tar.bz2, console-image-
beagleboard.jffs2, uImage-beagleboard.bin, etc. in $OE_HOME/oe/tmp/
deploy/glibc/images/beagleboard)

So far so good, but now out of my stupid curiosity, I deleted
everything in $OE_HOME/oe/tmp/deploy/glibc/images/beagleboard in the
hope to repeate the building process once more. Now I found only
console-image-beagleboard.jffs2, console-image-beagleboard.tar.bz2,
etc., but no uImage-beagleboard.bin anymore.

can anyone teach me how to force openembedded/bitbake to re-generate
uImage?

Thank you very much

You may simply need to add the ‘-f’ flag to whatever bitbake command line it is you are using.

For some background, see posts

http://wh1t3s.com/2009/05/07/modifying-and-rebuilding-u-boot/

and

http://wh1t3s.com/2009/05/11/oe-bitake-kernel-mods/

The important pieces are to not add the ‘rm_work’ task (see note if first post above) as this causes the build to clean up after itself. (the equivalent of everything you did in removing the oe/tmp…)

Then force the recompile with:

$ bitbake -f -c compile linux-omap-2.6.28
$ bitbake -f -c deploy linux-omap-2.6.28

(substitute the recipe you are using for linux-omap-2.6.28.).

Good luck.

Bob

Thanks a lot. It works.

Sorry for more questions, but how about the files like console-image-
beagleboard.tar.bz2, console-image-beagleboard.jffs2, etc? They are
not generated by 'bitbake -f -c compile linux-omap-2.6.28' plus
'bitbake -f -c deploy linux-omap-2.6.28'

I guess uImage copied into the FAT32 partition and the console-image-
beagleboard.tar.bz2 extracted into the ext2 partition of the SD card
has to match each other or generated from the same process.

Since I am rusty on revision control, I would like to how to force
generation of all the necessary files needed? any suggestion?

Thank you

From: beagleboard@googlegroups.com
[mailto:beagleboard@googlegroups.com] On Behalf Of chuqdd
Sent: Tuesday, May 19, 2009 8:16 PM
To: Beagle Board
Subject: [beagleboard] Re: how to force openembedded/bitbake to

re-generate

uImage?

Sorry for more questions, but how about the files like console-image-
beagleboard.tar.bz2, console-image-beagleboard.jffs2, etc? They are
not generated by 'bitbake -f -c compile linux-omap-2.6.28' plus
'bitbake -f -c deploy linux-omap-2.6.28'

If you want the preferred kernel built by OE, do the following
bitbake -c clean linux-omap
bitbake -c build linux-omap

To generate the other images, do the following:
cd openembedded
git pull
cd ..
bitbake console-image-beagleboard

This works since developers are adding code the openembedded daily, so
fetching these update will cause the files you want to be regenerated.