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: doc_source/portingguide/afr-porting-ota.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ With FreeRTOS over\-the\-air \(OTA\) updates, you can do the following:
8
8
+ Debug a failed deployment\.
9
9
+ Digitally sign firmware using Code Signing for AWS IoT\.
10
10
11
-
For more information, see [FreeRTOS Over\-the\-Air Updates](https://docs.aws.amazon.com/freertos/latest/userguide/freertos-ota-dev.html) in the *FreeRTOS User Guide* along with the [AWS IoT Over\-the\-air Update Documentation](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/index.html)\.
11
+
For more information, see [FreeRTOS Over\-the\-Air Updates](https://docs.aws.amazon.com/freertos/latest/userguide/freertos-ota-dev.html) in the *FreeRTOS User Guide* along with the [AWS IoT Over\-the\-air Update Documentation](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/index.html)\.
12
12
13
13
You can use the OTA update library to integrate OTA functionality into your FreeRTOS applications\. For more information, see [FreeRTOS OTA update Library](https://docs.aws.amazon.com/freertos/latest/userguide/ota-update-library.html) in the *FreeRTOS User Guide*\.
Copy file name to clipboardexpand all lines: doc_source/portingguide/afr-porting-pkcs.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ To port the corePKCS11 library, you need the following:
48
48
1. Add support for a cryptographically random entropy source to your port:
49
49
+ If your ports use the mbedTLS library for underlying cryptographic and TLS support, and your device has a true random number generator \(TRNG\):
50
50
51
-
1. Implement the [mbedtls\_hardware\_poll\(\)](https://github.com/ARMmbed/mbedtls/blob/master/library/entropy_poll.h#L49-L60) function to seed the deterministic random bit generator \(DRBG\) that mbedTLS uses to produce a cryptographically random bit stream\. The `mbedtls_hardware_poll()` function is located in `freertos/vendors/vendor/boards/board/ports/pkcs11/core_pkcs11_pal.c`\.
51
+
1. Implement the [ mbedtls\_hardware\_poll\(\)](https://github.com/ARMmbed/mbedtls/blob/master/library/entropy_poll.h#L49-L60) function to seed the deterministic random bit generator \(DRBG\) that mbedTLS uses to produce a cryptographically random bit stream\. The `mbedtls_hardware_poll()` function is located in `freertos/vendors/vendor/boards/board/ports/pkcs11/core_pkcs11_pal.c`\.
52
52
+ If your ports use the mbedTLS library for underlying cryptographic and TLS support, but your device does not have a TRNG:
53
53
54
54
1. Make a copy of `freertos/libraries/3rdparty/mbedtls/include/mbedtls/config.h`, and in that copy, uncomment `MBEDTLS_ENTROPY_NV_SEED`, and comment out `MBEDTLS_ENTROPY_HARDWARE_ALT`\.
@@ -57,7 +57,7 @@ To port the corePKCS11 library, you need the following:
57
57
58
58
1. Implement the functions `mbedtls_nv_seed_poll()`, `nv_seed_read_func()`, and `nv_seed_write_func()`\.
59
59
60
-
For information about implementing these functions, see the comments in the [mbedtls/library/mbedtls/entropy\_poll\.h](https://github.com/ARMmbed/mbedtls/blob/master/library/entropy_poll.h#L62-L70) and [ mbedtls/include/mbedtls/platform\.h](https://github.com/ARMmbed/mbedtls/blob/master/include/mbedtls/platform.h#L315-L355) mbedTLS header files\.
60
+
For information about implementing these functions, see the comments in the [ mbedtls/library/mbedtls/entropy\_poll\.h](https://github.com/ARMmbed/mbedtls/blob/master/library/entropy_poll.h#L62-L70) and [ mbedtls/include/mbedtls/platform\.h](https://github.com/ARMmbed/mbedtls/blob/master/include/mbedtls/platform.h#L315-L355) mbedTLS header files\.
61
61
**Important**
62
62
A seed file with an NIST\-approved entropy source must be supplied to the device at manufacturing time\.
Copy file name to clipboardexpand all lines: doc_source/portingguide/afr-porting-wifi.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ In the following steps, make sure that you add the source files to your IDE proj
50
50
51
51
1. Add the source file `freertos/vendors/vendor/boards/board/ports/wifi/iot_wifi.c` to your `aws_tests` IDE project\.
52
52
53
-
1. Add the source file `aws_test_wifi.c` to the `aws_tests` IDE project\.
53
+
1. Add the source files `iot_test_wifi.c` and `iot_test_wifi.h` to the `aws_tests` IDE project\.
54
54
55
55
### Configuring the `CMakeLists.txt` file<aname="testing-cmake-wifi"></a>
56
56
@@ -84,7 +84,7 @@ After you set up the library in the IDE project, you need to configure some othe
84
84
1. Open `freertos/tests/include/aws_clientcredential.h`, and set the macros in the following table for the first AP\.
85
85
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/freertos/latest/portingguide/afr-porting-wifi.html)
86
86
87
-
1. Open `freertos/libraries/abstractions/wifi/test/aws_test_wifi.h`, and set the macros in the following table for the second AP\.
87
+
1. Open `freertos/libraries/abstractions/wifi/test/iot_test_wifi.h`, and set the macros in the following table for the second AP\.
88
88
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/freertos/latest/portingguide/afr-porting-wifi.html)
89
89
90
90
1. To enable the Wi\-Fi tests, open `freertos/vendors/vendor/boards/board/aws_tests/config_files/aws_test_runner_config.h`, and set the `testrunnerFULL_WIFI_ENABLED` to `1`\.
1.[AWS Blog on OTA updates over Bluetooth Low Energy](https://aws.amazon.com/blogs/iot/perform-ota-firmware-updates-on-espressif-esp32-devices-using-amazon-freertos-bluetooth-low-energy-mqtt-proxy/)\.
468
+
1.[AWS Blog on OTA updates over Bluetooth Low Energy](https://aws.amazon.com/blogs/iot/perform-ota-firmware-updates-on-espressif-esp32-devices-using-amazon-freertos-bluetooth-low-energy-mqtt-proxy/)\.
Copy file name to clipboardexpand all lines: doc_source/portingguide/porting-ca-config.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Save the following text to a file named `ca.config` in your current working directory\.
4
4
5
-
This file is a modified version of the [`openssl.cnf`](https://github.com/openssl/openssl/blob/master/apps/openssl.cnf) OpenSSL example configuration file\.
5
+
This file is a modified version of the [https://github.com/openssl/openssl/blob/master/apps/openssl.cnf](https://github.com/openssl/openssl/blob/master/apps/openssl.cnf) OpenSSL example configuration file\.
Copy file name to clipboardexpand all lines: doc_source/portingguide/porting-create-project.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Eclipse generates an additional `includes` folder\. This folder is not a part of
23
23
24
24
1. Import all of the header files in the `freertos/vendors/vendor/boards/board/aws_tests/config_files` directory into the `aws_tests/config_files` virtual folder in your IDE\.
25
25
**Note**
26
-
If you are not porting a specific library, you do not need to import the files for that library into your project\. For example, if you are not porting the OTA library, you can leave out the `aws_ota_agent_config.h` and `aws_test_ota_config.h` files\. If you are not porting the Wi\-Fi library, you can leave out the `aws_test_wifi_config.h` and `aws_wifi_config.h` files\.
26
+
If you are not porting a specific library, you do not need to import the files for that library into your project\. For example, if you are not porting the OTA library, you can leave out the `aws_ota_agent_config.h` and `aws_test_ota_config.h` files\. If you are not porting the Wi\-Fi library, you can leave out the `iot_test_wifi.h` and `iot_test_wifi.c` files\.
27
27
28
28
1. Import the required libraries in `freertos/libraries` and its subdirectories into the `aws_tests` IDE project, including any required third\-party libraries\. For information on the required libraries please follow the [FreeRTOS porting flowchart](https://docs.aws.amazon.com/freertos/latest/portingguide/porting-chart.html)\. Information about which FreeRTOS libraries depend on third\-party libraries that need to be included in addition to the test project is provided in the specific library's porting section\.
Copy file name to clipboardexpand all lines: doc_source/portingguide/porting-migration-ota-pal.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ The Over\-the\-air Updates Library introduced some changes in the folder structu
4
4
5
5
## Changes to OTA PAL<aname="porting-migration-ota-pal-changes"></a>
6
6
+ The OTA PAL port directory name has been updated from `ota` to `ota_pal_for_aws`\. This folder must contain 2 files: `ota_pal.c` and `ota_pal.h`\. The PAL header file `libraries/freertos_plus/aws/ota/src/aws_iot_ota_pal.h` has been deleted from the OTA library and must be defined inside the port\.
7
-
+ The return codes \(`OTA_Err_t`\) are translated into an enum `OTAMainStatus_t`\. Refer to [ota\_platform\_interface\.h](https://github.com/aws/ota-for-aws-iot-embedded-sdk/blob/v3.0.0/source/include/ota_platform_interface.h#L68-L90) for translated return codes\.[ Helper macros](https://github.com/aws/ota-for-aws-iot-embedded-sdk/blob/666241d0f643b07d5146a3715b649d80f8135e0b/source/include/ota_platform_interface.h#L105-L111) are also provided to combine `OtaPalMainStatus` and `OtaPalSubStatus` codes and extract `OtaMainStatus` from `OtaPalStatus` and similar\.
7
+
+ The return codes \(`OTA_Err_t`\) are translated into an enum `OTAMainStatus_t`\. Refer to [ ota\_platform\_interface\.h](https://github.com/aws/ota-for-aws-iot-embedded-sdk/blob/v3.0.0/source/include/ota_platform_interface.h#L68-L90) for translated return codes\.[ Helper macros](https://github.com/aws/ota-for-aws-iot-embedded-sdk/blob/666241d0f643b07d5146a3715b649d80f8135e0b/source/include/ota_platform_interface.h#L105-L111) are also provided to combine `OtaPalMainStatus` and `OtaPalSubStatus` codes and extract `OtaMainStatus` from `OtaPalStatus` and similar\.
The file `aws_ota_agent_config.h` was renamed to [`ota_config.h`](https://github.com/aws/amazon-freertos/blob/main/vendors/pc/boards/windows/aws_demos/config_files/ota_config.h) which changes the include guards from `_AWS_OTA_AGENT_CONFIG_H_` to `OTA_CONFIG_H_`\.
101
+
The file `aws_ota_agent_config.h` was renamed to [https://github.com/aws/amazon-freertos/blob/main/vendors/pc/boards/windows/aws_demos/config_files/ota_config.h](https://github.com/aws/amazon-freertos/blob/main/vendors/pc/boards/windows/aws_demos/config_files/ota_config.h) which changes the include guards from `_AWS_OTA_AGENT_CONFIG_H_` to `OTA_CONFIG_H_`\.
102
102
+ The file `aws_ota_codesigner_certificate.h` has been deleted\.
103
103
+ Included the new logging stack to print debug messages:
104
104
@@ -135,7 +135,7 @@ The file `aws_ota_agent_config.h` was renamed to [ `ota_config.h`](https://githu
**New File:**[`ota_demo_config.h`](https://github.com/aws/amazon-freertos/blob/main/vendors/pc/boards/windows/aws_demos/config_files/ota_demo_config.h) contains the configs that are required by the OTA demo such as the code signing certificate and application version\.
138
+
**New File:**[https://github.com/aws/amazon-freertos/blob/main/vendors/pc/boards/windows/aws_demos/config_files/ota_demo_config.h](https://github.com/aws/amazon-freertos/blob/main/vendors/pc/boards/windows/aws_demos/config_files/ota_demo_config.h) contains the configs that are required by the OTA demo such as the code signing certificate and application version\.
139
139
+`signingcredentialSIGNING_CERTIFICATE_PEM` which was defined in `demos/include/aws_ota_codesigner_certificate.h` has been moved to `ota_demo_config.h` as `otapalconfigCODE_SIGNING_CERTIFICATE` and can can be accessed from the PAL files as:
140
140
141
141
```
@@ -184,5 +184,5 @@ Use this checklist to make sure you follow the steps required for migration:
184
184
+ Update the printing macros to use the logging stack\.
185
185
+ Update the `signingcredentialSIGNING_CERTIFICATE_PEM` to be `otapalconfigCODE_SIGNING_CERTIFICATE`\.
186
186
+ Update `otaPal_CheckFileSignature` and `otaPal_ReadAndAssumeCertificate` function comments\.
187
-
+ Update the [ `CMakeLists.txt`](https://github.com/aws/amazon-freertos/pull/3208/commits/432e13fcb8dfbfeb6de25110a3d2ea14ccaf1b9a) file\.
187
+
+ Update the [https://github.com/aws/amazon-freertos/pull/3208/commits/432e13fcb8dfbfeb6de25110a3d2ea14ccaf1b9a](https://github.com/aws/amazon-freertos/pull/3208/commits/432e13fcb8dfbfeb6de25110a3d2ea14ccaf1b9a) file\.
The return is changed from OTA agent state to OTA error code\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 : OtaErr\_t](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga7ab3c74dc057383c56c6cb9aa6bf0b2d)\.
197
+
The return is changed from OTA agent state to OTA error code\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 : OtaErr\_t](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga7ab3c74dc057383c56c6cb9aa6bf0b2d)\.
@@ -222,7 +222,7 @@ Flag to indicate if unsubscribe operations should be performed from the job topi
222
222
223
223
**Changes in return \-**
224
224
OtaState\_t \-
225
-
The enum for OTA Agent state and its members are renamed\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga1cb476a5e0ee81fa486f605e64419dcc)\.
225
+
The enum for OTA Agent state and its members are renamed\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga1cb476a5e0ee81fa486f605e64419dcc)\.
The enum for OTA Agent state and its members are renamed\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga1cb476a5e0ee81fa486f605e64419dcc)\.
245
+
The enum for OTA Agent state and its members are renamed\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga1cb476a5e0ee81fa486f605e64419dcc)\.
The return OTA error code enum is changed and new error codes are added\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 : OtaErr\_t](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga7ab3c74dc057383c56c6cb9aa6bf0b2d)\.
299
+
The return OTA error code enum is changed and new error codes are added\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 : OtaErr\_t](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga7ab3c74dc057383c56c6cb9aa6bf0b2d)\.
OtaErr_t OTA_SetImageState( OtaImageState_t state );
323
323
```
324
-
The input parameter is renamed to OtaImageState\_t\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#gad4909faa8b9c8672e7f7bef1bc6b5b84)\.
325
-
The return OTA error code enum is changed and new error codes are added\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 / OtaErr\_t](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga7ab3c74dc057383c56c6cb9aa6bf0b2d)\.
324
+
The input parameter is renamed to OtaImageState\_t\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#gad4909faa8b9c8672e7f7bef1bc6b5b84)\.
325
+
The return OTA error code enum is changed and new error codes are added\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 / OtaErr\_t](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga7ab3c74dc057383c56c6cb9aa6bf0b2d)\.
The return enum is renamed to OtaImageState\_t\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 : OtaImageState\_t ](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#gad4909faa8b9c8672e7f7bef1bc6b5b84)\.
350
+
The return enum is renamed to OtaImageState\_t\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 : OtaImageState\_t ](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#gad4909faa8b9c8672e7f7bef1bc6b5b84)\.
The return OTA error code enum is changed and new error codes are added\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 : OtaErr\_t](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga7ab3c74dc057383c56c6cb9aa6bf0b2d)\.
374
+
The return OTA error code enum is changed and new error codes are added\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 : OtaErr\_t](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga7ab3c74dc057383c56c6cb9aa6bf0b2d)\.
The return OTA error code enum is changed and new error codes are added\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 : OtaErr\_t](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga7ab3c74dc057383c56c6cb9aa6bf0b2d)\.
399
+
The return OTA error code enum is changed and new error codes are added\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 : OtaErr\_t](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga7ab3c74dc057383c56c6cb9aa6bf0b2d)\.
The return OTA error code enum is changed and new error codes are added\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 : OtaErr\_t](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga7ab3c74dc057383c56c6cb9aa6bf0b2d)\.
424
+
The return OTA error code enum is changed and new error codes are added\. Please refer to [AWS IoT Over\-the\-air Update v3\.0\.0 : OtaErr\_t](https://freertos.org/Documentation/api-ref/ota-for-aws-iot-embedded-sdk/docs/doxygen/output/html/group__ota__enum__types.html#ga7ab3c74dc057383c56c6cb9aa6bf0b2d)\.
0 commit comments