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: README.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,12 +79,21 @@ For this information to propagate to the cloud, the 3 macros (`BOOTLOADER_ARM_SO
79
79
1.`BOOTLOADER_OEM_SOURCE_HASH` is used to indicate any modification that OEMs have made on top of the vanilla mbed-bootloader. Hence it should be populated with the OEM modified bootloader SHA-1 git commit hash.
80
80
1.`BOOTLOADER_STORAGE_LAYOUT` is a proprietary enum to indicate the storage layout supported by this bootloader. The OEM is free to define the meaning of this number.
81
81
82
-
In order for the cloud client to recognise this struct and obtain the information. The offset of the symbol in the bootloader binary needs to be populated in the cloud client's configuration file:
83
-
1. Compile the bootloader. Flash and run the bootloader. On the serial UART you will see the following printout:
82
+
In order for the cloud client to recognise this struct and obtain the information. The offset of the symbol in the bootloader binary needs to be populated in the cloud client's configuration file. This information can be obtained from the map file of the compiled bootloader.
84
83
85
-
> Layout: <layout_no> <boot_loader_info_address>
86
-
1. Keep a note of the `boot_loader_info_address` which we will use in the next step.
87
-
1. In the `mbed_app.json` of the Pelion Cloud Client Application, change the following: `"update-client.bootloader-details" : "<boot_loader_info_address>"`
84
+
1. Example python code for obtaining the location:
85
+
```python
86
+
withopen("BUILD/UBLOX_EVK_ODIN_W2/GCC_ARM/mbed-bootloader.map", 'r') as fd:
0 commit comments