meta-toolchain cross-compiling openembedded

646 views
Skip to first unread message

Marc

unread,
Oct 14, 2009, 11:22:27 AM10/14/09
to discu...@beagleboard.org
Hello, I'm using a ubuntu jaunty host for openembedded and angstrom 2008.1
Everything works fine so far, bitbake console-image and other tests run fine on the beagleboard
Now I would like to test some apps in another computer also with ubuntu before I create a recipe and put it below my local repository.

After some reading I understood I need to get a cross-compiler in the other computer, and the task meta-toolchain would do the job, so I just ran
bitbake meta-toolchain and got two packages under tmp/deploy/glibc/sdk :
angstrom-2009.X-test-20091013-armv7a-linux-gnueabi-toolchain-extras.tar.bz2
angstrom-2009.X-test-20091013-armv7a-linux-gnueabi-toolchain.tar.bz2

I copied and uncompressed both in my other computer, I sourced the environment-setup script and I tried to compile some programs.
The trouble comes when the compiler tries to find "as" the assembler which is not in any of those two packages

I looked it up in the openembedded host and I found it below :
tmp/cross/armv7a/bin/arm-angstrom-linux-gnueabi-as


Shouldn't it be also in the meta-toolchain result packages? How do you get a complete cross-compiling environment out of the openembedded and bitbake tree?
Is it better to get a third party toolchain for the beagleboard?
Am I missing some bitbake task?

Thank's


--
Marc.

Koen Kooi

unread,
Oct 14, 2009, 12:26:47 PM10/14/09
to beagl...@googlegroups.com
On Wed, Oct 14, 2009 at 5:22 PM, Marc <mbal...@gmail.com> wrote:
Hello, I'm using a ubuntu jaunty host for openembedded and angstrom 2008.1
Everything works fine so far, bitbake console-image and other tests run fine on the beagleboard
Now I would like to test some apps in another computer also with ubuntu before I create a recipe and put it below my local repository.

Could you please explain your use-case? I have trouble understanding why you think you need to do this instead of just creating a recipe for it.

regards,

Koen

Philip Balister

unread,
Oct 14, 2009, 3:07:06 PM10/14/09
to beagl...@googlegroups.com
On Wed, Oct 14, 2009 at 12:26 PM, Koen Kooi <ko...@beagleboard.org> wrote
Recipe's are great for working software, but while developing
software, it is nice to have an independent toolchain you can use
outside OE.

For example, I am procrastinating real work, by using task-native-sdk
on teh beagle to compile fftw on the beagle. This appears to work So I
can use familiar processes to investigate adding NEON support to fftw.
(Turns out the first thing I need to do is read the cycle counters).

For more involved projects, I have used configure to use the toolchain
and libraries from OE staging, however this requires you do an OE
build first .

Finally, you can extract toolchains from OE, but I suspect these might
not run well on machines that a different from the machine you built
them on.

Philip




>
> regards,
>
> Koen
>
> >
>

Marc

unread,
Oct 14, 2009, 3:16:11 PM10/14/09
to beagl...@googlegroups.com
Thank's Philip, I couldn't explain it better!!

I need to be able to test the software outside of OE for the initial states when lots of trial and error are done.
And another reason is that I'm not a very experienced programmer, bitbake hides all the underlying complexity of libraries and includes which is good when things work but its a pain when they don't.
So I see bitbake as a perfect solution for deploying once my software is fully tested but in the initial states I just don't see it.
--
Marc.

Koen Kooi

unread,
Oct 14, 2009, 4:27:02 PM10/14/09
to beagl...@googlegroups.com
On Wed, Oct 14, 2009 at 9:07 PM, Philip Balister <philip....@gmail.com> wrote:

On Wed, Oct 14, 2009 at 12:26 PM, Koen Kooi <ko...@beagleboard.org> wrote
> On Wed, Oct 14, 2009 at 5:22 PM, Marc <mbal...@gmail.com> wrote:
>>
>> Hello, I'm using a ubuntu jaunty host for openembedded and angstrom 2008.1
>> Everything works fine so far, bitbake console-image and other tests run
>> fine on the beagleboard
>> Now I would like to test some apps in another computer also with ubuntu
>> before I create a recipe and put it below my local repository.
>
> Could you please explain your use-case? I have trouble understanding why you
> think you need to do this instead of just creating a recipe for it.

Recipe's are great for working software, but while developing
software, it is nice to have an independent toolchain you can use
outside OE.

I can see that use case, but in my experience trying to get it working without OE first just makes you solve the same problems twice, instead of killing 2 birds with one stone.
Maybe other people like wasting time, but I don't :)

regards,

Koen

Philip Balister

unread,
Oct 14, 2009, 5:12:08 PM10/14/09
to beagl...@googlegroups.com
One issue using external toolchains is that the autotools stuff
sometimes does generate working makefiles' for cross compiling. In OE
we have some site files containing overrides for autoconf tests. Also,
if a test picks up host libraries and includes, we can sed the
Makefiles accordingly :)

However, doing to cross work stand alone, may reduce the number of
problems we need to fix in the recipe.

Philip

>
> regards,
>
> Koen
>
> >
>
Reply all
Reply to author
Forward
0 new messages