i.MX8 - iMX8MEVK - Getting Started - Loading Pre-built Images
Yocto Images
Prebuilt images are .sdcard files, disk images that can be flashed directly to any SD card. These .sdcard files are the simplest way to evaluate the board and Linux features since they easily flash all the required components to boot the iMX8M EVK.
The .sdcard file includes the 4 elements required to boot the board:
- Bootloader
- Linux kernel image
- Device tree
- Root file system
You can get the prebuilt images from the latest Linux BSP. You need to decompress the BSP and decompress the bz2 image sdcard included in it.
For BSP L4.9.88_2.0.0 run:
## ## BSP and IMAGE_NAME in the example may not match exactly your BSP version. ## Please make sure you set them accordingly. ## BSP=L4.9.88_2.0.0_images_MX8MQ tar -xvf $BSP.tar.gz cd $BSP IMAGE_NAME=fsl-image-qt5-validation-imx-xwayland-imx8mqevk bunzip2 -dk -f $IMAGE_NAME.sdcard.bz2
Android Images
This section describes how to build Android Oreo 8.1 platform for the i.MX 8 series devices.
Requirements
The minimum recommended system requirements are the following:
- 16 GB RAM
- 300 GB hard disk
Establishing a Build Environment (Host Machine)
The host development environment for Android is based on Ubuntu and Debian. Please install Ubuntu version 14.04/16.04 64bit LTS or Debian 8.4 64bit. Those are the recommended Operating Systems for Android.
Setting up a Linux Environment
- Select a Branch: You can choose to download and build the latest source code (called master), in which case you will simply omit the branch specification when you initialize the repository. Otherwise, you should specify the branch you plan to use. Find more information about platform codenames, versions, API Levels and NDK Releases in this page. You can access the whole Git repositories on Android in here.
Required Packages
In addition to the packages requested on the Android website, the following packages are also needed:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib sudo apt-get install libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils sudo apt-get install xsltproc unzip mtd-utils u-boot-tools lzop liblzo2-2 liblzo2-dev zlib1g-dev liblz-dev uuid uuid-dev android-tools-fsutils sudo apt-get install bc sudo apt-get install device-tree-compiler sudo apt-get install gdisk
Installing the Java Development Kit (JDK)
The master branch of Android comes with pre-built versions of OpenJDK below prebuilts/jdk/ so no additional installation is required.
- For Ubuntu >= 15.04 run the following:
sudo apt-get update sudo apt-get install openjdk-8-jdk
If your Ubuntu version is missing the package (which shouldn't happen), add the PPA repository and run the previous commands again:
sudo add-apt-repository ppa:openjdk-r/ppa
Update the default Java version by running:
sudo update-alternatives --config java sudo update-alternatives --config javac
Unpack the Android Release Package
After you have set up a computer running Linux OS, unpack the Android release package as follows:
cd ~ (or any other directory you like) $ tar xzvf imx-o8.1.0_1.3.0_8m.tar.gz
Building the Android platform for i.MX
Getting i.MX Android release source code
The i.MX Android release source code consists of 3 parts:
- NXP i.MX public source code: maintained in the CodeAurora Forum repository.
- AOSP Android public source code: maintained in android.googlesource.com. Get the code from the following link: AOSP Android Source Code
- NXP i.MX Android proprietary source code package: maintained in www.NXP.com. Get the code from the following link: i.MX Android Source Code Package