Internet Of Things 101 Intel® Edison
  • Cover
  • Summary
  • About This Traning
    • Objectives
    • Skills
    • Prerequisites
    • Requirements
  • Once Upon A Time ...
  • Internet Of Things
    • Examples
    • Consortiums
    • Resources
      • Architecture
      • Associations
      • Awards
      • Contests
      • Events
      • Investors
      • Job Roles
      • People
      • Programming Languages
      • Projects
      • Standards
      • Tendencies
      • Training
        • Coursera
      • Licensing
      • Sites
    • Key Players
      • Amazon
      • Apple
      • ARM
      • AT&T
      • Atari
      • Axeda
      • Bosch
      • Cisco
      • Dell
      • Eclipse
      • Facebook
      • General Electric
      • Google
      • Hewlett Packard
      • Huawei
      • IBM
      • Intel
        • Tools
      • IoT Ticket
      • Libelium
      • Oracle
      • Others
      • Mediatek
      • Micrium
      • Microchip
      • Microsoft
      • Mozilla
      • NXP
      • NVIDIA
      • Nokia
      • Predixion
      • PTC
      • Qualcomm
      • RedHat
      • Renesas
      • Salesforce
      • Samsung
      • SAP
      • Schneider Electric
      • Telefonica
      • Texas Instruments
      • ThingWorx
      • Verizon
      • Vodafone
      • C2M
  • Architecture
    • Thing
      • Boards
        • Arduino
        • Beagleboard
        • C.H.I.P.
        • Raspberry Pi
        • ESP8266
        • Intel Architecture
          • Development Workstation
      • Boot Loaders
        • Labs
      • Operating Systems
      • Embedded Linux
        • Board Support Package
          • Labs
        • Boot Up
          • Labs
        • Command Line Interface
          • Labs
        • File Systems
          • Labs
        • Text Editors
          • Labs
        • Package Management System
          • Labs
        • Version Control Systems
          • Labs
        • Programming Languages
          • Python
          • PiP Package Management System
          • Labs
        • Libraries
          • Labs
      • Integrated Development Environments
    • Data
      • Sensors
        • Labs
        • Project
      • Actuators
        • Labs
        • Project
      • Local Operations
      • Frameworks
    • Gateways
      • Intel® IoT Gateways
    • Communications
      • Connectivity
        • Labs
      • Protocols
        • RESTful
          • Labs
        • MQTT
          • Labs
          • Project
    • Cloud Computing
      • Application Programming Interface
        • Labs
        • Project
      • Services
        • Labs
      • Platforms
        • Labs
  • Wrap-Up
    • Online Training
    • Challenge
  • SandBox
    • Sandbox-NonIT
    • IoTPy
    • Analytics
    • Security
    • Cloud
Powered by GitBook
On this page
  • Labs
  • Opkg @ Edison
  • Opkg @ Galileo
  1. Architecture
  2. Thing
  3. Embedded Linux
  4. Package Management System

Labs

Labs

Opkg @ Edison

Update Opkg Repositories

root@edison:~# cat /etc/opkg/base-feeds.conf
root@edison:~# opkg update
Downloading http://iotdk.intel.com/repos/1.5/intelgalactic/Packages.
Updated list of available packages in /var/lib/opkg/iotkit.
root@edison:~#

Enable a Opkg feed and update package list

root@edison:~# nano /etc/opkg/base-feeds.conf

Add the below lines to the opened file

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

Save the file

root@edison:~# opkg update
Downloading http://repo.opkg.net/edison/repo/all/Packages.gz.
Inflating http://repo.opkg.net/edison/repo/all/Packages.gz.
Updated list of available packages in /var/lib/opkg/all.
Downloading http://repo.opkg.net/edison/repo/edison/Packages.gz.
Inflating http://repo.opkg.net/edison/repo/edison/Packages.gz.
Updated list of available packages in /var/lib/opkg/edison.
Downloading http://repo.opkg.net/edison/repo/core2-32/Packages.gz.
Inflating http://repo.opkg.net/edison/repo/core2-32/Packages.gz.
Updated list of available packages in /var/lib/opkg/core2-32.
Downloading http://iotdk.intel.com/repos/3.5/intelgalactic/opkg/i586//Packages.
Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/all/Packages.
Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/core2-32/Packages.
Downloading http://iotdk.intel.com/repos/3.5/iotdk/edison/edison/Packages.
Collected errors:
 * opkg_download: Failed to download http://iotdk.intel.com/repos/3.5/intelgala.
 * opkg_download: Failed to download http://iotdk.intel.com/repos/3.5/iotdk/edi.
 * opkg_download: Failed to download http://iotdk.intel.com/repos/3.5/iotdk/edi.
 * opkg_download: Failed to download http://iotdk.intel.com/repos/3.5/iotdk/edi.
root@edison:~#

We will not upgrade packages to avoid consuming disk space

Install Git, Version Control System

root@edison:~# opkg install git
Package git (2.0.1-r0) installed in root is up to date.
root@edison:~#

Check if RMAA and UPM Libraries are installed and upgrade them

root@edison:~# opkg list-installed | grep mraa
mraa - 0.9.5-r0
mraa-dev - 0.9.5-r0
mraa-doc - 0.9.5-r0
root@edison:~# opkg list-installed | grep upm
upm - 0.5.1-r0
upm-dev - 0.5.1-r0
root@edison:~# opkg install mraa 
Upgrading mraa from 0.8.0 to 0.9.0 on root.
Downloading http://iotdk.intel.com/repos/2.0/intelgalactic/mraa_0.9.0_i586.ipk.
Removing obsolete file /usr/lib/libmraa.so.0.8.0.
Removing obsolete file /usr/share/mraa/examples/python/uart.py.
Configuring mraa.
root@edison:~# opkg install upm
Upgrading upm from 0.3.1-r0 to 0.3.2 on root.
Downloading http://iotdk.intel.com/repos/1.5/intelgalactic/upm_0.3.2_i586.ipk.
Removing package upm-dev from root...
Removing obsolete file /usr/lib/libupm-wt5001.so.0.3.1.
...
Configuring upm.
root@edison:~#

Install extra packages required

root@edison:~# opkg install python-numpy opencv python-opencv nano alsa-utils mpg123
Installing python-numpy (1.7.0-r1) on root.
Downloading http://repo.opkg.net/edison/repo/core2-32/python-numpy_1.7.0-r1_core2-32.ipk.
Installing python-doctest (2.7.3-r0.3) on root.
Downloading http://repo.opkg.net/edison/repo/core2-32/python-doctest_2.7.3-r0.3_core2-32.ipk.
...
Configuring alsa-utils-speakertest.
Configuring alsa-utils-aseqnet.
Configuring alsa-utils-aseqdump.
Configuring alsa-utils.
Configuring mpg123.

Opkg @ Galileo

Update Opkg sources

root@galileo:~# cat /etc/opkg/base-feeds.conf
root@galileo:~# opkg update
...
root@galileo:~#

Enable a Opkg feed and update package list, we will not upgrade to avoid consuming disk space

root@galileo:~# vi /etc/opkg/base-feeds.conf

Add the below lines to the opened file

src/gz all http://repo.opkg.net/galileo/repo/all
src/gz clanton http://repo.opkg.net/galileo/repo/clanton
src/gz i586 http://repo.opkg.net/galileo/repo/i586
root@galileo:~# opkg update
Downloading http://repo.opkg.net/galileo/repo/all/Packages.gz.
Inflating http://repo.opkg.net/galileo/repo/all/Packages.gz.
Updated list of available packages in /var/lib/opkg/all.
Downloading http://repo.opkg.net/galileo/repo/clanton/Packages.gz.
Inflating http://repo.opkg.net/galileo/repo/clanton/Packages.gz.
Updated list of available packages in /var/lib/opkg/clanton.
Downloading http://repo.opkg.net/galileo/repo/i586/Packages.gz.
Inflating http://repo.opkg.net/galileo/repo/i586/Packages.gz.
Updated list of available packages in /var/lib/opkg/i586.
Downloading http://iotdk.intel.com/repos/1.5/iotdk/all/Packages.
Updated list of available packages in /var/lib/opkg/iotdk-all.
Downloading http://iotdk.intel.com/repos/1.5/iotdk/i586/Packages.
Updated list of available packages in /var/lib/opkg/iotdk-i586.
Downloading http://iotdk.intel.com/repos/1.5/iotdk/quark/Packages.
Updated list of available packages in /var/lib/opkg/iotdk-quark.
Downloading http://iotdk.intel.com/repos/1.5/iotdk/x86/Packages.
Updated list of available packages in /var/lib/opkg/iotdk-x86.
Downloading http://iotdk.intel.com/repos/1.5/intelgalactic/Packages.
Updated list of available packages in /var/lib/opkg/mraa-upm.
root@galileo:~#

Install Git, Version Control System

root@galileo:~# opkg install git
...

Check if RMAA and UPM Libraries are installed

root@galileo:~# opkg list-installed | grep mraa
root@galileo:~# opkg list-installed | grep upm
root@galileo:~# opkg install libmraa0

Install extra packages required

root@galileo:~# opkg install python-numpy opencv python-opencv nano alsa-utils
root@galileo:~# cd
root@galileo:~# wget http://downloads.sourceforge.net/project/mpg123/mpg123/1.22.4/mpg123-1.22.4.tar.bz2
root@galileo:~# tar xvf mpg123-1.22.4.tar.bz2
root@galileo:~# cd mpg123-1.22.4/
root@galileo:~# ./configure
root@galileo:~# make
root@galileo:~# make install

Try but this package is not Working!

root@galileo:~# opkg update python-pygame
PreviousPackage Management SystemNextVersion Control Systems

Last updated 7 years ago