Genio Tools

Overview

Genio tools are a set of tools to configure or interact with MediaTek Genio boards. MediaTek and community developers write the Genio tools in Python. Ensure you have Python 3.9 or later installed on your system. MediaTek tested Genio Tools v1.5 with Python 3.9.

Note

Some known issues affect Python 3.10 on the Windows platform. If you use Windows, we recommend you install Python 3.9.

The Genio tools consist of 4 tools:

  • genio-config: a tool to setup your host system in order to be able to communicate with MediaTek Genio boards

  • genio-flash: a tool to flash a board with a Android image

Setup Tool Environment (Linux)

Please refer to Setup Tool Environment (Linux).

Setup Tool Environment (Windows)

Please refer to Setup Tool Environment (Windows).

Genio Tools Usage

This section will describe how to use each Genio tool.

genio-config

Note

The genio-config tool is supported on both Linux and Windows. The udev rules information is only supported on Linux environment.

Developers use this tool to check the configuration of the host environment.

Run the following command to check that your environment is correctly configured:

genio-config
fastboot: OK
udev rules: OK

In case your environment is not setup correctly, the tool will give you some instructions on how to correctly configure it.

Run the following commands or reboot the Linux system for the udev rules to take effect:

sudo udevadm control --reload-rules
sudo udevadm trigger

genio-flash

Note

The genio-flash tool is supported on both Linux and Windows.

This tool allows you to flash your board. genio-flash supports flashing Android images.

You can flash an image by running the following command:

genio-flash

The tool tries to find an image to flash in your current working directory. If you want to flash an image in a different path, use the –path parameter:

genio-flash --path /path/to/image

Installation

Only the preview installation package is available from Genio’s GitLab repository. Please install the specific 1.5 and later version to try this feature.

pip install genio-tools==1.6a3

Note

After successfully installing the Genio-Tool, you can verify the installed version by using the following command.

$ genio-flash --version
1.6a3