From e63fb0b0262e18be0b4305e9f3eb7a563263d8d7 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan <andrei.gherzan@huawei.com> Date: Thu, 27 May 2021 13:03:02 +0100 Subject: [PATCH] docs/raspberrypi4: bmaptool for flashing and no serial section The build system outputs block allocation meta-data that, when used with bmaptool, speeds up writing the disk considerably. Also, the serial section is now obsolete as it is enabled with debug-tweaks distro feature. Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> --- docs/hardware-support/boards/raspberrypi4.rst | 40 +++++-------------- 1 file changed, 9 insertions(+), 31 deletions(-) diff --git a/docs/hardware-support/boards/raspberrypi4.rst b/docs/hardware-support/boards/raspberrypi4.rst index 97ed0f46..e645d785 100644 --- a/docs/hardware-support/boards/raspberrypi4.rst +++ b/docs/hardware-support/boards/raspberrypi4.rst @@ -93,44 +93,22 @@ SD card The Raspberry Pi 4 board support multiple boot options. The below section describes booting the board with an SD card option. -The following steps describes how to use *etcher* tool flash the image to the -SD Card. +1. After the image is built, you are ready to burn the generated image onto the + SD card. We recommend using `bmaptool <https://github.com/intel/bmap-tools>` + and the instructions below will use it. For example, if you are building + allscenarios-image-base run the following command replacing (or defining) + ``$DEVNODE`` accordingly: -Download the latest *etcher* tool from `balena-io etcher page -<https://github.com/balena-io/etcher/releases>`__. -Unzip and run the application. - - * Click "Flash from file" -> Navigate to - ``build-ohos-linux-raspberrypi/tmp/deploy/images/$MACHINE/allscenarios-image-base-raspberrypi4-64.wic`` - - * Click "Select target" -> Chose the SD Card device name (e.g. ``/dev/sdb``). +.. code-block:: console - * Click "Flash!" + $ cd tmp/deploy/images/raspberrypi4-64 + $ bmaptool copy allscenarios-image-base-raspberrypi4-64.wic.bz2 $DEVNODE -"Flash Complete!" message on the *etcher* tool shows flashing completed -successfully. Now unplug the SD Card and put it into RPi board. +2. Put the card to the board and turn it on. Testing the board ***************** -Serial Port -=========== - -By default, the new GPIO UART is disabled. To enable the serial UART, edit -the ``./sources/meta-ohos/flavours/linux/local.conf.sample`` file. - -For more details, see `UART configuration -<https://www.raspberrypi.org/documentation/configuration/uart.md>`__. - -Add the following line at the end of the file. - -.. code-block:: console - - ENABLE_UART = "1" - -For more details, see `Optional build configuration -<https://meta-raspberrypi.readthedocs.io/en/latest/extra-build-config.html?highlight=ENABLE_UART#enable-uart>`__. - HDMI ==== -- GitLab