Boardcon Embedded Design Idea3399 Android 7.1 User manual

1
Customize the embedded system based on YourIdea
1. Introduction
1.1. About this Manual
This manual is intended to provide the user with an overview of the board and benefits, complete
features specifications, and set up procedures. It contains important safety information as well.
1.2. Feedback and Update to this Manual
To help our customers make the most of our products, we are continually making additional and
updated resources available on the Boardcon website (www.boardcon.com , www.armdesigner.com).
These include manuals, application notes, programming examples, and updated software and
hardware. Check in periodically to see what’s new!
When we are prioritizing work on these updated resources, feedback from customers is the number
one influence, If you have questions, comments, or concerns about your product or project, please
no hesitate to contact us at support@armdesigner.com.
1.3. Limited Warranty
Boardcon warrants this product to be free of defects in material and workmanship for a period of one
year from date of buy. During this warranty period Boardcon will repair or replace the defective unit
in accordance with the following process:
A copy of the original invoice must be included when returning the defective unit to Boardcon. This
limited warranty does not cover damages resulting from lighting or other power surges, misuse,
abuse, abnormal conditions of operation, or attempts to alter or modify the function of the product.
This warranty is limited to the repair or replacement of the defective unit. In no event shall Boardcon
be liable or responsible for any loss or damages, including but not limited to any lost profits, incidental
or consequential damages, loss of business, or anticipatory profits arising from the use or inability
to use this product.
Repairs make after the expiration of the warranty period are subject to a repair charge and the cost
of return shipping. Please contact Boardcon to arrange for any repair service and to obtain repair
charge information.

2
Customize the embedded system based on YourIdea
Revision History
Ver
Description
Author
Date
V1.0
Initial version android7.1.2 industry
Qin Xueqin
2019-05-05
V1.1
Description update
Zhou Lijun
2019-11-22

3
Customize the embedded system based on YourIdea
Content
1 Idea3399 Introduction.....................................................................................................................4
2 Compiler Environment....................................................................................................................5
2.1 Vmware7.0+ubuntu14.04 .....................................................................................................5
2.2 Install JDK ............................................................................................................................5
2.3 Install Tools...........................................................................................................................6
3 Compile Source..............................................................................................................................8
3.1 Compile Kernel.....................................................................................................................8
3.2 Compile Android ...................................................................................................................8
4 Images Operation...........................................................................................................................9
4.1 Pack Image ..........................................................................................................................9
4.2 Unzip Firmware ..................................................................................................................11
5 Install Serial Terminal Tool............................................................................................................12
6 Burn Images .................................................................................................................................14
6.1 Install Driver .......................................................................................................................14
6.2 Upgrade Uniform Firmware ................................................................................................16
7 Android Application.......................................................................................................................19
7.1 Serial Terminal....................................................................................................................19
7.2 ADB ....................................................................................................................................19
7.3 Display ...............................................................................................................................20
7.4 SD Card .............................................................................................................................21
7.5 USB Host ...........................................................................................................................21
7.6 Ethernet..............................................................................................................................22
7.7 WiFi ....................................................................................................................................23
7.8 Bluetooth ............................................................................................................................24
7.9 4G Network ........................................................................................................................24
7.10 GPS..................................................................................................................................26
7.11 Camera.............................................................................................................................27
7.12 Type-C to HDMI/USB/Ethernet.........................................................................................28
7.13 RTC..................................................................................................................................29
7.14 M.2 NVME SSD ...............................................................................................................30

4
Customize the embedded system based on YourIdea
1 Idea3399 Introduction
Feature
Specifications
CPU
· Rockchip RK3399. Big.Little architecture: Dual Cortex-A72 + Quad Cortex-A53,
64-bit CPU. Frequency is over 1.8GHz (Big cluster)
·28nm HKMG process
·1MB unified L2 Cache for Big cluster, 512KB unified L2 Cache for Little cluster
GPU
· Mali-T864 GPU, OpenGL ES1.1/2.0/3.0/3.1, OpenVG1.1, OpenCL, DX11
· Supports AFBC (ARM Frame Buffer Compression)
Memory
4GB LPDDR4
Flash
8GB eMMC Flash
NVME SSD
optional
SIM Card 4G+GPS
optional Recover
Gigabit
Ethernet
Mini DP
Type-C1
Type-C0
HDMI USB
Host
Headphone
Power in
PWR&Battery
MIPI_RX
Camera, optional
Debug
MIPI
LCD AI-Audio IR SD
MIPI_TX/RX
Camera,optional
UART3
Recover
Power
Reset
UART1/SPI0
WiFi
antenna
Fan
RTC
POE
WiFi&BT

5
Customize the embedded system based on YourIdea
Power
DC 5V/3A or 3.7V Li-Battery
USB
1x USB2.0 Host, 2x USB3.0 Type C
UART
1x 3pin connector. For debug.
LCD
MIPI TX for MIPI LCD via 26-pin header interface
Ethernet
1000M High performance Ethernet (RTL8211E), RJ45 interface
HDMI OUT
HDMI 1.4 /2.0 support 4K, 1080P, 720P, 480P resolution
MIPI Camera
MIPI RX for camera1, 13 Megapixels OV13850 model;
MIPI RX/TX for camera2, 13 Megapixels;
Support 3-D video capture
Audio codec
Adopt ALC5651 Audio chip, 3.5mm Audio I / O interface, 14-pin header for MIC
Array.
PWR&Battery
2x5pin connector. 3.7V Li-Battery
RTC
Real Time Clock, powered by external lithium battery
SD card
1x T-Flash card slot
SIM card
1x SIM card slot
Buttons
3x User Buttons, for Recover, Power, Reset
IR
Support IR in
WIFI&BT
AP6356S, Wireless-2.4GHz/5GHz 802.11 a/b/g/n/ac. Bluetooth 4.1
3G/4G(optional)
52pins MINI PCI-E Socket. Support 3G/4G module
SSD(optional )
NVME SSD PCI.E X2
Dimension
135mm x 90mm
2 Compiler Environment
2.1 Vmware7.0+ubuntu14.04
Install Vmware7.0 in windows OS, and then install ubuntu14.04 in VMware to compile. Please refer
to the official website http://www.ubuntu.com/ to download and install Ubuntu system.
Note: Android7.1 should be complied on ubuntu 64bit OS, Ubuntu 14.04 is recommended.
2.2 Install JDK
JDK: openjdk-8-jdk
PC OS: ubuntu system
Network: online
Permission: root

6
Customize the embedded system based on YourIdea
Execute the follow command in ubuntu system to download jdk and install.
# sudo apt-get update
# sudo apt-get install openjdk-8-jdk
For example, the installation path is /usr/lib/jvm/java-8-openjdk-amd64.
Configure the environment variable at the terminal by executing commands
# export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
# export PATH=$JAVA_HOME/bin:$PATH
# export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
Execute the command to check if the jdk has been installed successfully and view the revised
version
# java -version
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-8u121-b13-0ubuntu1.16.04.2-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
2.3 Install Tools
Root user execute the follow commands to install necessary tools.
# sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl
# sudo apt-get install zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386

7
Customize the embedded system based on YourIdea
# sudo apt-get install lib32ncurses5-dev x11proto-core-dev libx11-dev
# sudo apt-get install lib32z-dev ccache libgl1-mesa-dev libxml2-utils
# sudo apt-get install xsltproc unzip

8
Customize the embedded system based on YourIdea
3 Compile Source
Unzip the source.
# tar zxvf ideal3399-android7.1-industry.tar.gz
3.1 Compile Kernel
# cd ideal3399-android7.1-industry/kernel/
# make ARCH=arm64 boardcon_defconfig -j8
# make ARCH=arm64 ideal3399-boardcon.img -j12
kernel.img and resource.img are generated in current directory.
3.2 Compile Android
# cd ideal3399-android7.1-industry /
# source build/envsetup.sh
# lunch ideal3399-userdebug
# make -j12
# ./mkimages.sh

9
Customize the embedded system based on YourIdea
Generated image file
# cd rockdev/Image-ideal3399
# ls
Images are generated in current directory.
4 Images Operation
4.1 Pack Image
Step 1, unzip AndroidTool.rar in windows.
Step 2, copy all the files in the Android root directory rockdev/Image-ideal3399 to the development
tools rockdev/Image directory.
Step 3, enter the directory AndroidTool/rockdev/Image, and then double-click to run
mkupdate.bat.

10
Customize the embedded system based on YourIdea

11
Customize the embedded system based on YourIdea
Step 4, update.img will be generated in rockdev directory.
Note: If an error occurs, it may be in the script is not the same bootloader version, follow the prompts
to modify the file mkupdate.bat and package-file the same version of the current directory.
4.2 Unzip Firmware
Step 1, enter the directory AndroidTool \rockdev in CMD, unzip update.img.
Enter the following command
RKImageMaker.exe -unpack ./update.img ./
Then unzip the file to get the files boot.bin and firmware.img.
Step 2, unzip firmware.img.
Execute the command
AFPTool.exe -unpack firmware.img ./

12
Customize the embedded system based on YourIdea
The unzip files will be generated in the directory AndroidTool\rockdev\Image.
5 Install Serial Terminal Tool
The serial terminal SecureCRT is used for debugging. It can be used directly after decompression.
Open SecureCRT.exe after copy to PC (path: tools\windows\SecureCRT.exe), then click the icon
Quick Connect to config.

13
Customize the embedded system based on YourIdea
Set the parameters as follow:
Protocol: Serial
Port: To be specified by user PC
Baud rate: 1500000
Please check XON/XOFF but not RTS/CTS
Check Save session
After all, click connect
Illusion: If open more than one serial terminal tools, and they use the same serial port, there will be

14
Customize the embedded system based on YourIdea
reported the port is busy.
Solution: Turn off the serial tool that unnecessary.
6 Burn Images
6.1 Install Driver
Step 1, Install CP2102 driver.
Plug the USB-to-UART cable CP2102 to the PC, unzip CP2102WIN7.rar on Windows, then click
preInstaller.exe to install
Now the device will be listed under Device Manager -> PORTS with unique serial port assigned

15
Customize the embedded system based on YourIdea
Step 2, Install Rockchip Driver Assistant(
Path:
Release_DriverAssitant/DriverInstall.exe)
Step 3, After the installation is complete, connect the board and PC with USB Type-C cable, then
power on, in Computer Management can see the following information:
3

16
Customize the embedded system based on YourIdea
6.2 Upgrade Uniform Firmware
Step 1, unzip AndroidTool_Release_v2.63 on Windows.
Step 2, open AndroidTool.exe (Path: AndroidTool\AndroidTool_Release_v2.63\AndroidTool.exe)
Step 3, connect PC and development board with USB Type-C cable, keep pressing the Recover Key
and power on, until the windows PC shows Found one LOADER Device.

17
Customize the embedded system based on YourIdea
Step 4, click Upgrade Firmware -> Firmware, select update.img. Click Upgrade to flash.
Download completed.

18
Customize the embedded system based on YourIdea
If necessary, user can choose to update the firmware separating.
Step 1, Click the column on the right side for the path of the file want to flash.
Step 2, Select the checkbox on the left.
Step 3, Click “run” to flash the image.

19
Customize the embedded system based on YourIdea
7 Android Application
7.1 Serial Terminal
Connect the board and PC with USB Serial cable, then power on, the terminal will output startup
information.
7.2 ADB
Execute the follow commands to turn off verity of system partition before enable ADB.
# adb root
# adb disable-verity
# adb reboot (reboot the board)
# adb root (after boot system)
# adb remount
Now you can use adb to push file to the board.
Table of contents
Other Boardcon Embedded Design Motherboard manuals