BUG Community

Welcome! Log In

kgilmer's Blog

OpenEmbedded Tools for Eclipse 0.6.0

This is the first release of BitBake Commander that I think is truely useful to the embedded developer.  Check out the 16Mb ogg screencast  to get an overview of interesting workflow options that Eclipse and OTE provide.  0.6.0 supports:

1. Hover-over inspections of BitBake variables, very handy for n00bs like me. 2. Shell integration for building packages. 3. "Import recipe as project" feature ~ bringing sources and patches into the Eclipse workspace.

Some bugs have been fixed, notably compatibility with Poky Linux, OpenEmbedded, and GumStix distros has been tested.  This release took awhile to get out because...well I fought BitBake and BitBake won.  I gave up on a "do it all in Java" strategy and am now letting BitBake run the show.  Everyone seems happier as a result.  The updatesite for this release is: http://bugcommunity.com/downloads/files/ote/updatesite/

 

 

Post Comments

Add Your Comment!

Wayne,  glad to hear it worked for you!  Yes, there is no indication that the git clone is running, and it does take quite a long time.  This is something I'll have to fix.

Update:  I once again deleted the oe and oe_build directories and tried creating a new Bitbake Commander project with the OTE plugin.  It is working now.  When I mentioned it getting stuck at "initialized empty git repository..." it was actually just taking a while to download everything.  The wizard didn't indicate that it was actually processing.

I let it run for a while and now I have a new OE project to explore.  Thanks for the help and the nice plugin Ken!

I deleted ~/oe as well as ~/oe_build since this plugin created it.  When I attempt to create a new OE project, it seems to get stuck at "initialized empty git repository in ~/oe/openembedded/.git/".

I tried this a few times (delete oe, oe_build, create project) with the same result except the first time it went to the end of installation where I can hit next to load the workspace, and it did the same error as before where bitbake fails silently.

Wayne, can you delete or rename ~/oe to something else and try again from Eclipse?  I think maybe existing files from a previous attempt may be your problem...

Ken,

Yes, bitbake returns an error on the commandline:

$ bitbake
Traceback (most recent call last):
  File "~/oe/bitbake/bin/bitbake", line 143, in ?
    main()
  File "~/oe/bitbake/bin/bitbake", line 123, in main
    cooker.parseConfiguration()
  File "~/oe/bitbake/lib/bb/cooker.py", line 68, in parseConfiguration
    self.parseConfigurationFile( os.path.join( "conf", "bitbake.conf" ) )
  File "~/oe/bitbake/lib/bb/cooker.py", line 404, in parseConfigurationFile
    bb.event.fire(bb.event.ConfigParsed(self.configuration.data))
  File "~/oe/bitbake/lib/bb/event.py", line 67, in fire
    if tmpHandler(event) == Handled:
  File "tmpHandler(e)", line 4, in tmpHandler
  File "<bb>", line 18, in check_sanity
NameError: global name 'os' is not defined

Hmm, Wayne, can you try this from the command line:

$ cd ~/oe

$ source init.sh

$ bitbake

I think you will get some kind of error message.  The install wizard still needs some work in handling errors.

I reinstalled OTE through the Eclipse "find and install" menu and when I create a new project, it gets past the part where it makes init.sh executable, "installation complete, next is to load into workspace".  When I click next, it gives an error that "bitbake failed silently.  No configuration is available".

Hi Wayne,  yes the default settings for installing OE dev sadly were invalid, due to some problems in my code.  I've updated the plugins just now to 0.7.0.  It is now working well for me.  Please try after the update and let me know how it goes.

Thx!

ken

kglimer,

I found this site recently and the OTE plugin appears to have been installed properly in Eclipse.  However, I am having difficulty creating a new project.  When I go to create a new project, I keep all the defaults, selecting to create a new OpenEmbedded project.  A Bitbake Commander window comes up and runs through installing OpenEmbedded (under ~/oe).  It seems to be stuck at the last step (chmod u+x ${Init Script}).  It says installation complete, click next, but the next button does nothing.  All I can do is hit cancel, and have no project created.

I'm a bit new to this, and am not sure where to go from here.  Any thoughts?

Hello,  I've just pushed version 0.6.1 that has a bugfix for OE setups that pass parameters to init scripts, and removed dependency on OEROOT/build/conf path to exist.  Same updatesite URL.

Hi Anish,

Thanks and yes, the source is available under the EPL at svn://svn.buglabs.net/ote/tags/releases/0.6.0. 

kgilmer,

The plugin is really awesome. Btw, I was wondering wether the source is hosted somewher online ?

Thanks

Ken,
I switched discussion to bug-dev@lists.buglabs.net

Hi Marco,

Yes the plugins should work with 3.3 or 3.4.  I am currently using 3.3.  Another feature I did not show is integration with team plugins, so if you check out from SVN, you can commit, see history, etc. as well.  I haven't had a chance yet to see if it works with the git plugin...

Installation is straightforward:
I installed Ganymede (Version: 3.4.1) then
Help - Software updates - Add site - (paste this link http://bugcommunity.com/downloads/files/ote/updatesite/ ),
select it and click Install.

Some questions:

Which Eclipse version are you using? is version: 3.2.2 suitable?

How do you install OTE in Eclipse?

Is possible to contribute or add features?

TIA

 

Definitely astounding!

it's exactly what I was starting to do, so I'll test it ASAP

Thank you

Hi jume,

  Thanks!  The init script is what you would run from a terminal to setup the bitbake environment.  Essentially adding bitbake to the path and setting BBPATH.  Here is my OE init script that was used in the screencast:

 $ cat ~/dev/sandbox/oe-dev/init.sh
export PATH=/home/kgilmer/dev/sandbox/oe-dev/bitbake/bin:$PATH
export BBPATH=/home/kgilmer/dev/sandbox/oe-dev/build:/home/kgilmer/dev/sandbox/oe-dev/openembedded:/home/kgilmer/dev/sandbox/oe-dev/jalimo/oe-overlay

regarding help, absolutely!  The sources are available at svn://svn.buglabs.net/ote/trunk/  Please email the bug-dev mailing list for more specifics.  Our mailing list is here: http://lists.buglabs.net/mailman/listinfo/bug-dev/

thx!

-ken

Really nice job,

I am using Angstrom distribution and I don't know what is the "init script" asked when creating a project. What is this file? If provided file is wrong, project is created empty.

PD:I am really interested in this eclipse plugin, maybe you want help for development?

 

Nice work!

Few suggestions:  maximize window and minimize 'Console' part of window when it is not used so more code will be on screen, add some audio with informations what you are doing.

» All comments
» Comments RSS

Powered by Community Engine

Top
Login
Close
Bottom