[riot-notifications] [RIOT-OS/RIOT] riotboot: implement serial flasher (#15493)

benpicco notifications at github.com
Mon Jul 5 00:36:41 CEST 2021


@benpicco commented on this pull request.



> +    if (!IS_USED(MODULE_RIOTBOOT_SLOT)) {
+        return -1;
+    }
+
+    for (unsigned i = 0; i < riotboot_slot_numof; i++) {
+        const riotboot_hdr_t *riot_hdr = riotboot_slot_get_hdr(i);
+        if (riotboot_slot_validate(i)) {
+            /* skip slot if metadata broken */
+            continue;
+        }
+        if (riot_hdr->start_addr != riotboot_slot_get_image_startaddr(i)) {
+            continue;
+        }
+        if (slot == -1 || riot_hdr->version > version) {
+            version = riot_hdr->version;
+            slot = i;
+        }
+    }

It's supported but there is no build system integration. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15493#discussion_r663565418
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210704/5b1ba9a0/attachment.htm>


More information about the notifications mailing list