From 419b06ffb5e6844a6aa1e8a171866f8b8ba04d80 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <andrei.gherzan@huawei.com> Date: Mon, 21 Jun 2021 15:11:57 +0100 Subject: [PATCH] docs/smart-panel: Cleanup and use the new DISTRO conf for Zephyr Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> --- docs/blueprints/smart-panel.rst | 38 +++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/docs/blueprints/smart-panel.rst b/docs/blueprints/smart-panel.rst index f07a805f..47ba4351 100644 --- a/docs/blueprints/smart-panel.rst +++ b/docs/blueprints/smart-panel.rst @@ -148,14 +148,13 @@ Prepare IoT devices (Nitrogen/Zephyr flavour) Build ----- + #. Create build directory .. code-block:: bash - user@pc:~/ohos$ TEMPLATECONF=../sources/meta-ohos/flavours/zephyr . ./sources/poky/oe-init-build-env build-ohos-zephyr-96b-nitrogen - - user@pc:~/ohos/build-ohos-zephyr-96b-nitrogen + $ TEMPLATECONF=../sources/meta-ohos/flavours/zephyr . ./sources/poky/oe-init-build-env build-ohos-zephyr-96b-nitrogen #. Edit ``conf/local.conf``, and uncomment the following line: @@ -168,16 +167,20 @@ Build Build ``zephyr-blueprint-smarthome-sensors`` image using ``bitbake``, with the following override: + .. code-block:: bash - * ``SMART_HOME_SENSORS_MAC`` set to MAC address of the IoT device. It can - be any MAC address, provided it starts with ``C0`` and is unique in your environment. - * add board MAC override in the form of: - ``BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SMART_HOME_SENSORS_MAC" SMART_HOME_SENSORS_MAC="<mac>"`` + $ DISTRO=allscenarios-zephyr-blueprint-dashboard bitbake zephyr-blueprint-smarthome-sensors - .. code-block:: bash + .. note:: - user@pc:~/ohos/build-ohos-zephyr-96b-nitrogen$ BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SMART_HOME_SENSORS_MAC" \ - SMART_HOME_SENSORS_MAC="C0:BA:DD:06:F0:0D" bitbake zephyr-blueprint-smarthome-sensors + * The build will configure the MAC address with sane defaults. If you + want a custom MAC address, you can prepend to the command above the + following: + + BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SMART_HOME_SENSORS_MAC" SMART_HOME_SENSORS_MAC="<custom_mac_address>" + + * The MAC address can have any value provided it starts with ``C0`` and + is unique in your environment. #. Make sure you have at least 3 GB of free space on the partition @@ -193,15 +196,22 @@ Build .. code-block:: bash - user@pc:~/ohos/build-ohos-zephyr-96b-nitrogen$ BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SMART_HOME_SWITCH_MAC" \ - SMART_HOME_SWITCH_MAC="C0:BA:DD:06:F0:0E" bitbake zephyr-blueprint-smarthome-switch - # this byte is different~~~~~~~~~~~~~~~~~^ + $ DISTRO=allscenarios-zephyr-blueprint-dashboard bitbake zephyr-blueprint-smarthome-switch + + .. note:: + * The build will configure the MAC address with sane defaults. If you + want a custom MAC address, you can prepend to the command above the + following: + + BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SMART_HOME_SWITCH_MAC" SMART_HOME_SWITCH_MAC="<custom_mac_address>" + + * The MAC address can have any value provided it starts with ``C0`` and + is unique in your environment. Flash ----- - #. Connect 96Boards Nitrogen boards to your computer. -- GitLab