Skip to content
Snippets Groups Projects
linux-flavour.rst 1.27 KiB
Newer Older
.. SPDX-FileCopyrightText: Huawei Inc.
..
.. SPDX-License-Identifier: CC-BY-4.0

.. include:: ../definitions.rst

Linux Kernel Build Flavour
##########################

|main_project_name| Linux build flavour is based on *oniro-linux* distribution (distro configuration).
Gururaj Shetty's avatar
Gururaj Shetty committed
* oniro-image-base
* oniro-image-base-tests
* oniro-image-extra
* oniro-image-extra-tests

Supported machines (default in **bold**):

* **qemux86-64**
* qemux86
* qemuarm
* qemuarm64
* seco-intel-b68 (SECO SBC-B68)
* seco-imx8mm-c61 (SECO SBC-C61)

Build steps example:

.. code-block:: console

Gururaj Shetty's avatar
Gururaj Shetty committed
    $ TEMPLATECONF=../oniro/flavours/linux . ./oe-core/oe-init-build-env build-oniro-linux
    $ bitbake oniro-image-base

You can test the image built for the qemux86-64 target by issuing:

.. code-block:: console

Gururaj Shetty's avatar
Gururaj Shetty committed
    $ runqemu qemux86-64 oniro-image-base wic

After successful bootup, you will be dropped into a login shell:

.. code-block:: console

    qemux86-64 login:
    
Default login is *root* without a password.

After login you will see the shell prompt:

.. code-block:: console

    root@qemux86-64:~#

To exit qemu, you can either shut down the system:

.. code-block:: console

    root@qemux86:~# poweroff -f

or close qemu using a key combination: *Ctrl-a followed by 'x'*.