When trying to add a pkg on my galileo2
I receive this error
* opkg_conf_parse_file: Duplicate src declaration (all http://iotdk.intel.com/repos/1.1/iotdk/all). Skipping.
* opkg_install_cmd: Cannot install package cronie.
here si the conf file
root@Galileo:/etc/opkg# vi base-feeds.conf
src/gz all http://repo.opkg.net/edison/repo/all
src/gz edison http://repo.opkg.net/edison/repo/edison
src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32
Thanks for reaching out!
Could you please let us know which image you are using? You can find out with the command cat /etc/version. You should see the output 201605251601, if you receive something else, update your image to the latest which can be downloaded from https://software.intel.com/en-us/iot/hardware/galileo/downloads.
In the latest image the repo should be already set up, anyhow, the latest image does not use base-feeds.conf but instead it use the files called iotdk.conf and mraa-upm.conf. Both of them are found in /etc/opkg and this is how they should look like to work on the latest image:
src iotdk-all http://iotdk.intel.com/repos/3.5/iotdk/galileo/all
src iotdk-i586 http://iotdk.intel.com/repos/3.5/iotdk/galileo/i586
src iotdk-quark http://iotdk.intel.com/repos/3.5/iotdk/galileo/quark
src iotdk-x86 http://iotdk.intel.com/repos/3.5/iotdk/galileo/x86
src mraa-upm http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586/
Make sure these files have this content and then run the command opkg update. After this you can install packages found on the repo with the command opkg install XXXXXXX. For example opkg install mraa will install the latest version of mraa on your board.
I hope this information helps you,
Thanks a lot for you cear answer
seems i have a pretty old version
Is it possible to upgrade without loosing what is actually on my galileo?
That's why i would rather not upgrade
Here is my iotdk.conf
src iotdk http://iotdk.intel.com/repos/1.1/iotdk
src/gz all http://iotdk.intel.com/repos/1.1/iotdk/all
src/gz i586 http://iotdk.intel.com/repos/1.1/iotdk/i586
src mraa-upm http://iotdk.intel.com/repos/1.1/intelgalactic
Is it possible to keep actual OS and get latests packages ?
No, it is not possible to update Galileo's image without losing the data currently on Galileo. You would have to back up your data on a different drive.
You can indeed get the latest repo on an old image by updating your iotdk.conf and mraa-upm.conf files to the content I shared above. However, we highly suggest you that you always use the latest image.
I updated the conf files.
I can see under /var/lib/opkg/core2-32>>:Package: cronie
but when launching
opkg install cronie
Unknown package 'cronie'.
Did you try to search for the source code? The specific host is not important, actually
well.. you should... it's a plain and simple web search.
... May you help me in locating the Cronie src and copmiling/building it on galileo 2?
Search: among the first results, from many (you should try), https://github.com/cronie-crond/cronie/releases/tag/cronie1.5.0 Release cronie1.5.0: Release new version 1.5.0 · cronie-crond/cronie · GitHub
Instructions are in the thread I referred to in my previous post, which I copy here:
tar -xvf cronie-cronie1.5.0.tar
mkdir -p /usr/local/var/spool/cron
cp src/crond /etc/init.d/
update-rc.d crond defaults
you'll need to reboot in order to crond to start
And I think crond is now "up&running", because
root@galileo:~# ps | grep cron
146 root 2508 S /etc/init.d/crond start
217 root 2508 S grep cron