31
www.microvision-kit.com Download Method for MV8895-LCD Andorid 7.0 MICROVISON Co., Ltd

Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

  • Upload
    others

  • View
    7

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

www.microvision-kit.com

Download Method for

MV8895-LCD Andorid 7.0

MICROVISON Co., Ltd

Page 2: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 2

Document Information

Version 1.0

File Name Download Method for MV8895 Android 7.0.doc

Date 2018. 02. 19

Satus Working

Revision History

Date Version Update Descriptions Editor

2018. 02. 19. V1.0 First Edition Microvision

Page 3: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 3

Contents

1. Packages needed for development ............................................ 4

2. Download image ............................................................................ 6

2.1. Folder Contents and basic cable connetions ....................................... 6

2.1.1. Folder Contents .................................................................................................. 6

2.1.2. basic cable connetions ...................................................................................... 6

2.2. OM Switch settings ................................................................................... 8

2.2.1. SD Booting Mode .............................................................................................. 8

2.2.2. UFS Booting Mode ............................................................................................ 8

2.3. How to create SD Booting Card ............................................................. 9

2.4. Download Method ................................................................................... 10

2.4.1. SD booting Download Method ..................................................................... 10

2.4.2. UFS booting Download Method ................................................................... 13

3. Compilation Method ................................................................... 15

3.1. bootloader compile ................................................................................. 17

Page 4: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 4

3.2. Kernel compile .......................................................................................... 22

3.3. Android compile ...................................................................................... 24

3.3.1. OpenJDK-8 Settings ........................................................................................ 24

3.3.2. Nougat compile ................................................................................................ 29

1. Packages needed for development

The packages are as follows.

파일 설명 버전

bootloader Bootloader

kernel Kernel 4.4.13

android Nougat 7.0

aarch64-linux-android-4.9 aarch64-linux-android- 4.9

(“accrch64-linux-android-4.9” toolchain is included in the Android source. When you need

to compile a set path in the android source.)

Development Environment

Ubuntu : 14.04 LTS 64bit gcc4.8

JDK : JAVA 8, OpenJDK

Package : https://source.android.com/source/initializing.html

14.04 package installation.

Android SDK: http://developer.android.com/sdk/index.html

Page 5: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 5

Installing a different version of Ubuntu can cause problems.

Tool chain

Bootloader Toolchain : aarch64-linux-android-4.9

Kernel Toolchain : aarch64-linux-android-4.9

Page 6: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 6

Board Configuration

MV8895-LCD Rear

Page 7: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 7

MV8895-LCD Front

Page 8: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 8

2. Download image.

2.1. Folder Contents and basic cable connetions.

2.1.1. Folder Contents.

DOC : manual

DSN : Circuit Diagrams and Parts List

SRC : Android BSP

2.1.2. basic cable connetions.

MicroUSB 2.0 Cable : Input and output via the debug port.

MicroUSB 2.0 Cable : For image download. Can be used as a debug port after booting.

PW ON Button : Power button.

Battery : battery Main power.

Page 9: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 9

Board Input Power

Battery input power

Board default input power

Adapter input power

The adapter input power is implemented for testing purposes. It may not work properly.

Base + LCD Connection

Page 10: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 10

Page 11: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 11

2.2. OM Switch settings.

2.2.1. SD Booting Mode

Figure 2.2.1 SD Booting Mode

2.2.2. UFS Booting Mode

Page 12: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 12

Figure 2.2.2 UFS Booting Mode

2.3. How to create SD Booting Card.

SD_fusing folder contents.

Run the following commands from Ubuntu Host PC.

$ sudo ./sd_fusing.sh /dev/sdb

Device names appear on are the name recognized by our PC, must execute the command

with the device name recognized th the user’s PC.

Ex) $ ./sd_fusing.sh /dev/xxx

Page 13: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 13

2.4. Download Method.

2.4.1. SD booting Download Method.

Set the OM Switch to SD Booting Mode as show.

SD Booting Mode

Then insert the SD Booting Card into the board. Connect the battery to the board and press

the “PW ON” button.

Run the following command in uboot mode :

$ fastboot

Enter the download command after cmd run.

Page 14: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 14

Write fwbl1 / bl2 / el3 / bootloader on the board.

$ fastboot flash fwbl1 bl1

$ fastboot flash bl2 SMDK8895_bl2.bin

$ fastboot flash el3_mon el3

$ fastboot flash bootloader u-boot.bin

Next, reboot the switch by changing it to the UFS Booting Mode.

UFS Booting Mode

Press the enter bar before the count reaches zero before the entry into boot mode.

Run the following command in uboot mode :

$ fastboot

Enter the download command after cmd run.

Page 15: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 15

Partition Image

$ fastboot flash partition_table partition

$ fastboot flash ldfw ldfw

Kernel Image

$ fastboot flash dtb exynos8895-avl8895.dtb

$ fastboot flash kernel Image

Android Image

$ fastboot flash ramdisk ramdisk-uboot.img

$ fastboot flash –S 700M system system.img

If you have finished so far, the image download is complete. Please reboot and make sure

that Android boots correctly.

Page 16: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 16

2.4.2. UFS booting Booting Mode.

Basically OM Switch is set to UFS Boot Mode.

UFS Booting Mode

Connect the battery to the board and press the “PW ON” button.

Press the enter bar before the count reaches zero before the entry into boot mode.

Run the following command in uboot mode :

$ fastboot

Page 17: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 17

Enter the download command after cmd run.

Partition Image

$ fastboot flash partition_table partition

$ fastboot flash ldfw ldfw

Kernel Image

$ fastboot flash dtb exynos8895-avl8895.dtb

$ fastboot flash kernel Image

Android Image

$ fastboot flash ramdisk ramdisk-uboot.img

$ fastboot flash –S 700M system system.img

If you have finished so far, the image download is complete. Please reboot and make sure

that Android boots correctly.

Page 18: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 18

3. Compilation Method.

3.1. bootloader compile

Proceed to compile after you unzip in as follows.

$ tar xvjf android.tar.bz2

Configure the directory as follows..

WORK\android\kernel

\bootable\bl2

\bootloader

Enter the Bootloader folder.

Page 19: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 19

You can check the Toolchain used to compile the Bootloader in Makefile.

$ vi Makefile

The Toolchain of the above path is included in the Android.

CROSS_COMPILE := $(shell pwd)/../../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-

android-4.9/bin/aarch64-linux-android-

$ ./build.sh avl8895

Page 20: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 20

You can check the image in the “output” folder.

Enter the folder /bootable/bl2 to continue compiling. In this folder, an image related to “bl2”

is created.

Page 21: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 21

You can check the Toolchain used to compile the Bootloader in “build.sh”

$vi build.sh

$./build.sh smdk8895_aarch64

Page 22: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 22

You can check the image in the “output” folder.

$cd output

SMDK8895_bl2.bin : DRAM setup and uboot load.

u-boot.bin : Used on an exynos8895 AVL board.

The image below is required by default for Booting.

bl1 : bl1 (Samsung released)

bl2 : SMDK8895_bl2.bin (compile to generate)

uboot : u-boot.bin (compile to generate)

el3 : el3 (Samsung released)

Page 23: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 23

3.2. Kernel compile

Enter the Kernel folder.

$ cd kernel/

You can check the Toolchain used to compile the Kernel in “build.sh”

$ vi build.sh

The Toolchain of the above path is included in the Android.

KERNEL_CROSS_COMPILE_PATH="../prebuilts/gcc/linux-x86/aarch64/aarch64-linux-

android-4.9/bin/aarch64-linux-android-"

Page 24: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 24

Run the command below to continue the compilation.

$ cp mv8895_new2p8_defconfig .config

$./build.sh

Page 25: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 25

Once the compilation in complete, you can check the image generated from the path below.

PATH : arch/arm64/boot

3.3. Android compile

OpenJDK-8 must be installed instead of OpenJDK-7 to continue compiling.

3.3.1. OpenJDK-8 settings.

Install OpenJDK-8 by running the following command:

$ sudo apt-get install openjdk-8-jdk

Page 26: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 26

OpenJDK-8 cannot be verified as shown above.. Proceed with the installation by adding the

relevant list by executing the following command:

$sudo add-apt-repository ppa:openjdk-r/ppa

$sudo apt-get update

OpenJDK-8 can be viewed as shown below.

Page 27: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 27

$sudo apt-get install openjdk-8-jdk

Select “Y”.

Page 28: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 28

After installation, run the following command to select the version

$ sudo update-alternatives --config java

Select the java to be used by number. “0” was selected to use OpenJDK-8.

In the same way as above, make the following changes:

$ sudo update-alternatives --config javac

Java version check.

Page 29: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 29

$ java -version

3.3.2. Nougat compile.

Enter the Android folder.

(You must compile the kernel before proceeding with the Android compiles.)

$ ./build.sh avl8895

Page 30: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 30

Once the compilation in complete, you can check the image generated from the path below.

Page 31: Download Method for MV8895-LCD Andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. Nougat compile..... 29 1. Packages needed for development The packages are as follows. 파일

MV8895-LCD (http://www.microvision-kit.com) Android Guide

Copyright 2017 MICROVISION Co., Ltd. 31

PATH : /out/target/product/avl8895