6 Replies Latest reply on Oct 6, 2015 2:21 PM by PabloM_Intel

    GITHUB > intel edison

    vianney

      Hi, I see many intel edison project with GitHub file. But how do faires are run on intel edison ??

        • 1. Re: GITHUB > intel edison
          PabloM_Intel

          Hi vianney,

           

          Could you please share some more details about what you want to do so we can help you better? What do you mean by “faires”?

           

          Regards,

          PabloM_Intel

          • 2. Re: GITHUB > intel edison
            vianney

            hey, I'm sorry I do not speak good English, I am French. I made gréât looking and finally I find. I install:

             

            echo src/gz all http://repo.opkg.net/edison/repo/all  > /etc/opkg/base-feeds.conf 

            echo src/gz edison http://repo.opkg.net/edison/repo/allsrc/gz  >> /etc/opkg/base-feeds.conf 

            echo src/gz core2-32 http://repo.opkg.net/edison/repo/allsrc/gz >> /etc/opkg/base-feeds.conf 

            echo src all     http://iotdk.intel.com/repos/1.1/iotdk/all >> /etc/opkg/base-feeds.conf

            echo src x86 http://iotdk.intel.com/repos/1.1/iotdk/x86 >> /etc/opkg/base-feeds.conf

            echo src i586    http://iotdk.intel.com/repos/1.1/iotdk/i586 >> /etc/opkg/base-feeds.conf

             

            and now I can make git clone without it corrupting my image

            • 3. Re: GITHUB > intel edison
              vianney

              echo src/gz all http://repo.opkg.net/edison/repo/all  > /etc/opk                                                                                                                     g/base-feeds.conf
              root@vianney:~# echo src/gz edison http://repo.opkg.net/edison/repo/allsrc/gz  >                                                                                                                     > /etc/opkg/base-feeds.conf
              root@vianney:~# echo src/gz core2-32 http://repo.opkg.net/edison/repo/allsrc/gz                                                                                                                      >> /etc/opkg/base-feeds.conf
              root@vianney:~# 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/allsrc/gz/Packages.gz.
              Downloading http://repo.opkg.net/edison/repo/allsrc/gz/Packages.gz.
              Downloading http://iotdk.intel.com/repos/1.1/intelgalactic/Packages.
              Updated list of available packages in /var/lib/opkg/maa-upm.
              Downloading http://iotdk.intel.com/repos/1.5/intelgalactic/Packages.
              Updated list of available packages in /var/lib/opkg/iotkit.
              Downloading http://iotdk.intel.com/repos/1.1/intelgalactic/Packages.
              Updated list of available packages in /var/lib/opkg/mraa-upm.
              Collected errors:
              * opkg_download: Failed to download http://repo.opkg.net/edison/repo/allsrc/gz/                                                                                                                     Packages.gz, wget returned 8.
              * opkg_download: Failed to download http://repo.opkg.net/edison/repo/allsrc/gz/                                                                                                                     Packages.gz, wget returned 8.
              root@vianney:~# opkg install bluez5-dev
              Package bluez5-dev (5.24-r0) installed in root is up to date.
              root@vianney:~# npm install -g async
              async@1.4.2 /usr/lib/node_modules/async
              root@vianney:~# npm install noble
              npm WARN package.json mraa@0.8.0 No repository field.
              npm WARN optional dep failed, continuing xpc-connection@0.1.4
              |
              > usb@1.0.6 install /home/root/node_modules/noble/node_modules/bluetooth-hci-soc                                                                                                                     ket/node_modules/usb
              > node-pre-gyp install --fallback-to-build

              make: Entering directory '/home/root/node_modules/noble/node_modules/bluetooth-h                                                                                                                     ci-socket/node_modules/usb/build'
                CC(target) Release/obj.target/libusb/libusb/libusb/core.o
                CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
                CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
                CC(target) Release/obj.target/libusb/libusb/libusb/io.o
                CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
                CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
                CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
                CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
              ../libusb/libusb/os/threads_posix.c:24:0: warning: "_GNU_SOURCE" redefined
              #  define _GNU_SOURCE
              ^
              <command-line>:0:0: note: this is the location of the previous definition
                CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
                CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
              ../libusb/libusb/os/linux_udev.c:40:21: fatal error: libudev.h: No such file or                                                                                                                      directory
              #include <libudev.h>
                                   ^
              compilation terminated.
              libusb.target.mk:121: recipe for target 'Release/obj.target/libusb/libusb/libusb                                                                                                                     /os/linux_udev.o' failed
              make: *** [Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Error 1
              make: Leaving directory '/home/root/node_modules/noble/node_modules/bluetooth-hc                                                                                                                     i-socket/node_modules/usb/build'
              gyp ERR! build error
              gyp ERR! stack Error: `make` failed with exit code: 2
              gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_module                                                                                                                     s/node-gyp/lib/build.js:267:23)
              gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
              gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:                                                                                                                     12)
              gyp ERR! System Linux 3.10.17-poky-edison+
              gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy                                                                                                                     p/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/root/node_modul                                                                                                                     es/noble/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding/usb_bind                                                                                                                     ings.node" "--module_name=usb_bindings" "--module_path=/home/root/node_modules/n                                                                                                                     oble/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding"
              gyp ERR! cwd /home/root/node_modules/noble/node_modules/bluetooth-hci-socket/nod                                                                                                                     e_modules/usb
              gyp ERR! node -v v0.10.38
              gyp ERR! node-gyp -v v1.0.1
              gyp ERR! not ok
              node-pre-gyp ERR! build error
              node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_mo                                                                                                                     dules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --modu                                                                                                                     le=/home/root/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/                                                                                                                     usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/home                                                                                                                     /root/node_modules/noble/node_modules/bluetooth-hci-socket/node_modules/usb/src/                                                                                                                     binding' (1)
              node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/root/node_modules                                                                                                                     /noble/node_modules/bluetooth-hci-socket/node_modules/usb/node_modules/node-pre-                                                                                                                     gyp/lib/util/compile.js:83:29)
              node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
              node-pre-gyp ERR! stack     at maybeClose (child_process.js:766:16)
              node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_proces                                                                                                                     s.js:833:5)
              node-pre-gyp ERR! System Linux 3.10.17-poky-edison+
              node-pre-gyp ERR! command "node" "/home/root/node_modules/noble/node_modules/blu                                                                                                                     etooth-hci-socket/node_modules/usb/node_modules/.bin/node-pre-gyp" "install" "--                                                                                                                     fallback-to-build"
              node-pre-gyp ERR! cwd /home/root/node_modules/noble/node_modules/bluetooth-hci-s                                                                                                                     ocket/node_modules/usb
              node-pre-gyp ERR! node -v v0.10.38
              node-pre-gyp ERR! node-pre-gyp -v v0.6.4
              node-pre-gyp ERR! not ok
              Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp                                                                                                                     /bin/node-gyp.js build --fallback-to-build --module=/home/root/node_modules/nobl                                                                                                                     e/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding/usb_bindings.no                                                                                                                     de --module_name=usb_bindings --module_path=/home/root/node_modules/noble/node_m                                                                                                                     odules/bluetooth-hci-socket/node_modules/usb/src/binding' (1)
              npm WARN optional dep failed, continuing usb@1.0.6

              > bluetooth-hci-socket@0.3.3 install /home/root/node_modules/noble/node_modules/                                                                                                                     bluetooth-hci-socket
              > node-gyp rebuild

              make: Entering directory '/home/root/node_modules/noble/node_modules/bluetooth-h                                                                                                                     ci-socket/build'
                CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
                SOLINK_MODULE(target) Release/obj.target/binding.node
                SOLINK_MODULE(target) Release/obj.target/binding.node: Finished
                COPY Release/binding.node
              make: Leaving directory '/home/root/node_modules/noble/node_modules/bluetooth-hc                                                                                                                     i-socket/build'
              noble@1.1.0 node_modules/noble
              ├── bplist-parser@0.0.6
              ├── debug@2.2.0 (ms@0.7.1)
              └── bluetooth-hci-socket@0.3.3 (nan@2.0.9)
              root@vianney:~# npm install bleno
              npm WARN package.json mraa@0.8.0 No repository field.
              npm WARN optional dep failed, continuing xpc-connection@0.1.4
              |
              > usb@1.0.6 install /home/root/node_modules/bleno/node_modules/bluetooth-hci-soc                                                                                                                     ket/node_modules/usb
              > node-pre-gyp install --fallback-to-build

              make: Entering directory '/home/root/node_modules/bleno/node_modules/bluetooth-h                                                                                                                     ci-socket/node_modules/usb/build'
                CC(target) Release/obj.target/libusb/libusb/libusb/core.o
                CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
                CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
                CC(target) Release/obj.target/libusb/libusb/libusb/io.o
                CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
                CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
                CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
                CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
              ../libusb/libusb/os/threads_posix.c:24:0: warning: "_GNU_SOURCE" redefined
              #  define _GNU_SOURCE
              ^
              <command-line>:0:0: note: this is the location of the previous definition
                CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
                CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
              ../libusb/libusb/os/linux_udev.c:40:21: fatal error: libudev.h: No such file or                                                                                                                      directory
              #include <libudev.h>
                                   ^
              compilation terminated.
              libusb.target.mk:121: recipe for target 'Release/obj.target/libusb/libusb/libusb                                                                                                                     /os/linux_udev.o' failed
              make: *** [Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Error 1
              make: Leaving directory '/home/root/node_modules/bleno/node_modules/bluetooth-hc                                                                                                                     i-socket/node_modules/usb/build'
              gyp ERR! build error
              gyp ERR! stack Error: `make` failed with exit code: 2
              gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_module                                                                                                                     s/node-gyp/lib/build.js:267:23)
              gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
              gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:                                                                                                                     12)
              gyp ERR! System Linux 3.10.17-poky-edison+
              gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy                                                                                                                     p/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/root/node_modul                                                                                                                     es/bleno/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding/usb_bind                                                                                                                     ings.node" "--module_name=usb_bindings" "--module_path=/home/root/node_modules/b                                                                                                                     leno/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding"
              gyp ERR! cwd /home/root/node_modules/bleno/node_modules/bluetooth-hci-socket/nod                                                                                                                     e_modules/usb
              gyp ERR! node -v v0.10.38
              gyp ERR! node-gyp -v v1.0.1
              gyp ERR! not ok
              node-pre-gyp ERR! build error
              node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_mo                                                                                                                     dules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --modu                                                                                                                     le=/home/root/node_modules/bleno/node_modules/bluetooth-hci-socket/node_modules/                                                                                                                     usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/home                                                                                                                     /root/node_modules/bleno/node_modules/bluetooth-hci-socket/node_modules/usb/src/                                                                                                                     binding' (1)
              node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/home/root/node_modules                                                                                                                     /bleno/node_modules/bluetooth-hci-socket/node_modules/usb/node_modules/node-pre-                                                                                                                     gyp/lib/util/compile.js:83:29)
              node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
              node-pre-gyp ERR! stack     at maybeClose (child_process.js:766:16)
              node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_proces                                                                                                                     s.js:833:5)
              node-pre-gyp ERR! System Linux 3.10.17-poky-edison+
              node-pre-gyp ERR! command "node" "/home/root/node_modules/bleno/node_modules/blu                                                                                                                     etooth-hci-socket/node_modules/usb/node_modules/.bin/node-pre-gyp" "install" "--                                                                                                                     fallback-to-build"
              node-pre-gyp ERR! cwd /home/root/node_modules/bleno/node_modules/bluetooth-hci-s                                                                                                                     ocket/node_modules/usb
              node-pre-gyp ERR! node -v v0.10.38
              node-pre-gyp ERR! node-pre-gyp -v v0.6.4
              node-pre-gyp ERR! not ok
              Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp                                                                                                                     /bin/node-gyp.js build --fallback-to-build --module=/home/root/node_modules/blen                                                                                                                     o/node_modules/bluetooth-hci-socket/node_modules/usb/src/binding/usb_bindings.no                                                                                                                     de --module_name=usb_bindings --module_path=/home/root/node_modules/bleno/node_m                                                                                                                     odules/bluetooth-hci-socket/node_modules/usb/src/binding' (1)
              npm WARN optional dep failed, continuing usb@1.0.6

              > bluetooth-hci-socket@0.3.3 install /home/root/node_modules/bleno/node_modules/                                                                                                                     bluetooth-hci-socket
              > node-gyp rebuild

              make: Entering directory '/home/root/node_modules/bleno/node_modules/bluetooth-h                                                                                                                     ci-socket/build'
                CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
                SOLINK_MODULE(target) Release/obj.target/binding.node
                SOLINK_MODULE(target) Release/obj.target/binding.node: Finished
                COPY Release/binding.node
              make: Leaving directory '/home/root/node_modules/bleno/node_modules/bluetooth-hc                                                                                                                     i-socket/build'
              bleno@0.2.1 node_modules/bleno
              ├── bplist-parser@0.0.6
              ├── debug@2.2.0 (ms@0.7.1)
              └── bluetooth-hci-socket@0.3.3 (nan@2.0.9)
              root@vianney:~#
              root@vianney:~#  src / GZ Edison http://repo.opkg.net/edison/repo/edisonhciconfi                                                                                                                     g
              -sh: src: command not found
              root@vianney:~# echo

              root@vianney:~#  src / GZ Edison http://repo.opkg.net/edison/repo/edisonhciconfi                                                                                                                     g
              -sh: src: command not found
              root@vianney:~# rfkill unblock bluetooth
              root@vianney:~# killall bluetoothd (or, more permanently) systemctl disable blue                                                                                                                     tooth
              -sh: syntax error near unexpected token `('
              root@vianney:~# killall bluetoothd
              root@vianney:~# systemctl disable bluetooth
              rm '/etc/systemd/system/dbus-org.bluez.service'
              rm '/etc/systemd/system/bluetooth.target.wants/bluetooth.service'
              root@vianney:~# hciconfig hci0 up
              root@vianney:~# opkg install git
              Unknown package 'git'.
              Collected errors:
              * opkg_install_cmd: Cannot install package git.
              root@vianney:~# echo src all     http://iotdk.intel.com/repos/1.1/iotdk/all >> /                                                                                                                     etc/opkg/base-feeds.conf
              root@vianney:~# echo src x86 http://iotdk.intel.com/repos/1.1/iotdk/x86 >> /etc/                                                                                                                     opkg/base-feeds.conf
              root@vianney:~# echo src i586    http://iotdk.intel.com/repos/1.1/iotdk/i586 >>                                                                                                                      /etc/opkg/base-feeds.conf
              root@vianney:~# 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/allsrc/gz/Packages.gz.
              Downloading http://repo.opkg.net/edison/repo/allsrc/gz/Packages.gz.
              Downloading http://iotdk.intel.com/repos/1.1/iotdk/x86/Packages.
              Updated list of available packages in /var/lib/opkg/x86.
              Downloading http://iotdk.intel.com/repos/1.1/iotdk/i586/Packages.
              Updated list of available packages in /var/lib/opkg/i586.
              Downloading http://iotdk.intel.com/repos/1.1/intelgalactic/Packages.
              Updated list of available packages in /var/lib/opkg/maa-upm.
              Downloading http://iotdk.intel.com/repos/1.5/intelgalactic/Packages.
              Updated list of available packages in /var/lib/opkg/iotkit.
              Downloading http://iotdk.intel.com/repos/1.1/intelgalactic/Packages.
              Updated list of available packages in /var/lib/opkg/mraa-upm.
              Collected errors:
              * opkg_conf_parse_file: Duplicate src declaration (all http://iotdk.intel.com/r                                                                                                                     epos/1.1/iotdk/all). Skipping.
              * opkg_download: Failed to download http://repo.opkg.net/edison/repo/allsrc/gz/                                                                                                                     Packages.gz, wget returned 8.
              * opkg_download: Failed to download http://repo.opkg.net/edison/repo/allsrc/gz/                                                                                                                     Packages.gz, wget returned 8.
              root@vianney:~# opkg install git
              Installing git (1.9.0-r0) on root.
              Downloading http://iotdk.intel.com/repos/1.1/iotdk/i586/git_1.9.0-r0_i586.ipk.
              Configuring git.
              Collected errors:
              * opkg_conf_parse_file: Duplicate src declaration (all http://iotdk.intel.com/r                                                                                                                     epos/1.1/iotdk/all). Skipping.
              root@vianney:~# opkg install git
              Package git (1.9.0-r0) installed in root is up to date.
              Collected errors:
              * opkg_conf_parse_file: Duplicate src declaration (all http://iotdk.intel.com/repos/1.1/iotdk/all). Skipping.

              • 4. Re: GITHUB > intel edison
                vianney

                is it good???

                • 5. Re: GITHUB > intel edison
                  PabloM_Intel

                  Hi vianney,

                   

                  It should be this way:

                  echo src/gz all http://repo.opkg.net/edison/repo/all/ > /etc/opkg/base-feeds.conf
                   echo src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32/ >> /etc/opkg/base-feeds.conf
                   echo src/gz edison http://repo.opkg.net/edison/repo/edison/ >> /etc/opkg/base-feeds.conf
                  

                   

                  Remember that just one greater than sign (>) will overwrite any text that is in the file, and two greater than signs (>>) will append or add the new data to the existing text, it won’t delete the text that is already in the file.

                   

                  Also, make sure that the file names from the AlexT repo and the IoT repository don’t share the same names as it would probably give errors when downloading.

                   

                  Regards,

                  PabloM_Intel