Professional Documents
Culture Documents
com
ARM Cortex- A7
Android Manual
Rev.1.1
Oct, 2019
ATTENTIONS
- 2 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
1. Technical Support
1.1 Information about our company’s software and hardware
1.2 Problems related to our software and hardware manuals
1.3 After-sale technical support for OEM and ODM
1.4 Requirement of source code and other info which is lost or updated
1.5 Malfunction diagnose and other after-sale services
5. Accesses to Materials
Board related technical files will be provided via a dropbox download link
- 3 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Copyright Announcement
All rights with this manual are reserved by Baoding Forlinx Embedded Technology Co., Ltd.
Without written permissions from us, any form of copying, distributing and reprinting of any part
of this manual is illegal. Consequences led by that are all on the violator’s own risk
- 4 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Update Record
Version
Date Update
Manual Carrier board SoM
New supporting to resistive touching;
New supporting to dual-screen playing async;
New supporting to watchdog;
Dec., 2019 V1.1 V1.1/ V1.2 V1.1/ V1.2 New supporting to SPI read and write operations;
New supporting to LED control;
New supporting to GPS;
New supporting to BT module
Oct., 2019 V1.0 V1.1/ V1.2 V1.1/ V1.2 First edition
- 5 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Content
ATTENTIONS...............................................................................................................................................- 2 -
Update Record............................................................................................................................................... - 5 -
Content...........................................................................................................................................................- 6 -
Chapter 1 Hardware Features Overview......................................................................................................- 8 -
1.1 Overview of development board....................................................................................................................... - 8 -
1.2 Booting Mode(SD card, OTG, eMMC)............................................................................................................ - 8 -
1.3 Serial Printing Information...............................................................................................................................- 8 -
1.5 LCD Display..................................................................................................................................................... - 10 -
Chapter 2 Testing.........................................................................................................................................- 11 -
2.1 Android GUI..................................................................................................................................................... - 11 -
2.2 Storage(SD card/ USB).................................................................................................................................... - 11 -
2.3 USB Device........................................................................................................................................................- 13 -
2.4 Edit Picture....................................................................................................................................................... - 13 -
2.5 Video Playing.................................................................................................................................................... - 15 -
2.6 Play Music.........................................................................................................................................................- 17 -
2.7 Audio Test..........................................................................................................................................................- 17 -
2.8 Audio Volume Test............................................................................................................................................- 18 -
2.9 4G Network Test...............................................................................................................................................- 19 -
2.10 WiFi Test......................................................................................................................................................... - 19 -
2.11 Ethernet Test................................................................................................................................................... - 21 -
2.12 Backlight Control Test................................................................................................................................... - 23 -
2.13 RTC Test..........................................................................................................................................................- 23 -
2.14 UART Test.......................................................................................................................................................- 24 -
2.15 Camera Test.................................................................................................................................................... - 26 -
2.15.1 DVR test...................................................................................................................................................................... - 26 -
2.15.2 Camera test.................................................................................................................................................................. - 28 -
2.15.3 Camera2 test................................................................................................................................................................ - 29 -
- 7 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Note: system will boot from SD card by default, if without a SD card or uboot can not be recognized in SD
card, the board will find uboot in eMMC,
- 8 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
2. run hyper terminal and do settings as below
- 9 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
- 10 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Chapter 2 Testing
2.1 Android GUI
Boot the board for the first time, it will prompt to choose Launcher type
Udisk is the mounted U-disk, SD cards are the mounted TF card and SD card
- 12 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Internal shared storage eMMC space is 8GB with 7.3GB used. Portable devices including U-disk, SanDisk SD card and
TF card. We can check files in the devices, take SD card for example as below
Boot system, and mount a USB mouse to host port, we’ll see the cursor and we can do some operations by the
mouse.
- 13 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
- 14 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Prepare a video file and copy it to SD card or U-disk, choose -> , and then choose the target file to play.
Choose “Allow” option for all and then agree the agreement, choose target file to play.
- 15 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Choose
- 16 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Note: speaker, headphone and HDMI audio card are all enabled and all can output sound.
Copy a prepared music file to SD card or U-disk, choose -> -> Musician, and then choose a target file to play
Note: speaker, headphone and HDMI audio card are all enabled and all can output sound.
->
- 17 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Choose finish and save the recorded file, and choose quit to cancel the record.
Audio record finished, choose -> -> playing list-> my record, choose a target file to playback
- 18 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
2.9 4G Network Test
OKA40i-C can support EC20 4G wireless network.
Mount a module to carrier board, a SIM card is necessary, power on the board and we’ll see 4G signal available .
Set-> wireless and network-> more-> mobile network-> preferred network type, choose 4G
Note:
1. 4G wireless module is an optional module, if you need and want to buy it, please contact us to get latest price;
2. When doing 4G wireless network testing, please unplug Ethernet cable and turn off WiFi
- 19 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Users can turn on/ off wifi by the up right corner icon, once it detects available AP, it will be listed on screen
- 20 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Choose one trusted AP to connect by input pass code
Set Ethernet
- 21 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
DHCP is the default mode. To set it to static IP mode, please set IP address, gateway, DNS1, DNS2 and physical address
as below example
IP:192.168.1.150
Network prefix length:9
gateway:192.168.1.20
DNS1:8.8.8.8
Save the settings
- 22 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Note: Once Ethernet is available, WiFi will be disabled
Note: before the testing please cancel ‘auto update data and time’ and ‘auto update time zone’ options, otherwise, it’s not
able to do the test.
- 23 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Set data and time, and cut off the board and power on it again, we’ll see that time updated.
1. Click Setup icon, set serial port, baud rate and then operate as below
- 24 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
2. Console
3. Emission
4. Input information to be sent, and the data will be sent out as ASCII. Input information in sending text box and then
send it out, the data will be sent out by serial and will be received by PC.
- 25 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Please set serial port number, baud rate and data bit according to your real condition.
In Forlinx system, there are camera , DVR and camera2 Apps. For DVR, system will run with
UVC camera and analog camera for the fist channel, if no UVC, analog will be the first channel. To camera application,
when there is UVC, run UVC camera, and when UVC is not available, analog will be the fist channel. Camera2 will take
UVC as rear camera and CMOS-OV5640 will be a front camera.
Mount UVC, OV5640 and TVIN cameras all to the board.
- 26 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Hit to start recording, users can hit to lock, and hit again to stop the recording.
Take photos by
Click the shrinking screen on the bottom right corner to switch front and rear camera.
- 27 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
2.15.2 Camera test
UVC is enabled by default (video0), if no USB camera plugged to UVC, analogy camera Video4 will be enabled.
When it runs for the first time, it needs to set visiting authority.
Users can do some settings such as network and latency by up right corner menu , users can also set resolution by
slid on screen from left to right.
- 28 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Set video mode, slid on screen from left to right, and then click to switch to video mode, and hit
to start record.
Note: camera module is an option module, if you need and want to buy it, please contact us to get latest price.
- 29 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
- 30 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
2.16 HDMI Test
Android system can support HDMI (with audio and video output) together with LCD or LVDS playing synchronously.
Cable type is HDMI typeA.
1. Connect HDMI to board(please make sure your HDMI display has built-in voice box)
2. Power on the board to boot system, we can see there are sync output on HDMI.
Note:
1. Please install ADB
2. ADB source is provided, if it’s not compatible with your PC, please install a compatible one, source path: OKA40iC
OKT3-C/ Android/ tool/ android_usb_driver\.
3. Different systems may detect the device with different names, it doesn’t matter.
- 31 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
2.18 Resistive LCD Test
Note: the image is based on Forlinx 7’’ resistive LCD module with resolution of 800x 480, in android7 low resolution
mode, it will automatically fit to shrinking screen mode and no back option.
1. Flash OS image and run the system for the first time, calibration is needed.
->
- 32 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Hit the screen again to quit calibration and back to main interface
2. We can also do calibration when system is running. Before calibration, please delete the former calibration file rm
/data/etc/pointercal and then restart the board.
3. ->
-> ->
- 33 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Hit Start icon and frequently click Feed icon to feed the dog, once Feeding stopped, system will restart
2. -> ->
- 34 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
-> ->
Hit LED1 and LED2 to control LED5 and LED6 on carrier board.
- 35 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
2.23 BT Test
There is WiFI& BT module on board, before testing, please fix 2.4G antenna to carrier board, BT name is Realtek
Bluetooth
-> ->
- 36 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
- 37 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
2.install it
Finish installation, and system will indicate to upgrade it, the latest version we use is 3.5
- 38 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Note: projects on the left are built by the writer, just ignore them.
- 39 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
- 40 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Power on the board, and USB OTG connected to PC USB port
5.emulate to run the program, click the green tangle icon as shown above
6.output logcat to check
Click [Logcat], choose com.example.helloworld
- 41 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Release Lichee
1. Verify source code pack integrity and compare it with lichee_md5.txt
# md5sum lichee.tar.gz
2. Decompress source code pack
# cd /root/workspace/allwinner/
# tar xvf lichee.tar.gz
Release android
1.Verify source code pack integrity and compare it with android_md5.txt
# md5sum xaa
# md5sum xab
# md5sum xac
# md5sum xad
# md5sum xae
2.generate source code pack
# cat xa* > android.tar.gz
3.Verify source code pack integrity and compare it with android_md5.txt
# md5sum android.tar.gz
4.decompress source code pack
# cd /root/workspace/allwinner/
# tar xvf android.tar.gz
- 42 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Verify the released file directory structure
1. /root/workspace/allwinner$ pwd
/root/workspace/allwinner
2.
/root/workspace/allwinner$ ls
android lichee
- 43 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
- 44 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
including device/htc/flounder/vendorsetup.sh
including device/huawei/angler/vendorsetup.sh
including device/lge/bullhead/vendorsetup.sh
including device/linaro/hikey/vendorsetup.sh
including device/moto/shamu/vendorsetup.sh
including device/softwinner/a40-OKA40i_C/vendorsetup.sh
including device/softwinner/a40-p1/vendorsetup.sh
including device/softwinner/common/vendorsetup.sh
including device/softwinner/t3-p3/vendorsetup.sh
including sdk/bash_completion/adb.bash
4. Configure android board
$ lunch 24
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
TARGET_PRODUCT=a40_OKA40i_C
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.15.0-58-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF27D
OUT_DIR=out
- 45 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Note: it may take relative long time for the fist time compiling
7. Pack the image file
$ pack
Note:
1. It may take long time for compiling, it depends;
2. Image path maybe different because of different environment, relative path is lichee/tools/pack
- 46 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
4.5 Code Path
HAL code path
Device Source code in android Lib name
uart/RS485 hardware/aw/serialport libserial_port
APP code path
Device Source code in android Note
Camera3 vendor/forlinx/public/package/apps Pre-installed app
MainMenu vendor/forlinx/public/package/apps Pre-installed app
chrome vendor/forlinx/public/package/apps Pre-installed app
Update vendor/aw/private/apk/ Pre-installed app
ESFileExplorer vendor/aw/public/prebuild/apk Pre-installed app
CarletDriverRecorder vendor/aw/public/prebuild/apk Pre-installed app
- 47 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Go to next option and choose browser, and choose installation path, then go to next step
Next
- 48 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Choose brush the machine option, and choose browse to set image path
- 49 - www.forlinx.net
Android_UM
FETA40i-C/ OKA40i-C
Power on, and meanwhile, press FEL(K3) and RESET(K7) keys, then release RESET(K7) to start OTG flashing mode,
and at last release FEL(K3) to start flashing, below picture indicates flashing done
Mount SD card to PC via a card reader, choose ‘get drive letter’ and then ‘iamge file’ browse A40i firmware image,
choose ‘card mass production’ and then ‘install’, there will be a processing bar during flashing.
Card made, and mount it to board, power on the board to install image by the card, below information indicates flashing
done
- 50 - www.forlinx.net