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

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.