mail archive of the rauc mailing list
 help / color / mirror / Atom feed
From: <caglar.kilimci@accenture.com>
To: rauc@pengutronix.de
Subject: [RAUC] Caught an error while installing bundle
Date: Tue, 28 Feb 2017 12:27:27 +0000	[thread overview]
Message-ID: <8795503617fa4662a9fa7e80e75654f7@BL2PR4205MB0417.048d.mgd.msft.net> (raw)

Hi all,

First of all thank you such an amazing product. I am really happy to found it.

I have been working on an embedded device which has barebox bootloader and would like to update via RAUC. I have successfully build rauc with meta-ptx layer and I can run rauc on device. In addition, I have created RAUC bundle in my development environment and copied into the device. Even if everything seems fine, I got below error when I would like to install bundle:
# rauc install update-2017.02-1.raucb

** (rauc:525): WARNING **: installer is NULL


(rauc:525): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(rauc:525): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

** (rauc:525): ERROR **: failed to connect properties-changed signal caught at main
Trace/breakpoint trap


I made small change to debug some but I could not go further:
diff --git a/src/main.c b/src/main.c
index 6444c49..801bb8c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -137,9 +137,14 @@ static gboolean install_start(int argc, char **argv)
                installer = r_installer_proxy_new_for_bus_sync(G_BUS_TYPE_SYSTEM,
                        G_DBUS_PROXY_FLAGS_GET_INVALIDATED_PROPERTIES,
                        "de.pengutronix.rauc", "/", NULL, NULL);
+               if (NULL != installer) {
+                       g_print("installer is OK\n");
+               } else {
+                       g_warning("installer is NULL\n");
+               }
                if (g_signal_connect(installer, "g-properties-changed",
                                     G_CALLBACK(on_installer_changed), args) <= 0) {
-                       g_error("failed to connect properties-changed signal");
+                       g_error("failed to connect properties-changed signal caught at main");
                        goto out_loop;
                }
                if (g_signal_connect(installer, "completed",
diff --git a/test/service.c b/test/service.c
index 80fb229..c3808dc 100644
--- a/test/service.c
+++ b/test/service.c
@@ -51,7 +51,7 @@ static void service_test_status(ServiceFixture *fixture, gconstpointer user_data
                "de.pengutronix.rauc", "/", NULL, NULL);
        if (g_signal_connect(installer, "g-properties-changed",
                             G_CALLBACK(on_installer_changed), NULL) <= 0) {
-               g_error("failed to connect properties-changed signal");
+               g_error("failed to connect properties-changed signal caught at test service");
                goto out;
        }
        if (g_signal_connect(installer, "completed",


Here is my system.conf:
[system]
compatible=mydevice
bootloader=barebox
mountprefix=/mnt/rauc

[keyring]
path=/etc/rauc/openssl-ca/dev-ca.pem

[slot.rootfs.0]
device=/dev/mmcblk0p2
type=ext4
bootname=A

[slot.rootfs.1]
device=/dev/mmcblk0p3
type=ext4
bootname=B


Here is my manifest file:
[update]
compatible= mydevice
version=2017.02-1

[image.rootfs]
sha256=265c87e5784fb1ae93fd825f78e6aca0ecd454039019a27e038699d2af311b75
size=935329792
filename=rootfs.ext4


So, what am I missing? Thank you for your help.

Sincerely,
Caglar

________________________________

This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com

_______________________________________________
RAUC mailing list

             reply	other threads:[~2017-02-28 12:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-28 12:27 caglar.kilimci [this message]
2017-02-28 13:47 ` Enrico Joerns
2017-02-28 14:24   ` caglar.kilimci
2017-02-28 14:59     ` Enrico Joerns
2017-02-28 15:44       ` caglar.kilimci

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8795503617fa4662a9fa7e80e75654f7@BL2PR4205MB0417.048d.mgd.msft.net \
    --to=caglar.kilimci@accenture.com \
    --cc=rauc@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox