Giter Club home page Giter Club logo

Comments (4)

mpvader avatar mpvader commented on July 27, 2024 1

Found it. The problem is in /etc/dbus-1/system.conf, and then the lines:

  <!-- This is a setuid helper that is used to launch system services -->
  <servicehelper>/usr/libexec/dbus-daemon-launch-helper</servicehelper>

That program is there on the ccgx. But on BBB it is elsewhere. Changing those lines into this fixes it:

  <!-- This is a setuid helper that is used to launch system services -->
  <servicehelper>/usr/lib/dbus/dbus-daemon-launch-helper</servicehelper>

Background: D-Bus can start services/executables. Service definitions are here:

root@venus:~# cat /usr/share/dbus-1/system-services/fi.w1.wpa_supplicant1.service 
[D-BUS Service]
Name=fi.w1.wpa_supplicant1
Exec=/usr/sbin/wpa_supplicant -u
User=root
SystemdService=wpa_supplicant.service

Command to start it from command line:

root@venus:~# dbus-send --system --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.StartServiceByName string:fi.w1.wpa_supplicant1 uint32:0
Error org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program fi.w1.wpa_supplicant1: Success

from venus.

scottellis avatar scottellis commented on July 27, 2024

Another data point.

The kernel detects and instantiates the wlan0 device whether the dongle is attached at boot or at runtime.

If the USB Wifi dongle is attached at boot, dbus sees it also.

root@venus:~# uname -a
Linux venus 4.1.14-venus #1 Thu Dec 10 04:51:20 EST 2015 armv7l GNU/Linux

root@venus:~# dbus -y net.connman
/
/net
/net/connman
/net/connman/service
/net/connman/service/ethernet_c8a030a69fbd_cable
/net/connman/technology
/net/connman/technology/ethernet
/net/connman/technology/wifi

root@venus:~# dbus -y net.connman /net/connman/technology/wifi GetProperties
properties = {'Connected': False,
 'Name': 'WiFi',
 'Powered': False,
 'Tethering': False,
 'Type': 'wifi'}

root@venus:~# dbus -y net.connman /net/connman/technology/wifi Scan
Traceback (most recent call last):
  File "/usr/bin/dbus", line 364, in <module>
    ret = obj.object.get_dbus_method(method.name, iface.name)(*args)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: net.connman.Error.NotSupported: Not supported

from venus.

mpvader avatar mpvader commented on July 27, 2024

Error on the bbb in messages:

Activated service 'fi.w1.wpa_supplicant1' failed: Failed to execute program fi.w1.wpa_supplicant1: Success

From bbb, while no wifi dongle is inserted:

root@venus:~# cat /etc/version
20151206211337
root@venus:~# cat /var/log/messages
....
Dec 10 21:19:03 venus daemon.info connmand[938]: eth0 {create} index 2 type 1 <ETHER>
Dec 10 21:19:03 venus daemon.info connmand[938]: eth0 {update} flags 69699 <UP,RUNNING,LOWER_UP>
Dec 10 21:19:03 venus daemon.info connmand[938]: eth0 {newlink} index 2 address 6C:EC:EB:5C:71:2B mtu 1500
Dec 10 21:19:03 venus daemon.info connmand[938]: eth0 {newlink} index 2 operstate 6 <UP>
Dec 10 21:19:03 venus daemon.notice dbus[820]: [system] Activated service 'fi.w1.wpa_supplicant1' failed: Failed to execute program fi.w1.wpa_supplicant1: Success
Dec 10 21:19:03 venus daemon.info connmand[938]: Adding interface eth0 [ ethernet ]
Dec 10 21:19:03 venus daemon.info connmand[938]: can0 {newlink} index 3 address 00:00:00:00:00:00 mtu 16
Dec 10 21:19:03 venus daemon.info connmand[938]: can0 {newlink} index 3 operstate 6 <UP>
Dec 10 21:19:03 venus daemon.info connmand[938]: can1 {newlink} index 4 address 00:00:00:00:00:00 mtu 16
Dec 10 21:19:03 venus daemon.info connmand[938]: can1 {newlink} index 4 operstate 2 <DOWN>
....

from /data/log/messages on ccgx (while no wifi dongle is inserted):

Dec 11 12:58:15 CCGX daemon.info connmand[1082]: eth0 {update} flags 4099 <UP>
Dec 11 12:58:15 CCGX daemon.info connmand[1082]: eth0 {newlink} index 4 address 90:59:AF:69:D8:20 mtu 1500
Dec 11 12:58:15 CCGX daemon.info connmand[1082]: eth0 {newlink} index 4 operstate 2 <DOWN>
Dec 11 12:58:15 CCGX daemon.info connmand[1082]: Adding interface eth0 [ ethernet ]
Dec 11 12:58:15 CCGX daemon.notice dbus[1043]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
Dec 11 12:58:16 CCGX daemon.info connmand[1082]: eth0 {add} route ff00:: gw :: scope 0 <UNIVERSE>
Dec 11 12:58:16 CCGX daemon.info connmand[1082]: eth0 {add} route fe80:: gw :: scope 0 <UNIVERSE>
Dec 11 12:58:16 CCGX daemon.info connmand[1082]: eth0 {update} flags 69699 <UP,RUNNING,LOWER_UP>

from venus.

mpvader avatar mpvader commented on July 27, 2024

changed system.conf file added here:
victronenergy/meta-victronenergy-overlay@46a4f5b

from venus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.