Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
1,030 Views

Probleme updating libraries upm and libmraa0 on Galilio Gen2

Hi,

i folowed this tutorial here to update libraries on my Galileo:

https://software.intel.com/en-us/updating-upm-and-mraa IoT - Updating and selecting update options for the UPM and MRAA libraries | Intel® Developer Zone

i failed to update using Eclipse and using command file.

What should i do please?

Regards.

8 Replies
Highlighted
Honored Contributor I
15 Views

Hi Yacine85,

I wonder if you followed the right guide, because in the URL you posted:

When you develop Internet of Things (IoT) projects in the Intel® System Studio IoT Edition, there are two sets of the https://software.intel.com/en-us/updating-upm-and-mraa# The_MRAA_and_UPM_libraries MRAA and UPM libraries that you must manage:

i.e. it is intended for "Intel System Studio IoT Edition", and I don't know if it is the same procedure for Eclipse, which is what you are using.

Fernando.

0 Kudos
Highlighted
Community Manager
15 Views

Hello Yacine85,

When using the eglibc image, if you go to the path /etc/opkg, you should see the following files:

arch.conf

 

base-feeds.conf

 

iotdk.conf

 

mraa-upm.conf

 

opkg.conf

Of those five files we are interested in iotdk.conf and mraa-upm.conf, their content should look like the following:

For iotdk.conf:

 

src iotdk-all http://iotdk.intel.com/repos/2.0/iotdk/all http://iotdk.intel.com/repos/2.0/iotdk/all

 

src iotdk-i586 http://iotdk.intel.com/repos/2.0/iotdk/i586 http://iotdk.intel.com/repos/2.0/iotdk/i586

 

src iotdk-quark http://iotdk.intel.com/repos/2.0/iotdk/quark http://iotdk.intel.com/repos/2.0/iotdk/quark

 

src iotdk-x86 http://iotdk.intel.com/repos/2.0/iotdk/x86 http://iotdk.intel.com/repos/2.0/iotdk/x86

For mraa-upm.conf:

 

src mraa-upm http://iotdk.intel.com/repos/2.0/intelgalactic http://iotdk.intel.com/repos/2.0/intelgalactic

What you need to do is change their content to this:

For iotdk.conf:

 

src iotdk-i586 http://iotdk.intel.com/repos/3.0/iotdk/i586/ http://iotdk.intel.com/repos/3.0/iotdk/i586/

 

src iotdk-intel-core-2-32 http://iotdk.intel.com/repos/3.0/iotdk/intel_core2_32/ http://iotdk.intel.com/repos/3.0/iotdk/intel_core2_32/

 

src iotdk-quark http://iotdk.intel.com/repos/3.0/iotdk/quark/ http://iotdk.intel.com/repos/3.0/iotdk/quark/

 

src iotdk-x86 http://iotdk.intel.com/repos/3.0/iotdk/x86/ http://iotdk.intel.com/repos/3.0/iotdk/x86/

 

src iotdk-core-2-32 http://iotdk.intel.com/repos/3.0/iotdk/core2-32/ http://iotdk.intel.com/repos/3.0/iotdk/core2-32/

For mraa-upm.conf:

 

src mraa-upm http://iotdk.intel.com/repos/3.0/intelgalactic/opkg/i586/ http://iotdk.intel.com/repos/3.0/intelgalactic/opkg/i586/

After you've done it, you can enter the command opkg update and then install mraa and upm with the command opkg install mraa upm.

Let me know if it works, I'll be glad to help you if otherwise.

 

Peter.
New Contributor I
15 Views

Hi Peter,

upm is not installed.

update failed (i guess, i should add src in custom-iotdk.conf?)

Highlighted
Community Manager
15 Views

I don't think custom-iotdk.conf is necessary. If you are able to install mraa, you should be able to also install upm, run the following commands and let me know what it outputs:

 

 

opkg update

 

opkg list | grep upm

 

 

If it finds upm, then install it with the command opkg instal upm, if otherwise, let me know.

 

 

Peter.
0 Kudos
Highlighted
New Contributor I
15 Views

Are you sure that you have space on your microSD card? Seems strange that mraa updated and upm did not.

0 Kudos
Highlighted
New Contributor I
15 Views

I got :

Updated list of available packages in /var/lib/opkg/mraa-upm.

Collected errors:

* opkg_conf_parse_file: /etc/opkg/custom-iotdk.conf:1: Ignoring invalid line: ` http://iotdk.intel.com/repos/3.0/intelgalactic/ http://iotdk.intel.com/repos/3.0/intelgalactic/'

Eclipse is not able to install upm too :

Regards

0 Kudos
Highlighted
Community Manager
15 Views

It makes sense that you receive that error message since that address (http://iotdk.intel.com/repos/3.0/intelgalactic/ http://iotdk.intel.com/repos/3.0/intelgalactic/) is only the parent of the opkg and rpm repos. I mean there's no content there. I would like to see the content of your board's /etc/opkg directory, I believe you might have extra files there, remember you should only see the following files:

 

 

arch.conf

 

base-feeds.conf

 

iotdk.conf

 

mraa-upm.conf

 

opkg.conf

 

 

Now, since you are having issues with installing upm, I will explain to you how to download it directly (without using the repo) and install it:

 

 

1. Go to the directory where you want to store the download file (I'm using /home/root).

 

2. Type the command: wget http://iotdk.intel.com/repos/3.0/intelgalactic/opkg/i586/upm_0.6.2_i586.ipk http://iotdk.intel.com/repos/3.0/intelgalactic/opkg/i586/upm_0.6.2_i586.ipk and wait for the file to be downloaded.

 

3. On the same directory where you downloaded the .ipk type the command opkg install upm_0.6.2_i586.ipk.

 

 

After this you should have version 0.6.2 of upm installed on your Galileo.

 

Let me know if it works.

 

Peter.
0 Kudos
Highlighted
New Contributor I
15 Views

Thank you Peter!! Yes, that's it!!

Now it works perfectly!

0 Kudos