Last edited one month ago

PC prerequisites about STM32MPU distribution for Android

Here after are the list of packages which can be useful to work with the OpenSTDroid distribution:

Before downloading and building the OpenSTDroid distribution, make sure your system meets the following requirements:

  • A 64-bit Linux® environment.
  • At least 150 Gbytes of free disk space. If you conduct multiple builds, even more space is required.
  • At least 8 Gbytes of RAM/swap. If you are running Linux on a virtual machine, at least 16 Gbytes of RAM/swap are required.

For more details, refer to the requirements page of the AOSP website.

Use the following commands to install the packages required to setup your environment (Distribution Package):

 sudo apt-get install build-essential gcc-multilib cmake ant bison flex chrpath pahole bc rustfmt
 sudo apt-get install libssl-dev libgmp-dev libmpc-dev libncurses-dev libyaml-dev libelf-dev libsdl1.2-dev libncurses5
 sudo apt-get install git gitk git-gui git-doc git-lfs cvs subversion mercurial
 sudo apt-get install python3 python3-pip python3-pexpect python-is-python3 python3-pyelftools python3-cbor2 python3-intelhex python3-pycryptodome python3-sepolgen pylint python3-git
 sudo apt-get install wget curl unzip cpio lz4 zstd pv dos2unix lrzsz libarchive-zip-perl
 sudo apt-get install gawk sed diffstat coreutils bsdmainutils texinfo texi2html libxml2-utils
 sudo apt-get install socat connect-proxy corkscrew picocom nfs-common nfs-kernel-server
 sudo apt-get install meld gitk git-gui

Depending on the Ubuntu version you use, you may need to adapt the list. If any error occurs during installation, remove the package from the list and rerun the command to avoid an incomplete installation.


To ensure USB communication (with ADB) between the host and the device, see ADB § Device Connection.


To run Android-provided tests (CTS and VTS), see Android Platform Testing.

At this stage: Your environment is ready for Android build, debug and test.