subsys/mgmt/hawkbit: change 'Hawkbit' & 'hawkbit' to 'hawkBit'

Change 'Hawkbit' and 'hawkbit' to 'hawkBit' wherever
makes sense, and a bit of touch ups here and there.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
Yong Cong Sin 2024-04-03 22:46:02 +08:00 committed by Fabio Baltieri
commit 10592b9df4
9 changed files with 46 additions and 46 deletions

View file

@ -3,22 +3,22 @@
#
# SPDX-License-Identifier: Apache-2.0
#
mainmenu "Hawkbit sample configuration"
mainmenu "hawkBit sample configuration"
choice
prompt "Hawkbit mode"
prompt "hawkBit mode"
default HAWKBIT_POLLING
depends on HAWKBIT
config HAWKBIT_POLLING
bool "Hawkbit Polling mode"
bool "hawkBit Polling mode"
help
Polling mode runs automatically on a predefined period, probing the
server for updates and installing them without requiring user
intervention.
config HAWKBIT_MANUAL
bool "Hawkbit manual mode"
bool "hawkBit manual mode"
help
Manual mode requires the user to call the server probe and then, if
there is an available update, also requires the user to decide if

View file

@ -11,7 +11,7 @@ The Eclipse hawkBit update server provides REST resources which are consumed by
device to retrieve software update tasks. This API is based on HTTP standards
and a polling mechanism.
This sample shows how to use Hawkbit DDI API in both a polling and manual
This sample shows how to use hawkBit DDI API in both a polling and manual
update mode.
Polling mode run automatically on a predefined period, probing the server
@ -25,7 +25,7 @@ source code for this mode hawkbit_manual
Caveats
*******
* The Zephyr port of ``Hawkbit`` is configured to run on a
* The Zephyr port of hawkBit is configured to run on a
:ref:`Freedom-K64F <frdm_k64f>` MCU by default. The application should
build and run for other platforms with support internet connection. Some
platforms need some modification. Overlay files would be needed to support
@ -33,14 +33,14 @@ Caveats
understanding that most other connectivity options would require an edge
gateway of some sort (Border Router, etc).
* The MCUboot bootloader is required for ``Hawkbit`` to function properly.
* The MCUboot bootloader is required for hawkBit to function properly.
More information about the Device Firmware Upgrade subsystem and MCUboot
can be found in :ref:`mcuboot`.
Building and Running
********************
The below steps describe how to build and run the ``Hawkbit`` sample in
The below steps describe how to build and run the hawkBit sample in
Zephyr. Where examples are given, it is assumed the sample is being build for
the Freedom-K64F Development Kit (``BOARD=frdm_k64f``).
@ -60,7 +60,7 @@ be done by,
west flash
Step 3: Start the Hawkbit Docker
Step 3: Start the hawkBit Docker
================================
By default, the hawkbit application is set to run on http at port:8080.
@ -75,10 +75,10 @@ This will start the hawkbit server on the host system.Opening your browser to
the server URL, ``<your-ip-address>:8080``, and logging into the server using
``admin`` as the login and password by default.
Step 4: Build Hawkbit
Step 4: Build hawkBit
=====================
``Hawkbit`` can be built for the frdm_k64f as follows:
hawkBit can be built for the frdm_k64f as follows:
.. zephyr-app-commands::
:zephyr-app: samples/subsys/mgmt/hawkbit
@ -102,7 +102,7 @@ From this section onwards you use a binary (``.bin``) image format.
The command above creates a signed and confirmed image file called
:file:`zephyr.signed.confirmed.bin` in the build directory. It's important for
the first image to be confirmed as MCUboot isn't able to confirm an image that
is flashed using a hardware tool, and Hawkbit will reboot to trigger a firmware
is flashed using a hardware tool, and hawkBit will reboot to trigger a firmware
swap if it isn't able to confirm the running image on init.
Step 6: Flash the first image
@ -123,7 +123,7 @@ upload a firmware binary to the server, and update it using this UI.
Step 7: Building and signing the test image
===========================================
The easiest way to test the functionality of Hawkbit is to repeat step 4 to
The easiest way to test the functionality of hawkBit is to repeat step 4 to
build the sample again, so that the build time will be different. Then, similar
to step 5, sign the image and assign it a different version number but without
confirming it like so:
@ -143,7 +143,7 @@ Then upload the signed image to the server with Upload file Icon.
Click on distribution icon in the left pane of UI and create a new Distribution
with type Apps only (``name:frdm_k64f_update,version:1.0.1``). Assign the
``hawkbit`` software module to the created distribution. Click on Deployment
hawkBit software module to the created distribution. Click on Deployment
icon in the left pane of UI and assign the ``frdm_k64f_update`` distribution to
the target ``frdm_k64f``.
@ -278,13 +278,13 @@ Change authentication security from false to true.
java -jar ./hawkbit-runtime/hawkbit-update-server/target/ \
hawkbit-update-server-#version#-SNAPSHOT.jar
Step 11: Build Hawkbit HTTPS
Step 11: Build hawkBit HTTPS
============================
* Convert the server.pem file to self_sign.der and place the der file in
hawkbit/src directory
``Hawkbit https`` can be built for the frdm_k64f as follows:
``hawkBit https`` can be built for the frdm_k64f as follows:
.. zephyr-app-commands::
:zephyr-app: samples/subsys/mgmt/hawkbit

View file

@ -1,4 +1,4 @@
#Turn on the Hawkbit
#Enable hawkBit
CONFIG_HAWKBIT=y
CONFIG_NVS=y
CONFIG_FLASH=y
@ -18,7 +18,7 @@ CONFIG_BOOTLOADER_MCUBOOT=y
#Main Stack Size
CONFIG_MAIN_STACK_SIZE=4096
#Minimal Heap mem pool size for the Hawkbit working
#Minimal Heap mem pool size for hawkBit to work
CONFIG_HEAP_MEM_POOL_SIZE=4096
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096
@ -42,10 +42,10 @@ CONFIG_HAWKBIT_SHELL=y
CONFIG_KERNEL_SHELL=y
CONFIG_SHELL_STACK_SIZE=4096
#Hawkbit polling mode
#hawkBit polling mode
CONFIG_HAWKBIT_POLLING=y
#Config Hawkbit Server
#Config hawkBit Server
CONFIG_HAWKBIT_SERVER="192.168.1.110"
#Debug helpers

View file

@ -1,7 +1,7 @@
common:
filter: CONFIG_FULL_LIBC_SUPPORTED
sample:
description: Hawkbit Firmware Over-the-Air (FOTA)
description: hawkBit Firmware Over-the-Air (FOTA)
name: hawkbit
tests:
sample.net.hawkbit:

View file

@ -24,7 +24,7 @@ int main(void)
{
int ret = -1;
LOG_INF("Hawkbit sample app started");
LOG_INF("hawkBit sample app started");
LOG_INF("Image build time: " __DATE__ " " __TIME__);
app_dhcpv4_startup();
@ -37,16 +37,16 @@ int main(void)
ret = hawkbit_init();
if (ret < 0) {
LOG_ERR("Failed to init hawkbit");
LOG_ERR("Failed to init hawkBit");
}
#if defined(CONFIG_HAWKBIT_POLLING)
LOG_INF("Starting hawkbit polling mode");
LOG_INF("Starting hawkBit polling mode");
hawkbit_autohandler();
#endif
#if defined(CONFIG_HAWKBIT_MANUAL)
LOG_INF("Starting hawkbit manual mode");
LOG_INF("Starting hawkBit manual mode");
switch (hawkbit_probe()) {
case HAWKBIT_UNCONFIRMED_IMAGE:
@ -63,7 +63,7 @@ int main(void)
break;
case HAWKBIT_CANCEL_UPDATE:
LOG_INF("Hawkbit update cancelled from server");
LOG_INF("hawkBit update cancelled from server");
break;
case HAWKBIT_OK:
@ -75,7 +75,7 @@ int main(void)
break;
case HAWKBIT_PROBE_IN_PROGRESS:
LOG_INF("Hawkbit is already running");
LOG_INF("hawkBit is already running");
break;
default: