Wiki Home » imx6 tinyrex » android71

android71

Last modified by Administrator on 2017/07/24 06:09
Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google.
https://www.android.com/

This document describes installation procedure for binary Freescale Android 7.1 image (i.MX6 TinyREX PRO/MAX/MAX4G/ULTRA module).
Supported peripheral:

  • i.MX6 TinyREX PRO/MAX/MAX4G/ULTRA module
  • HDMI output
  • USB flash as external storage
  • Video playback
  • Audio playback
  • WiFi
  • Ethernet

Android 7.1

Install Prerequisites

sudo apt-get install uuid uuid-dev
sudo apt-get install zlib1g-dev liblz-dev
sudo apt-get install liblzo2-2 liblzo2-dev
sudo apt-get install lzop
sudo apt-get install git-core curl
sudo apt-get install u-boot-tools
sudo apt-get install mtd-utils
sudo apt-get install android-tools-fsutils
sudo apt-get install openjdk-8-jdk

Source code

TODO

Binary files

http://www.voipac.com/downloads/imx/iMX6_TinyRex/Module/bin/android/7_1/

Preparing SD card

mkdir -pv ~/workdir/imx6/android/bin/7_1/tinyrex
cd ~/workdir/imx6/android/bin/7_1/tinyrex
wget -r -nH -nd -np -R index.html* http://www.voipac.com/downloads/imx/iMX6_TinyRex/Module/bin/android/7_1/
chmod a+x vpac-sdcard-partition.sh

SD card partition layout

This will be the final SD card partitioning layout at the end of installation procedure.

Partition type/index Name Start offset Size File system Content 
 N/A BOOT Loader 1 KB 1 MBN/A bootloader
 Primary 1 Boot 8 MB 32 MBboot.img format,
kernel + ramdisk
boot.img 
 Primary 2 Recovery Follow Boot 32 MBboot.img format,
kernel + ramdisk
recovery.img
 Logic 5 (Extended 3) SYSTEM Follow Recovery 1536 MBEXT4. Mount as /
system
system.img (Android system files under /system/ dir)
 Logic 6 (Extended 3) CACHE Follow SYSTEM 512 MBEXT4. Mount as /
cache 
 Android cache for image store of OTA.
 Logic 7 (Extended 3) Device Follow CACHE 8 MBEXT4. Mount as /
vender
To Store MAC address files
 Logic 8 (Extended 3) Misc Follow Device 6 MB N/AFor recovery store
bootloader message, reserve
 Logic 9 (Extended 3) DATAFOOTER Follow Misc 2 MB N/AFor crypto footer of DATA partition encryption
bootloader message, reserve.
 Primary 4 DATA Follow Misc Total - Other
images
EXT4. Mount at /dataApplication data storage for the system application and
for internal media partition in /mnt/sdcard/ dir.

IMX6 Pro module

sudo ./vpac-sdcard-partition.sh -f imx6tinyrex pro /dev/mmcblkX

#or

sudo ./vpac-sdcard-partition.sh -f imx6tinyrex pro /dev/sdX

IMX6 Max module

sudo ./vpac-sdcard-partition.sh -f imx6tinyrex max /dev/mmcblkX

#or

sudo ./vpac-sdcard-partition.sh -f imx6tinyrex max /dev/sdX

IMX6 Max 4G module

sudo ./vpac-sdcard-partition.sh -f imx6tinyrex max4g /dev/mmcblkX

#or

sudo ./vpac-sdcard-partition.sh -f imx6tinyrex max4g /dev/sdX

IMX6 Ultra module

sudo ./vpac-sdcard-partition.sh -f imx6tinyrex ultra /dev/mmcblkX

#or

sudo ./vpac-sdcard-partition.sh -f imx6tinyrex ultra /dev/sdX

Setup

Bootloader

Android bootloader is stored at SD card and directly executed.
Additional configuration is not required.

Setting HDMI video output

setenv bootargs "console=ttymxc0,115200 init=/init video=mxcfb0:dev=hdmi,if=RGB24,bpp=32 video=mxcfb1:off vmalloc=128M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=320M"
saveenv
Tags:
Created by Administrator on 2017/07/24 06:13

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.1 - Documentation