download method for mv8895-lcd andorid 7boardset.com/manual/mv8895_manual.pdf · 3.3.2. nougat...
TRANSCRIPT
www.microvision-kit.com
Download Method for
MV8895-LCD Andorid 7.0
MICROVISON Co., Ltd
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
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
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
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
MV8895-LCD (http://www.microvision-kit.com) Android Guide
Copyright 2017 MICROVISION Co., Ltd. 6
Board Configuration
MV8895-LCD Rear
MV8895-LCD (http://www.microvision-kit.com) Android Guide
Copyright 2017 MICROVISION Co., Ltd. 7
MV8895-LCD Front
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.
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
MV8895-LCD (http://www.microvision-kit.com) Android Guide
Copyright 2017 MICROVISION Co., Ltd. 10
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
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
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.
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.
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.
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
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.
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.
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
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.
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
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)
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-"
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
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
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.
MV8895-LCD (http://www.microvision-kit.com) Android Guide
Copyright 2017 MICROVISION Co., Ltd. 27
$sudo apt-get install openjdk-8-jdk
Select “Y”.
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.
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
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.
MV8895-LCD (http://www.microvision-kit.com) Android Guide
Copyright 2017 MICROVISION Co., Ltd. 31
PATH : /out/target/product/avl8895