You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: content/en/docs/device-provisioning/container-management/_index.md
+6-3
Original file line number
Diff line number
Diff line change
@@ -30,11 +30,13 @@ When one of the cloud connector components, such as leda-contrib-cloud-connector
30
30
- `namespace` is `azure.edge` for Kanto's Azure Cloud Connector
31
31
- `gatewayId` indicates the hostname of the Azure IoT Hub
32
32
- `deviceId` is the identifier for the device, this can either be part of the Azure Connection String or part of the device authentication certificate (CN)
33
-
- `<tenantId>` is a configuration setting in the cloud connector
33
+
- `tenantId` is a configuration setting in the cloud connector
34
34
35
35
> **Note:** You can simulate the cloud connector trigger by issueing the MQTT message manually on command line:
Copy file name to clipboardexpand all lines: content/en/docs/device-provisioning/self-update/rauc-integration.md
+17-11
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,13 @@ Leda integrates [RAUC](https://rauc.io/) as a reference implementation and examp
10
10
11
11
Get the current RAUC boot status:
12
12
13
-
rauc status
14
-
13
+
```shell
14
+
rauc status
15
+
```
15
16
16
17
Example output:
17
-
```
18
+
19
+
```shell
18
20
root@qemux86-64:~# rauc status
19
21
=== System Info ===
20
22
Compatible: Eclipse Leda qemu86-64
@@ -40,7 +42,7 @@ x [rootfs.0] (/dev/sda4, ext4, booted)
40
42
41
43
To manually force the device to boot into another slot, mark the current booted slot as *bad*, mark the other partitions as *active* and perform a reboot:
42
44
43
-
```
45
+
```shell
44
46
rauc status mark-bad booted
45
47
rauc status mark-active other
46
48
reboot now
@@ -50,14 +52,15 @@ reboot now
50
52
51
53
By marking both root slots as bad, the bootloader is supposed to boot the rescue system:
52
54
53
-
```
55
+
```shell
54
56
rauc status mark-bad rootfs.0
55
57
rauc status mark-bad rootfs.1
56
58
reboot now
57
59
```
58
60
59
61
Example output of rauc:
60
-
```
62
+
63
+
```shell
61
64
o [rootfs.1] (/dev/sda5, ext4, inactive)
62
65
bootname: B
63
66
boot status: bad
@@ -78,10 +81,11 @@ The configurations can be customized by applying or patching the following files
78
81
79
82
## RAUC System Configuration
80
83
81
-
The [RAUC System Configuration](https://rauc.readthedocs.io/en/latest/integration.html#rauc-system-configuration) is the central configuration of the RAUC Update system.
84
+
The [RAUC System Configuration](https://rauc.readthedocs.io/en/latest/integration.html#rauc-system-configuration) is the central configuration of the RAUC Update system.
82
85
83
86
Example:
84
-
```
87
+
88
+
```shell
85
89
[system]
86
90
compatible=Eclipse Leda qemu86-64
87
91
bootloader=grub
@@ -120,7 +124,8 @@ The GRUB bootloader has a configuration file which describes which partitions ar
120
124
The configuration also contains **RAUC specific logic and variables required for a proper integration**. Please see the full `grub.cfg` in the source repository and [RAUC Documentation - Integration - GRUB](https://rauc.readthedocs.io/en/latest/integration.html#grub) for details.
121
125
122
126
Excerpt:
123
-
```
127
+
128
+
```text
124
129
...
125
130
126
131
menuentry "SDV Slot A (OK=$SDV_A_OK TRY=$SDV_A_TRY)" {
@@ -152,8 +157,9 @@ These disk images are machine specific and the structure of the partitions are c
152
157
153
158
### Excerpt `qemux86-grub-efi.wks`
154
159
155
-
*Note: The excerpt is exemplary, please see the sources for a full representation and documentation.*
156
-
```
160
+
*Note: The excerpt is exemplary, please see the sources for a full representation and documentation.*
161
+
162
+
```text
157
163
bootloader --ptable gpt
158
164
159
165
part --fixed-size 50M --source rawcopy --sourceparams="file=efi-boot.vfat" --fstype=vfat --label boot --active
- On host: Update bundle `sdv-rauc-bundle-qemux86-64.raucb` is in current folder
14
14
15
-
*Note: In the development environment, the update RAUC Update Bundle is located in the BitBake machine-specific output folder, for example `tmp/deploy/images/qemux86-64`*
15
+
*Note: In the development environment, the update RAUC Update Bundle is located in the BitBake machine-specific output folder
16
+
Example location is `tmp/deploy/images/qemux86-64`*
17
+
16
18
- On host: Start a dummy web server for serving the update file
17
19
18
-
python3 -m http.server --bind 192.168.7.1
20
+
```shell
21
+
python3 -m http.server --bind 192.168.7.1
22
+
```
19
23
20
24
- On host: open two new terminals - one for monitoring and one for triggering the self-update
21
25
22
-
- Terminal 1: To view the progress, watch the MQTT topics `selfupdate/desiredstate` and `selfupdate/desiredstatefeedback`:
26
+
- Terminal 1: To view the progress, watch the MQTT topics `selfupdate/desiredstate` and `selfupdate/desiredstatefeedback`:
- On guest: After the self update process completed, check the status:
32
40
33
-
rauc status --detailed
41
+
```shell
42
+
rauc status --detailed
43
+
```
34
44
35
45
## Self-Update Trigger Message
36
46
@@ -45,6 +55,7 @@ This chapter describes the steps necessary to perform a local (without cloud) se
45
55
1. Initial response message on startup from self update agent in topic `selfupdate/currentstate`, or upon request by sending message to `selfupdate/currentstate/get`
46
56
47
57
Request:
58
+
48
59
```json
49
60
{
50
61
"activityId": "<uuid>",
@@ -53,6 +64,7 @@ This chapter describes the steps necessary to perform a local (without cloud) se
53
64
```
54
65
55
66
Response:
67
+
56
68
```json
57
69
{
58
70
"activityId": "<uuid>",
@@ -73,7 +85,6 @@ This chapter describes the steps necessary to perform a local (without cloud) se
73
85
}
74
86
```
75
87
76
-
77
88
### Desired State
78
89
79
90
1. External trigger to update via desired state on topic `selfupdate/desiredstate`:
@@ -212,4 +223,4 @@ This chapter describes the steps necessary to perform a local (without cloud) se
0 commit comments