Community
cancel
Showing results for 
Search instead for 
Did you mean: 
jnich3
New Contributor I
974 Views

Upgrading to Yocto 3 and mraa 1.4 issues

hello,

I have just been setting up a new Edison. I appear to have successfully installed the firmware image 2016061707

I have also, as far as i know successfully, upgraded mraa on the edison to 1.4.0

Prior to this I have been developing in KDev and compiling using a makefile, which contains this kind of info:

CPP = i586-poky-linux-gcc -E -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mstackrealign -fno-omit-frame-pointer --sysroot=/opt/poky-edison/1.7.2/sysroots/core2-32-poky-linux

CXX = i586-poky-linux-g++ -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mstackrealign -fno-omit-frame-pointer --sysroot=/opt/poky-edison/1.7.2/sysroots/core2-32-poky-linux

CC ="i586-poky-linux-gcc -m32 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -mstackrealign -fno-omit-frame-pointer --sysroot=$SDKTARGETSYSROOT"

# INC = -I/opt/poky-edison/1.7.2/sysroots/core2-32-poky-linux/usr/include

LIB = -lmraa

This info was obviously derived from info in the file

/opt/poky-edison/1.7.2/site-config-core2-32-poky-linux

as per your native application guide.

All this stuff now seems to be totally out of date, so my question is how do I get my environment back working as it was?

I should emphasise that I don't want to use eclipse.

Having said that I have downloaded and installed your latest eclipse based development environment on the basis that I couldn't see any other way to upgrade all of the files on my host machine.

So what I am really after, I suspect, is a shell file which allows me to set all the relevant vars that I need, and then the compiler commands with all their relevant options.

Thanks

James

0 Kudos
5 Replies
idata
Community Manager
60 Views

Hello jayls,

 

 

Thanks for reaching out!

 

 

That is a very interesting question. Please let me see if I can find some useful information for you. If I find anything I'll post it here.

 

 

-Peter.
jnich3
New Contributor I
60 Views

Hi,

Just wondered if you had made any further progress with this? Thank you

idata
Community Manager
60 Views

Hello jayls,

 

 

Yes, I've an update for you.

 

 

First of all, I would like to suggest you to use the latest SDK in case you are not using it already, you can get it in http://iotdk.intel.com/sdk/.

 

 

To install it, all you need to do is run the shell script once you have finished downloading it. Then, source it and you should be able to use it.

 

 

For a 64-bit Linux machine, the commands steps are the following:

 

 

wget http://iotdk.intel.com/sdk/3.5/edison/iot-devkit-toolchain-linux-64bit-edison-20160606.sh

 

sh iot-devkit-toolchain-linux-64bit-edison-20160606.sh

 

source /opt/poky-edison/1.7.3/environment-setup-core2-32-poky-linux

 

 

Let me know if this helps.

 

-Peter.
jnich3
New Contributor I
60 Views

Success! Thank you

idata
Community Manager
60 Views

Hi jayls,

 

 

I'm glad to be of help!

 

 

If you ever have any other question, please don't hesitate to come back to the community, we'll try to help you however we can.

 

 

-Peter.
Reply