Skip to content
Snippets Groups Projects
Commit 419b06ff authored by Andrei Gherzan's avatar Andrei Gherzan :penguin: Committed by Stefan Schmidt
Browse files

docs/smart-panel: Cleanup and use the new DISTRO conf for Zephyr


Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent b4e241cc
No related branches found
No related tags found
No related merge requests found
...@@ -148,14 +148,13 @@ Prepare IoT devices (Nitrogen/Zephyr flavour) ...@@ -148,14 +148,13 @@ Prepare IoT devices (Nitrogen/Zephyr flavour)
Build Build
----- -----
#. #.
Create build directory Create build directory
.. code-block:: bash .. code-block:: bash
user@pc:~/ohos$ TEMPLATECONF=../sources/meta-ohos/flavours/zephyr . ./sources/poky/oe-init-build-env build-ohos-zephyr-96b-nitrogen $ 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
#. #.
Edit ``conf/local.conf``, and uncomment the following line: Edit ``conf/local.conf``, and uncomment the following line:
...@@ -168,16 +167,20 @@ Build ...@@ -168,16 +167,20 @@ Build
Build ``zephyr-blueprint-smarthome-sensors`` image using ``bitbake``, Build ``zephyr-blueprint-smarthome-sensors`` image using ``bitbake``,
with the following override: with the following override:
.. code-block:: bash
* ``SMART_HOME_SENSORS_MAC`` set to MAC address of the IoT device. It can $ DISTRO=allscenarios-zephyr-blueprint-dashboard bitbake zephyr-blueprint-smarthome-sensors
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>"``
.. code-block:: bash .. note::
user@pc:~/ohos/build-ohos-zephyr-96b-nitrogen$ BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SMART_HOME_SENSORS_MAC" \ * The build will configure the MAC address with sane defaults. If you
SMART_HOME_SENSORS_MAC="C0:BA:DD:06:F0:0D" bitbake zephyr-blueprint-smarthome-sensors 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 Make sure you have at least 3 GB of free space on the partition
...@@ -193,15 +196,22 @@ Build ...@@ -193,15 +196,22 @@ Build
.. code-block:: bash .. code-block:: bash
user@pc:~/ohos/build-ohos-zephyr-96b-nitrogen$ BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE SMART_HOME_SWITCH_MAC" \ $ DISTRO=allscenarios-zephyr-blueprint-dashboard bitbake zephyr-blueprint-smarthome-switch
SMART_HOME_SWITCH_MAC="C0:BA:DD:06:F0:0E" bitbake zephyr-blueprint-smarthome-switch
# this byte is different~~~~~~~~~~~~~~~~~^ .. 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 Flash
----- -----
#. #.
Connect 96Boards Nitrogen boards to your computer. Connect 96Boards Nitrogen boards to your computer.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment