NXP Semiconductors User's Guide Document Number: SCMIMX6AUG M6.0.1_2.1.0, May 15th, 2017 SCM i.
Contents Contents Chapter 1 Overview.........................................................................................3 Chapter 2 Preparation.....................................................................................4 2.1 Setup your computer........................................................................................................... 4 2.2 Unpack the SCM i.MX Android Release Package...............................................................
Overview Chapter 1 Overview This document provides the technical information related to the SCM i.MX6DQ QWKS and i.
Preparation Chapter 2 Preparation 2.1 Setup your computer To build the Android source files, you will need to use a computer running Linux OS. The 14.04 64bit version and openjdk-7jdk of Ubuntu are the most tested environment for the Android Marshmallow 6.0 build. After installing Linux PC, you need to check whether you have all the necessary packages installed for an Android build. Refer to "Setting up your machine" on the Android web site http://source.android.com/source/initializing.html .
Build Android for i.MX Chapter 3 Build Android for SCM i.MX 3.1 Get Android Source Code (Android/Kernel/uboot) The Android source code is maintained as more than 100 gits in an Android repository (android.googlesource.com). To get the Android source code from Google repo, follow the steps: Assume you had unzipped i.MX Android release package to /opt/ android_M6.0.1_2.1.0_mx6scm_source/. $ cd ~ $ mkdir myandroid $ mkdir bin $ cd myandroid $ curl https://storage.googleapis.
Build Android for i.MX ************************************************************** Success: Now you can build android code for FSL i.MX platform ************************************************************** NOTE The patch script (and_patch.sh) requires some basic utilities like awk/sed. If they are not available on your Linux PC, install them in advance. 3.3 Build Android Image Building the Android image is performed when the source code has been downloaded (Section 3.1) and patched (Section 3.2).
Build Android for i.MX When the make command is complete, the build-log.txt file contains the execution output. Please check for any errors. For BUILD_ID & BUILD_NUMBER changing, please update build_id.mk in your ~/myandroid directory, detail step, please check Android Frequently Asked Questions document. For both SCM i.MX6DQ QWKS and SCM i.MX6SX EVB platforms, we use the same build configuration. They share the same system images, except the boot, recovery and uboot image.
Build Android for i.MX • Limited Android System image access for security reasons. • Lack of debugging tools. • Installation modules tagged with user. • APK’s and tools according to product definition files, which are found in PRODUCT_PACKAGES in the sources folder ~/ myandroid/device/fsl/imx6/imx6.mk. To add customized packages, add the package MODULE_NAME or PACKAGE_NAME to this list. • The properties are set as: ro.secure=1 and ro.debuggable=0. • adb is disabled by default.
Build Android for i.MX $ make mx6dqscm_1gb_interleaving_qwks_rev3_android_defconfig # to build uboot.img which is used in MFGTOOL $ make mx6dqscm_1gb_fix_qwks_rev3_defconfig For SCM i.MX6DQ 1GB QWKS REVB (rev2): # to build uboot.imx which is used in android $ make mx6dqscm_1gb_interleaving_qwks_rev2_android_defconfig # to build uboot.img which is used in MFGTOOL $ make mx6dqscm_1gb_fix_qwks_rev2_defconfig For SCM i.MX6SX 1GB EVB: # to build uboot.
Build Android for i.MX $ make imx_v7_mfg_defconfig $ make KCFLAGS=-mno-android -j4 With a successful build in either of the above case, the generated kernel images are ~/myandroid/kernel_imx/arch/arm/boot/zImage and ~/myandroid/kernel_imx/arch/arm/boot/uImage. 3.6 Build boot.img As outlined in Section 2.3, we use boot.img and boota as default commands to boot rather than the uramdisk and zImage we used before. You can use this command to generate boot.
Run Android with Prebuilt Image Chapter 4 Run Android with Prebuilt Image To test Android before building any code, use the prebuilt images into the release package and go to "Download Images" and "Boot": Image Package Descriptions android_M6.0.1_2.1.0_full_image_mx6scm.tar.gz Prebuilt-Image for SCM i.MX6DQ 1GB QWKS REVC (rev3) board --- qwks_rev3 android_M6.0.1_2.1.0_full_image_mx6scm.tar.gz --- qwks_rev2 android_M6.0.1_2.1.0_full_image_mx6scm.tar.gz Prebuilt-Image for SCM i.
Run Android with Prebuilt Image SCM i.MX6SX EVB Images Descriptions u-boot-imx6sxscm-1gb-evb.imx The bootloader (with padding) for SCM SCM i.MX6SX EVB boot-imx6sxscm-1gb-evb.img Boot Image for SD3 system.img System Boot Image recovery-imx6sxscm-1gb-evb.img Recovery Image NOTE boot.img is an Android image that stores zImage and ramdisk together. It can also store other information such as the kernel boot command line, machine name, e.g. This information can be configured in android.mk.
Programming Images Chapter 5 Programming Images The images from the NXP prebuilt release package or created from source code contain the U-Boot bootloader, system image, and recovery image. At a minimum, the storage devices (SD) on the NXP development system must be programmed with the U-Boot bootloader. The i.MX 6 series boot process determines what storage device to access based on the switch settings.
Programming Images Table continued from the previous page... Logic 5 (Extended SYSTEM 3) Follow Recovery 800MB EXT4. Mount as / system Android system files under / system/ dir Logic 6 (Extended CACHE 3) Follow SYSTEM 512MB EXT4. Mount as / cache Android cache, for image store for OTA Follow CACHE 8MB Ext4. For Store MAC address files. Logic 7 Device (Extended 3) Logic 8 Mount at /device Misc (Extended 3) Logic 9 Follow 6MB N/A For recovery storage bootloader message, reserve.
Programming Images Download the android system root image: # sudo simg2img system.img system_raw.img # sudo dd if=system_raw.img of=/dev/sdx5; sync Download the android recovery image: # sudo dd if=recovery.img of=/dev/sdx2; sync NOTE simg2img is a tool which convert sparse system image to raw system image on linux host PC. It will be built out as myandroid/out/host/linux-x86/bin/simg2img. The android-tools-fsutils package also includes the simg2img command for Ubuntu Linux. SCM i.
Boot Chapter 6 Boot 6.1 Boot from SD3 6.1.1 Boot from SD3 on SCM i.MX6DQ QWKS REVC (rev3)/REV B (rev2) Board Below are the Boot Switch setting to control the boot storage: download Mode (MFGTool mode) (SW3)/(SW1) 11001001 (from 1-8 bit) SD3 boot (SW3)/(SW1) 10101001 (from 1-8 bit) HDMI is the default display on QWKS.
Boot • bootargs: the kernel command line, bootloader passed to kernel. Described in 4.3.2 section, bootargs env is a optional for boota. There is a default bootargs stored in boot.img. If the bootargs env isn't been manually set in uboot, the default on in boot.img will be used. If you want to use default env in boot.img, you can use command below to clear the bootargs env. > setenv bootargs • dhcp: get ip address by BOOTP protocol, and load the kernel image ($bootfile env) from TFTP server.
Boot Table continued from the previous page... video tell kernel/driver which resolution/depth and refresh rate should be used or tell kernel/driver not to register a framebuffer device for a display device.
Boot Table continued from the previous page... androidboot.dm_verity Argument to disable the verified boot, which to make sure binary in boot partition can only load the certain binary on system partition. androidboot.dm_verity=disa bled https://source.android.com/ devices/tech/security/ verifiedboot/index.
How To Reach Us Home Page: Information in this document is provided solely to enable system and software implementers to use NXP products. There are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits based on the information in this document. NXP nxp.com reserves the right to make changes without further notice to any products herein. Web Support: NXP makes no warranty, representation, or guarantee regarding the suitability of its products nxp.