Community
cancel
Showing results for 
Search instead for 
Did you mean: 
BWill15
New Contributor II
1,435 Views

Wiring-x86 error

I tried this library, but i get an error. I'm using a Intel Galileo Gen 2.

http://wiring-x86.readthedocs.org/index.html http://wiring-x86.readthedocs.org/index.html

https://github.com/emutex/wiring-x86 https://github.com/emutex/wiring-x86

root@clanton:/media/realroot/wiring-x86-master/examples# python blink.py

Failed opening digital value file for pin 130

/bin/sh: /sys/kernel/debug/gpio_debug/gpio130/current_pinmux: No such file or di rectory

/bin/sh: /sys/class/gpio/gpio248/value: No such file or directory

Failed opening digital value file for pin 131

/bin/sh: /sys/kernel/debug/gpio_debug/gpio131/current_pinmux: No such file or di rectory

/bin/sh: /sys/class/gpio/gpio249/value: No such file or directory

Failed opening digital value file for pin 128

/bin/sh: /sys/kernel/debug/gpio_debug/gpio128/current_pinmux: No such file or di rectory

/bin/sh: /sys/class/gpio/gpio250/value: No such file or directory

/bin/sh: /sys/kernel/debug/gpio_debug/gpio12/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio251/value: No such file or directory

Failed opening digital value file for pin 129

/bin/sh: /sys/kernel/debug/gpio_debug/gpio129/current_pinmux: No such file or di rectory

/bin/sh: /sys/class/gpio/gpio252/value: No such file or directory

/bin/sh: /sys/kernel/debug/gpio_debug/gpio13/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio253/value: No such file or directory

Failed opening digital value file for pin 182

/bin/sh: /sys/kernel/debug/gpio_debug/gpio182/current_pinmux: No such file or di rectory

/bin/sh: /sys/class/gpio/gpio254/value: No such file or directory

/bin/sh: /sys/kernel/debug/gpio_debug/gpio48/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio255/value: No such file or directory

/bin/sh: /sys/kernel/debug/gpio_debug/gpio49/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio256/value: No such file or directory

Failed opening digital value file for pin 183

/bin/sh: /sys/kernel/debug/gpio_debug/gpio183/current_pinmux: No such file or di rectory

/bin/sh: /sys/class/gpio/gpio257/value: No such file or directory

/bin/sh: /sys/kernel/debug/gpio_debug/gpio41/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio258/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio240/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio263/value: No such file or directory

/bin/sh: /sys/kernel/debug/gpio_debug/gpio43/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio259/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio241/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio262/value: No such file or directory

/bin/sh: /sys/kernel/debug/gpio_debug/gpio42/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio260/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio242/value: No such file or directory

/bin/sh: /sys/kernel/debug/gpio_debug/gpio40/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio261/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio243/value: No such file or directory

/bin/sh: /sys/kernel/debug/gpio_debug/gpio44/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio232/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio200/value: No such file or directory

/bin/sh: /sys/kernel/debug/gpio_debug/gpio45/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio233/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio201/value: No such file or directory

/bin/sh: /sys/kernel/debug/gpio_debug/gpio46/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio234/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio202/value: No such file or directory

/bin/sh: /sys/kernel/debug/gpio_debug/gpio47/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio235/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio203/value: No such file or directory

/bin/sh: /sys/kernel/debug/gpio_debug/gpio14/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio236/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio204/value: No such file or directory

Failed opening digital value file for pin 165

/bin/sh: /sys/kernel/debug/gpio_debug/gpio165/current_pinmux: No such file or di rectory

/bin/sh: /sys/class/gpio/gpio237/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio205/value: No such file or directory

Setting up pin 13

/bin/sh: /sys/kernel/debug/gpio_debug/gpio40/current_pinmux: No such file or dir ectory

/bin/sh: /sys/class/gpio/gpio261/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio229/value: No such file or directory

/bin/sh: /sys/class/gpio/gpio243/value: No such file or directory

Blinking pin 13 now...

The led on pin 13 doesn't blink.

Tags (1)
8 Replies
Pedro_M_Intel
Employee
75 Views

Hello BrechtW,

Why don't you try using https://github.com/intel-iot-devkit/mraa MRAA? It has support for a lot more interfaces than Wiring-x86 and it is updated regularly. I'll leave you a working python script for a simple blink:

import mraa

import time

x = mraa.Gpio(13)

x.dir(mraa.DIR_OUT)

while True:

x.write(1)

time.sleep(1)

x.write(0)

time.sleep(1)

As you can see it is very simple. I suggest you to give it a shot.

Peter.

BWill15
New Contributor II
75 Views

I tried installing the library.

I get this error.

root@clanton:/home# echo "src mraa-upm http://iotdk.intel.com/repos/2.0/intelgalactic http://iotdk.intel.com/repos/2.0/intelgalactic" > /etc/opkg/mraa-upm.conf

root@clanton:/home# opkg update

Downloading http://iotdk.intel.com/repos/2.0/intelgalactic/Packages http://iotdk.intel.com/repos/2.0/intelgalactic/Packages.

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

root@clanton:/home# opkg install libmraa0

Unknown package 'libmraa0'.

Collected errors:

* opkg_install_cmd: Cannot install package libmraa0.

root@clanton:/home#

 

Can you give a step by step instruction?
Pedro_M_Intel
Employee
75 Views

First make sure you are using the eglibc image that you can download from here: https://software.intel.com/en-us/iot/hardware/galileo/downloads https://software.intel.com/en-us/iot/hardware/galileo/downloads, this is because that repo is only compatible with the eglibc version of the image and it will not work with the uclibc version.

Once you are sure you are using the eglibc image type the following commands:

echo "src mraa-upm http://iotdk.intel.com/repos/2.0/intelgalactic http://iotdk.intel.com/repos/2.0/intelgalactic" > /etc/opkg/mraa-upm.conf

opkg update

opkg install mraa

And that should do it, let me know if you run into any issues.

Peter.

BWill15
New Contributor II
75 Views

Thank you Peter.

I installed the 48MB image (http://www.intel.com/support/galileo/sb/CS-035101.htm Intel® Galileo Boards — Software Downloads) not knowing it isn't supported anymore:

The uClibc image is no longer supported, but offered here for your convenience. Instructions for how to compile your EGLIBC image with libmraa and upm coming soon.

uClibc microSD card image (48MB, .bz2)

I will try it with the new image. (https://software.intel.com/en-us/iot/hardware/galileo/downloads IoT - Intel® Galileo Board Download | Intel® Developer Zone)

Using the microSD card image enables the Wi-Fi* drivers and sketch persistence. The libraries to use either Eclipse* or Intel® XDK IoT Edition are included in the EGLIBC based image.

EGLIBC microSD card image (210 MB)

BWill15
New Contributor II
75 Views

I installed the http://downloadmirror.intel.com/25384/eng/iot-devkit-201510010757-mmcblkp0-galileo.direct.xz EGLIBC microSD card image (210 MB) image.

The strange thing is my SD card from 16 GB is now only 49.2 MB with 16.1 MB used.

Pedro_M_Intel
Employee
75 Views

This is because when you install the eglibc image on your SD Card you partition its storage so several partitions can't be detected by Windows because of its format. Nevertheless, you should be able to access the rest of your storage from Yocto's file system.

Peter.

BWill15
New Contributor II
75 Views

Is it possible to make the visible partition of 49.2 MB larger?

Kind regards

Pedro_M_Intel
Employee
75 Views

Have you tried to change the partition with the tool mentioned in https://software.intel.com/en-us/programming-blank-sd-card-with-yocto-linux-image-windows Making a bootable micro SD Card with Windows* | Intel® Developer Zone. You could also be interested in the method mentioned in https://github.com/IntelOpenDesign/MakerNode/wiki/IOTDK:-installation-instructions IOTDK: installation instructions · IntelOpenDesign/MakerNode Wiki · GitHub although it is only for OSX.

Other useful links:

https://innovateideatecreate.wordpress.com/2015/06/30/re-sizing-root-partition-of-an-linux-image-on-... Re-sizing root partition of a linux image on SD card | innovate ideate create

http://eleceng.dit.ie/frank/galileo/pythonspi.html The Intel Galileo gen 2

Peter.

Reply