mail archive of the rauc mailing list
 help / color / mirror / Atom feed
* [RAUC] Caught an error while installing bundle
@ 2017-02-28 12:27 caglar.kilimci
  2017-02-28 13:47 ` Enrico Joerns
  0 siblings, 1 reply; 5+ messages in thread
From: caglar.kilimci @ 2017-02-28 12:27 UTC (permalink / raw)
  To: rauc

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-02-28 15:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-28 12:27 [RAUC] Caught an error while installing bundle caglar.kilimci
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox