From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Message-ID: From: Enrico =?ISO-8859-1?Q?J=F6rns?= Date: Tue, 16 Feb 2021 07:29:55 +0100 In-Reply-To: References: MIME-Version: 1.0 Subject: Re: [RAUC] RAUC dbus question List-Id: RAUC Project - Discussion List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0031602603==" Errors-To: rauc-bounces@pengutronix.de Sender: "RAUC" To: Gary Huband , "rauc@pengutronix.de" --===============0031602603== Content-Type: multipart/alternative; boundary="=-V8/3E7SdO0eYuzON7oqa" --=-V8/3E7SdO0eYuzON7oqa Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hi Gary, Am Montag, dem 15.02.2021 um 23:13 +0000 schrieb Gary Huband: > I have RAUC integrated with a Yocto Morty build (Linux 4.14) running on an > iMX7D (arm).  I'm trying to verify that the RAUC dbus interface is working, > but I get an error when I use dbus-send: do you do recent development on morty? This *very* old now. Don't you have to option to switch to a recent release? > # dbus-send --system --dest=de.pengutronix.rauc --type=method_call --print- > reply /de/pengutronix/rauc de.pengutronix.rauc.GetSlotStatusError > org.freedesktop.DBus.Error.UnknownMethod: No such interface > 'de.pengutronix.rauc' on object at path /de/pengutronix/rauc The proper call would be:    dbus-send --system --dest=de.pengutronix.rauc --type=method_call --print- reply / de.pengutronix.rauc.Installer.GetSlotStatus So, the issue is that the object path in RAUC is only "/", which is possible but actually not the convention for D-Bus interfaces and does not allow versioned interfaces, etc. In the documentation we have some examples using the D-Bus API with 'busctl': https://rauc.readthedocs.io/en/latest/using.html#using-the-d-bus-api Hope that helps? Best regards Enrico > When I try introspection: > > # dbus-send --system --dest=de.pengutronix.rauc --type=method_call --print- > reply /de/pengutronix/rauc org.freedesktop.DBus.Introspectable.Introspect > method return time=1605228956.729035 sender=:1.6 -> destination=:1.8 serial=8 > reply_serial=2 >    string " Introspection 1.0//EN" >                       > "http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd"> > > > > " > > The RAUC service is on the system bus: > > # dbus-send --system --dest=org.freedesktop.DBus --type=method_call --print- > reply /org/freedesktop/DBus org.freedesktop.DBus.ListNames > method return time=1605229469.748648 sender=org.freedesktop.DBus -> > destination=:1.13 serial=3 reply_serial=2 >    array [ >       string "org.freedesktop.DBus" >       string "org.freedesktop.login1" >       string "org.freedesktop.systemd1" >       string "de.pengutronix.rauc" >       string "org.freedesktop.Avahi" >       string ":1.13" >       string ":1.0" >       string ":1.1" >       string "org.freedesktop.network1" >       string ":1.2" >       string ":1.3" >       string "org.freedesktop.resolve1" >       string ":1.4" >       string ":1.6" >    ] > > Any help with what I am doing wrong is appreciated. > > Gary > > > Gary Huband > Sr. Software and Systems Engineer > > Office: 434.284.8071 x720 > Direct: 434.260.4995 > Gary@MissionSecure.com > > Follow Us! > LinkedIn  |  Blog  |  Website > > : : : : : : : : : : : : : : : : : : : : : : : : : : : > > MSi > > This email and any files transmitted with it are confidential and proprietary > and intended solely for the use of the individual or entity to whom they are > addressed. Any dissemination, distribution or copying of this communication is > strictly prohibited without our prior permission. If you received this in > error, please contact the sender and delete the material from any computer. > > _______________________________________________ > RAUC mailing list -- Pengutronix e.K.                           | Enrico Jörns                | Embedded Linux Consulting & Support        | https://www.pengutronix.de/ | Steuerwalder Str. 21                       | Phone: +49-5121-206917-180  | 31137 Hildesheim, Germany                  | Fax:   +49-5121-206917-9    | --=-V8/3E7SdO0eYuzON7oqa Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi Gary,

Am Montag, dem 15.= 02.2021 um 23:13 +0000 schrieb Gary Huband:
I have= RAUC integrated with a Yocto Morty build (Linux 4.14) running on an iMX7D = (arm).  I'm trying to verify that the RAUC dbus interface is working, = but I get an error when I use dbus-send:

<= div>do you do recent development on morty? This *very* old now. Don't you h= ave to option to switch to a recent release?

# dbus-send --system --dest=3Dde.pengutronix.rauc --type=3Dmethod= _call --print-reply /de/pengutronix/rauc de.pengutronix.rauc.GetSlotStatusE= rror org.freedesktop.DBus.Error.UnknownMethod: No such interface 'de.pengut= ronix.rauc' on object at path /de/pengutronix/rauc
<= br>
The proper call would be:

  &nb= sp;dbus-send --system --dest=3Dde.pengutronix.rauc --type=3Dmethod_call --p= rint-reply / de.pengutronix.rauc.Installer.GetSlotStatus

So, the issue is that the object path in RAUC is only "/", which is = possible but actually not the convention for D-Bus interfaces and does not = allow versioned interfaces, etc.

In the documentat= ion we have some examples using the D-Bus API with 'busctl': h= ttps://rauc.readthedocs.io/en/latest/using.html#using-the-d-bus-api


Hope that helps?

<= div>Best regards

Enrico

When I try introspection:

# dbus-send --system --dest=3Dde.p= engutronix.rauc --type=3Dmethod_call --print-reply /de/pengutronix/rauc org= .freedesktop.DBus.Introspectable.Introspect
method return time=3D160522= 8956.729035 sender=3D:1.6 -> destination=3D:1.8 serial=3D8 reply_serial= =3D2
   string "<!DOCTYPE node PUBLIC "-//freedeskto= p//DTD D-BUS Object Introspection 1.0//EN"
      &= nbsp;               "http://www.freedesk= top.org/standards/dbus/1.0/introspect.dtd">
<!-- GDBus 2.54= .3 -->
<node>
</node>
"

The RAUC s= ervice is on the system bus:

# dbus-send --system --dest=3Dorg.freedesktop= .DBus --type=3Dmethod_call --print-reply /org/freedesktop/DBus org.freedesk= top.DBus.ListNames
method return time=3D1605229469.748648 sender=3Dorg.= freedesktop.DBus -> destination=3D:1.13 serial=3D3 reply_serial=3D2
   array [
      string "org.freed= esktop.DBus"
      string "org.freedesktop.login1"=
      string "org.freedesktop.systemd1"
      string "de.pengutronix.rauc"
    =   string "org.freedesktop.Avahi"
      string= ":1.13"
      string ":1.0"
  &nbs= p;   string ":1.1"
      string "org.freedesk= top.network1"
      string ":1.2"
 =     string ":1.3"
      string "org.fre= edesktop.resolve1"
      string ":1.4"
&= nbsp;     string ":1.6"
   ]

Any help with what I= am doing wrong is appreciated.

Gary


Gary Huband
Sr. Software and Systems Engineer

Office: 434.28= 4.8071 x720
Direct: 434.260.4995
Gary@MissionSecure.com
<= /div>

Follow Us!
LinkedIn  = ;|  Blo= g  |  Website

: : : : : : : : : : : : : : : : : : : : : : : := : : :

=3D"MSi"

This email and any files transmitted= with it are confidential and proprietary and intended solely for the use o= f the individual or entity to whom they are addressed. Any dissemination, d= istribution or copying of this communication is strictly prohibited without= our prior permission. If you received this in error, please contact the se= nder and delete the material from any computer.

=
_______________________________________________
RAUC mailing=
 list

-- 
Pengutronix e.K.   &nb=
sp;            =
           | Enrico =
J=C3=B6rns           =
;     |
Embedded Linux Consulting & =
Support        | 
https://ww=
w.pengutronix.de/ |
Steuerwalder Str. 21  &nb=
sp;            =
        | Phone: +49-5121-206917-18=
0  |
31137 Hildesheim, Germany    &=
nbsp;           &nbs=
p; | Fax:   +49-5121-206917-9    |<=
/pre>
--=-V8/3E7SdO0eYuzON7oqa-- --===============0031602603== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ RAUC mailing list --===============0031602603==--