Difference between revisions of "Lindenis V853"

From Lindenis Wiki
Jump to: navigation, search
(V853 Key Features)
(Build image)
 
(77 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== V853 Key Features ==
 
== V853 Key Features ==
[[File:V853-IC-Framework.png|900px|thumb|V853 Features Diagram]]
+
[[File:V853-IC-Framework.png|800px|thumb|V853 Features Diagram]]
[[File:V853-Application-Diagram.png|1000px|thumb|V853 Application Diagram]]
 
 
=== CPU ===
 
=== CPU ===
 
*Cortex-A7@1.2 GHz CPU core, supporting 32 KB I-cache, 32 KB D-cache, and 128 KB L2 cache
 
*Cortex-A7@1.2 GHz CPU core, supporting 32 KB I-cache, 32 KB D-cache, and 128 KB L2 cache
Line 41: Line 40:
 
*Supports 2 video channels and 1 UI channel
 
*Supports 2 video channels and 1 UI channel
 
*Supports G2D hardware accelerator including rotate, mixer, scaler functions
 
*Supports G2D hardware accelerator including rotate, mixer, scaler functions
 +
 +
[[File:V853-Application-Diagram.png|800px|thumb|V853 Application Diagram]]
  
 
=== Display Output ===
 
=== Display Output ===
Line 72: Line 73:
 
*LFBGA318, 12mm x 12mm body size, 05mm ball pitch
 
*LFBGA318, 12mm x 12mm body size, 05mm ball pitch
  
=== Software Support ===
+
== Lindenis V853 AI EVB ==
*Linux-4.9
+
[[File:Lindenis-V853-AI-EVB-EN.png|1500px]]
 
 
== Target Applications ==
 
*SDV
 
*Smart IPC
 
*Smart Camera
 
Or you can use it to build:
 
*A computer
 
*A streaming server
 
 
 
== Accessories Step-by-Step Guides ==
 
 
 
=== Power Supply ===
 
 
 
* [http://files.lindeni.org/lindenis-v5/accessories/Power-Supply-Brief.pdf 5V 2A Power Supply]
 
 
 
=== HDMI Cable ===
 
 
 
* [http://files.lindeni.org/lindenis-v5/accessories/HDMI-Cable-Brief.pdf 4K HDMI Cable]
 
 
 
=== Camera module ===
 
 
 
* [http://files.lindeni.org/lindenis-v5/accessories/Camera-Module-Brief.pdf 4K Camera Module brief]
 
 
 
=== LCD ===
 
 
 
* [http://files.lindeni.org/lindenis-v5/accessories/LCD-with-CTP-Brief.pdf 5" 720P LCD with CTP brief]
 
 
 
=== Flash module ===
 
 
 
* [http://files.lindeni.org/lindenis-v5/accessories/eMMC-Module-Brief.pdf 8GB eMMC Module brief]
 
 
 
=== WiFi and Bluetooth module ===
 
 
 
* [http://files.lindeni.org/lindenis-v5/accessories/WiFi-Module-Brief.pdf WiFi 802.11ac / BT4.2 Module brief]
 
 
 
== Hardware Specification ==
 
 
 
=== Board Features ===
 
 
 
==== Video Out ====
 
 
 
* HDMI 1.4 Type A, up to 4K@30FPS
 
* MIPI-DSI, 4 lanes, up to 1080P
 
* LCD interface
 
 
 
==== Video In ====
 
 
 
* 1 x MIPI-CSI2 - Camera interface, 4 lanes per channel
 
 
 
==== Audio ====
 
* 3.5mm Line in / out
 
* 1 x mic
 
* 1 x dmic
 
  
==== Network ====
+
== Lindenis V853 AI SOM ==
* 10/100/1000Mbps Ethernet
+
[[File:Lindenis-V853-AI-SOM-EN.png|1300px]]
* WiFi with Bluetooth (optional)
 
  
==== Storage ====
+
== Lindenis V853 AI DevKit ==
* MicroSD Card bootable, support SDHC and SDXC, storage up to 256GB
+
[[File:Lindenis-V853-AI-EVB-Suit.png|1300px]]
  
==== Expansion Ports ====
+
== Hardware Documents ==
* Board to Board connector - Flash module interface
+
=== Schematic ===
* Wi-Fi/BT Module Header - SDIO 3.0 and UART, pitch 2.0mm
+
* [http://files.lindeni.org/lindenis-v853/Documents/Schematic/Lindenis_V853_SOM_v2_0_SCHEMATIC.pdf Lindenis V853 SOM Schematic]
* 2x10 pins "Power Supply" GPIO Header: vbat, aldo1, bldo1, aldo3
+
* [http://files.lindeni.org/lindenis-v853/Documents/Schematic/Lindenis_V853_EVB_v3_1_SCHEMATIC.pdf Lindenis V853 EVB Schematic]
* 4 pins GPIO Header: TWI1
+
=== PCB Place Map ===
* 2x7 pins "I2S" GPIO Header
+
* [http://files.lindeni.org/lindenis-v853/Documents/Silk/Lindenis_V853_SOM_V2_0_PCB_Place_Map.pdf Lindenis V853 SOM PCB Place Map]
* 3 pins GPIO Header: PH4, PH10, GND
+
* [http://files.lindeni.org/lindenis-v853/Documents/Silk/Lindenis_V853_EVB_V3_1_PCB_Place_Map.pdf Lindenis V853 EVB PCB Place Map]
* 3 pins GPIO Header: 1xADC
+
=== Dimensions ===
* 4 pins GPIO Header: S-TWI
+
* [http://files.lindeni.org/lindenis-v853/Documents/Dimensions/Lindenis_V853_SOM_V2_0_DIMENSION.pdf Lindenis V853 SOM Dimensions]
* VBAT: Battery connector
+
* [http://files.lindeni.org/lindenis-v853/Documents/Dimensions/Lindenis_V853_EVB_V3_1_DIMENSION.pdf Lindenis V853 EVB Dimensions]
* Storage: Bootable MicroSD card
 
* Video out: HDMI 1.4, 4 lanes MIPI-DSI
 
* Video in: 1 x DVP
 
* Audio: 3.5mm Line in / out, 1 x mic
 
* Network: 10/100/1000Mbps Ethernet
 
* USB: 1 x Micro USB, 2 x USB 2.0
 
  
=== Board Information ===
+
=== Datasheet ===
* Board Dimensions: 130mm x 85mm
+
* If you want to get the Datasheet of V853, please send an e-mail to <b>services@lindeni.com</b> .<br>
* Input Power: 5V@2A micro USB connector, 3.7V Li-Ion battery connector
 
* [http://files.lindeni.org/lindenis-v536/Documents/Schematic_and_PCB/Lindenis_V536_SOM_Schematic.pdf Lindenis V536 SOM Schematic]
 
* [http://files.lindeni.org/lindenis-v536/Documents/Schematic_and_PCB/Lindenis_V536_SOM_PCB_Location_Map.pdf Lindenis V536 SOM PCB Place Map]
 
* [http://files.lindeni.org/lindenis-v536/Documents/Schematic_and_PCB/Lindenis_V536_Full_Function_Board_Schematic.pdf Lindenis V536 SBC Full-Function Board Schematic]
 
* [http://files.lindeni.org/lindenis-v536/Documents/Schematic_and_PCB/Lindenis_V536_SBC_mulit-function_pins_guide.pdf Lindenis V536 SBC mulit-function pins guide] | [http://files.lindeni.org/lindenis-v536/Documents/Schematic_and_PCB/Lindenis_V536_开发板管脚复用说明.pdf 中文]
 
* [http://files.lindeni.org/lindenis-v536/Documents/Schematic_and_PCB/Lindenis_V536_Full_Function_Board_PCB_Location_Map.pdf Lindenis V536 SBC Full-Function Board PCB Place Map]
 
* [http://files.lindeni.org/lindenis-v536/Documents/Schematic_and_PCB/src Lindenis V536 SBC Full-Function Board PCB Source Files]
 
** [https://pan.baidu.com/s/1jiMNIYvwvm3Y6gUuFZxKxg Clik here to get the documents package in Baidu NetDisk(access code:5i5k)]
 
================================V3_0================================
 
* [http://files.lindeni.org/lindenis-v536/Documents/Schematic_and_PCB/Lindenis_V536_V3_0_SOM_Schematic.pdf Lindenis V536 SOM V3_0 Schematic]
 
* [http://files.lindeni.org/lindenis-v536/Documents/Schematic_and_PCB/Lindenis_V536_V3_0_Full_Function_Board_Schematic.pdf Lindenis V536 SBC Full-Function Board V3_0 Schematic]
 
 
 
== Datasheet ==
 
* Allwinner V536 SOC Brief [http://files.lindeni.org/lindenis-v536/Documents/SOC_brief_and_spec/V536-Chinese-Brief.pdf 中文] | [http://files.lindeni.org/lindenis-v536/Documents/SOC_brief_and_spec/V536-English-Brief.pdf English]
 
* [http://files.lindeni.org/lindenis-v536/Documents/SOC_brief_and_spec/V5x6_Professional_Camera_SoC_Datasheet_V1.2.pdf Allwinner V536 SOC datasheet]
 
* [http://files.lindeni.org/lindenis-v536/Documents/SOC_brief_and_spec/Allwinner_V536_PINOUT_EN.xls Allwinner V536 PINOUT]
 
* [http://files.lindeni.org/lindenis-v5/datasheets/OP03-JS1158%20FORESEE_eMMC_NCEMASD9-08G%20SPEC%20A0%2020150701.pdf Foresee eMMC Datasheet]
 
* [http://files.lindeni.org/lindenis-v5/datasheets/AP6255%20IND%20datasheet_V1.1_12042017.pdf AP6255 Module Spec Sheet]
 
* [http://files.lindeni.org/lindenis-v5/datasheets/RTL8211F-CG-RealtekMicroelectronics.pdf Ethernet PHY Datasheet]
 
* [http://files.lindeni.org/lindenis-v5/datasheets/LX50HDI4002-V0.pdf LCD Module Specification]
 
* [http://files.lindeni.org/lindenis-v5/datasheets/GT911%20Capacitive%20Touch%20Controller%20Datasheet.pdf GOODiX GT911 5-Point Capacitive Touch Controller Datasheet]
 
* [http://files.lindeni.org/lindenis-v5/datasheets/GL850G%20Datasheet_128.pdf USB 2.0 Hub Controller]
 
  
 
== SDK ==
 
== SDK ==
Line 182: Line 101:
  
 
==== Features ====
 
==== Features ====
*Linux kernel 4.9 (official version)
+
* Linux kernel 4.9 (official version)
* U-Boot 2014.07
+
* U-Boot-2018
 
* ARM GCC based cross toolchain
 
* ARM GCC based cross toolchain
 
* Integrated build system
 
* Integrated build system
  
==== Main Components ====
 
 
==== Layout ====
 
==== Layout ====
 
<pre>
 
<pre>
 
├── build
 
├── build
 
├── config
 
├── config
├── Config.in
+
├── Config.in -> config/top_config.in
 +
├── device
 
├── dl
 
├── dl
 +
├── docs
 +
├── external
 
├── lichee
 
├── lichee
├── logs
+
├── Makefile -> build/top_main.mk
├── Makefile
 
 
├── package
 
├── package
 
├── prebuilt
 
├── prebuilt
├── rules.mk
+
├── rules.mk -> build/rules.mk
 
├── scripts
 
├── scripts
├── softwinner
 
 
├── target
 
├── target
 
├── toolchain
 
├── toolchain
Line 209: Line 128:
 
=== Download and Build ===
 
=== Download and Build ===
 
==== Prebuilt Image ====
 
==== Prebuilt Image ====
For fast begin, you can download the [[http://files.lindeni.org/lindenis-v536/Images prebuilt image] here.<br>
+
[http://files.lindeni.org/lindenis-v853/Images Download from FTP]<br>
[https://pan.baidu.com/s/1WZ1uSpZPoVP2e4P8xXkbbA 国内开发者请在此下载]提取码:4p3h
+
[https://pan.baidu.com/s/1NLhlMsYKSXy3phn8OfulUg?pwd=v853 Download from Baidu Netdisk]
  
 
==== System requirements ====
 
==== System requirements ====
Line 222: Line 141:
  
 
==== Lazy Start ====
 
==== Lazy Start ====
Here are VMware station 14 image files which include the whole compiled SDK. And the SDK remote repositoreies are on gitee (not github).
 
<br>
 
<b>[https://pan.baidu.com/s/1y-bSgRf87lp_qjJgeVPe5w Click here to get it]</b>  (access code: tq4x)
 
<br>
 
The password of the Ubuntu 14.04 in the VMware is "lindenis". Enjoy it !
 
  
 
==== Linux host setup ====
 
==== Linux host setup ====
Line 254: Line 168:
 
Ctrl-X to leave, save your changes, and you're done!
 
Ctrl-X to leave, save your changes, and you're done!
  
==== Downloading ====
+
==== SDK Source Code Downloading ====
The SDK is available on [https://github.com/lindenis-org github]. For Chinese developer, it is available on [https://search.gitee.com/?skin=rec&type=repository&q=lindenis gitee] too.
+
[http://wiki.lindeni.org/index.php/Lindenis_V853_Github Download from Github]<br>
<br>由于国内从Github上下载速度较慢,建议从Gitee上下载 --> [http://wiki.lindeni.org/index.php/Lindenis_V536_Gitee Another way to get the SDK from Gitee]
+
[https://pan.baidu.com/s/1NcdHO3-on2BU04uXFXoTkQ?pwd=v853 Download from Baidu Netdisk]
<br>
 
<br>We use Repo manage Git repositories. Clone Repo from [https://android.googlesource.com/tools/repo android Git repositories] or other mirrors and install it.
 
Becase there are some big files in the SDK, please run the following command before you start the downloading.
 
<pre>
 
$ git config --global http.postBuffer 524288000
 
</pre>
 
Then run this to check:
 
<pre>
 
$ git config --list
 
</pre>
 
 
 
For Lindenis V536 SBC, download the SDK on Github via:
 
 
 
<pre>
 
$ mkdir lindenis-v536
 
$ cd lindenis-v536
 
$ repo init -u https://github.com/lindenis-org/manifest.git -b v536 -m lindenis-v536.xml
 
$ repo sync
 
</pre>
 
 
 
The Download time depends on your network connection speed. After finish the download, you should get below directories and files:
 
<pre>
 
build  config  Config.in  device  dl  lichee  Makefile  package  prebuilt  rules.mk  scripts  softwinner  target  toolchain  tools
 
</pre>
 
 
 
Start a branch for local workspace:
 
<pre>
 
$ repo start lindenis-v536 --all
 
</pre>
 
  
 
==== Building ====
 
==== Building ====
 
===== Setup env =====
 
===== Setup env =====
*For Lindenis V536 SBC:
+
*For Lindenis-V853 AI EVB DevKit:
 
<pre>
 
<pre>
 
$ source build/envsetup.sh
 
$ source build/envsetup.sh
Line 303: Line 188:
  
 
Lunch menu... pick a combo:
 
Lunch menu... pick a combo:
     1. v536_Lindenis_SBC-tina       --For eMMC
+
     1. v853_lindenis-tina
    2. v536_Lindenis_SOM-tina        --For SPINOR
 
  
Which would you like? [Default v536_Lindenis_SBC]:1
+
Which would you like? [Default v853_lindenis]:1
 
</pre>
 
</pre>
  
Line 325: Line 209:
 
===== Build image =====
 
===== Build image =====
 
<pre>
 
<pre>
 +
$ add-prebuilts-to-rootfs --ext4
 
$ pack
 
$ pack
 
</pre>
 
</pre>
  
 
==== Installation ====
 
==== Installation ====
* Install the eMMC module on the board.
 
 
'''[http://files.lindeni.org/lindenis-v536/Tools/PhoenixSuit_V1.1.0.7z PhoenixSuit]'''
 
'''[http://files.lindeni.org/lindenis-v536/Tools/PhoenixSuit_V1.1.0.7z PhoenixSuit]'''
 
* Download the PhoenixSuit_V1.1.0.7z ('''[http://files.lindeni.org/lindenis-v536/Tools/PhoenixSuit_V1.1.0.7z Click here]''')and extract to a local folder (note: Windows only) and run one of the installers.
 
* Download the PhoenixSuit_V1.1.0.7z ('''[http://files.lindeni.org/lindenis-v536/Tools/PhoenixSuit_V1.1.0.7z Click here]''')and extract to a local folder (note: Windows only) and run one of the installers.
 
* Open the PhoenixSuit.exe.
 
* Open the PhoenixSuit.exe.
 
[[File:PSM.JPG|500px]]
 
[[File:PSM.JPG|500px]]
 +
<br><br>
 
* Click the "firmware" button.
 
* Click the "firmware" button.
 
[[File:Firmware.png|500px]]
 
[[File:Firmware.png|500px]]
 +
<br><br>
 
* Click the "image" button to select the image file.
 
* Click the "image" button to select the image file.
[[File:selectImage.png|500px]]
+
[[File:V853-image.png|500px]]
* For Lindenis_V536_DIBAN_V2_0, Make sure the two USB shift switches Switch A and Switch B on the right gear like the picture. Switch A should be on '''"ON"''' and Switch B should be on '''"1"'''.
+
<br><br>
[[File:Selectkey.jpg|500px]]
+
* You can trigger the image downloading follow these step:
* For Lindenis_V536_DIBAN_V3_0, it's a new way. You just only need to press down the key.Like the picture show you.
+
** 1) Connect the EVB to your PC via a USB cable, and you will see the green light. If you get a blue one, click the USB Select button to switch it.  
[[File:Lindenis-v536-v2.jpg|500px]]
+
** 2) Keep long press the "FEL" key, then press the "RESET" key to reset the board. Please just '''keep pressing''' the "FEL" key.
[[File:Lindenis-v536-v2-key-show.png|500px]]
+
[[File:V853 FEL mark.jpg|700px]]
* Now the PC tool is ready. Just '''keep pressing''' the "fel" key on the SBC.
+
<br><br>
[[File:FELKEY.jpg|500px]]
+
* Release the "FEL" key when you see below PC pop-up.
* After connected the SBC to PC via a USB cable, release the key, and the PhoenixSuit will enter the burn model.
 
 
[[File:BurnModel.JPG|500px]]
 
[[File:BurnModel.JPG|500px]]
 +
<br><br>
 
* If you want to keep the user data, please click "No". Click "Yes" will clean all datas in eMMC.Then will begin to download the image into eMMC.
 
* If you want to keep the user data, please click "No". Click "Yes" will clean all datas in eMMC.Then will begin to download the image into eMMC.
 
* If you can not start to download, just plug-out the USB cable and try again.
 
* If you can not start to download, just plug-out the USB cable and try again.
 
[[File:download.JPG|500px]]
 
[[File:download.JPG|500px]]
 +
<br><br>
 
* Wait until it finish downloading.
 
* Wait until it finish downloading.
 
[[File:Ok.JPG|500px]]
 
[[File:Ok.JPG|500px]]
  
== OS ==
+
== Tina Linux OS ==
=== Overview ===
 
Lindenis Video OS is the recommended operating system for normal use on Lindenis V536 series boards. Lindenis Video OS is maintained by [http://www.lindeni.com/ Lindenis Tech. Ltd.]. The SDK is hosted on [https://github.com/lindenis-org GitHub] and [https://gitee.com/lindenis Gitee].
 
===== Applications =====
 
[[File:LindenisVideoOS.png|500px|thumb|Lindenis Video OS Architecture]]
 
* Lindlive: a low-laternce A/V streaming application powered by Lindenis.
 
* Lindplayer: a meida player application powered Lindenis.
 
* Lindcamera: a camera application (supported preview, snapshot and recording) powered by Lindenis.
 
* ... ...
 
  
===== Framewrok =====
+
==== Overview ====
  
* FFindeni: a multimedia framework specialized for low-latency A/V processing built by Lindenis.  
+
Tina Linux is an embedded OS developed by Allwinner based on openwrt-14.07 SDK. The OS architecture of Tina Linux is shown in the following diagram, from bottom to top, which are Kernel & Driver, Libraries, System Services and Applications.[[File:V853 Tina Arch.jpg|650px|thumb|Tina Linux Architecture]]
* CedarX: a Allwinner official multimedia decoding framework.
 
* [http://www.minigui.org/ MiniGUI]: a tiny and efficiency open source GUI framework.
 
* ... ...
 
  
===== Libraries =====
+
===== Applications =====
  
* Runtime Libraries: the system basic libraries like libc and so on.
+
Applications layer is mainly to implement specific product functions and interaction logic. Developers can flexibly develop their own applications to achieve the various needs of customers.
* Libavwrapper: a Lindenis-built library abstracted the hardware operation of the A/V processing.
 
* [http://ffmpeg.org/ FFmpeg]: an open source software library for recording, converting and streaming audio and video.
 
* [http://live555.com/ Live555]: an open source software library for streaming audio and video.
 
* ... ...
 
  
===== Linux Kernel =====
+
===== System Services =====
  
* Official version: 4.9
+
System Services layer provides system infrastructure services, including system boot management, configuration management, storage and memory management, multimedia middleware, etc.
  
=== Reference Documents ===
+
===== Libraries =====
[http://files.lindeni.org/lindenis-v536/Documents/AW Allwinner Official Reference Documents]
 
If you cannot access the files, please send an e-mail to <b>services@lindeni.com</b> .<br>
 
[https://pan.baidu.com/s/1nerivuZUYfUCmc2OJrn6mQ 全志官方文档资料云盘下载-->提取码:v536]
 
  
=== System Setup ===
+
Libraries layer contains support for various system base libraries and third-party open source libraries, which allows system developers and application developers to develop new system services and applications based on the APIs provided by this layer.
  
===== Uart =====
+
===== Kernel & Driver =====
* By default, the ttyS3 is assigned to the Linux console. The UART transmit pin called "TX" and receive pin called "RX" are in the J12 pin group, whose label is DEBUG. And the bit rate is 115200 bps.See below red rectangle.
 
[[File:UART.jpg|500px]]
 
  
===== Camera =====
+
Kernel & Driver layer is the standard implementation of the Linux Kernel. And the Tina SDK for V853 is based on Linux-4.9 kernel.
The camera supports the imx317 module as default. If you need to change to imx307, you can follow the steps below:
+
<br><br><br><br><br><br><br>
*1.modify device/config/chips/v536/configs/Lindenis_SBC/sys_config.fex
 
  
find this:
 
<pre>
 
sensor0_mname = "imx317_mipi"
 
</pre>
 
change to:
 
<pre>
 
sensor0_mname = "imx307_mipi"
 
</pre>
 
*2. make menuconfig selection
 
<pre>
 
Allwinner --->
 
    eyesee-mpp --->
 
        -*-eyesee-mpp-middleware ............... eyesee-mpp-middleware for Tina Linux
 
            select sensor (use sensor imx307) --->
 
        () use sensor imx317
 
        (X) use sensor imx307
 
         () use sensor imx278
 
        () use sensor imx258
 
        () use sensor imx386
 
        () use sensor sc2232
 
</pre>
 
*3. do "make" and then flash the firmware.
 
 
===== ISP Tuning =====
 
 
'''Allwinner V536 [http://files.lindeni.org/lindenis-v536/Tools/ISP_Tools ISP Tuning Tool]''' | [https://pan.baidu.com/s/1Fpd9cQYXshiDqKzZEw4e6A 国内]提取码:c0u8
 
* Download the HawkviewTools-V3.0.2.7z and extract to a local folder (note: Windows only).
 
* Download the awTuningApp, push it into the board through ADB or SSH and then run it.
 
* Please refer to the documents in '''docs''' folder for usage.
 
* If you cannot access the files, please send an e-mail to <b>services@lindeni.com</b> .
 
 
===== Display =====
 
* Because of the limitation that there is one display engine module in V536, Lindenis-V536 SBC can not support dual-display.
 
 
* The default display device of the SDK and the prebuilt image is HDMI(1080p).
 
 
* If you have download the prebuilt image, and burn it into eMMC, you can switch the display device follow these steps:
 
 
'''Connect serial to control the board'''
 
 
* Firstly, you should connect the SBC debug UART to computer via a serial-USB cable so that you can send commands to the board through a PC serial software like Putty.
 
 
* After you connected successfully, you will see the log show on the PC serial software like this:
 
 
[[File:SBC_BOOT.JPG|frameless]]
 
 
'''Enter U-boot command mode'''
 
 
* Power on and press any keyboard key within 1s when you see the message below, then you can enter u-boot command mode.
 
 
* Under this mode, you can modify the kernel devices tree by FDT tools in u-boot.
 
 
[[File:EnterKey.jpg|frameless]]
 
 
'''Change display device configuration with FDT tool'''
 
 
* Input the follow command to switch display device between LCD and HDMI (1080p):
 
 
'''LCD:'''
 
<pre>
 
fdt set disp screen0_output_type <0x01>;
 
fdt set disp screen0_output_mode <0x04>;
 
fdt save;
 
reset;
 
</pre>
 
 
'''HDMI (1080p):'''
 
 
<pre>
 
fdt set disp screen0_output_type <0x03>;
 
fdt set disp screen0_output_mode <0x0a>;
 
fdt save;
 
reset;
 
</pre>
 
* You can also select different display device via configuration in sys_config.fex
 
<pre>
 
;----------------------------------------------------------------------------------
 
;disp init configuration
 
;
 
;disp_mode            (0:screen0<screen0,fb0>)
 
;screenx_output_type  (0:none; 1:lcd; 2:tv; 3:hdmi;5:vdpo)
 
;screenx_output_mode  (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
 
;                      (5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
 
;----------------------------------------------------------------------------------
 
[disp]
 
disp_init_enable        = 1
 
disp_mode                = 0
 
 
screen0_output_type      = 3
 
screen0_output_mode      = 10
 
 
</pre>
 
 
===== TouchPanel =====
 
* After you connected the CTP panel to the board, insmod its driver like this:
 
<pre>
 
insmod /lib/modules/4.9.118/gt9xx_ts.ko
 
</pre>
 
* sys_config.fex should config as follow:
 
<pre>
 
;----------------------------------------------------------------------------------
 
;capacitor tp configuration
 
;external int function
 
;wakeup output function
 
;notice ---    tp_int_port &  tp_io_port use the same port
 
;----------------------------------------------------------------------------------
 
[ctp]
 
ctp_used              = 1
 
ctp_name              = "gt911_1060"
 
ctp_twi_id            = 1
 
ctp_twi_addr          = 0x5d
 
ctp_screen_max_x      = 1280
 
ctp_screen_max_y      = 720
 
ctp_revert_x_flag    = 1
 
ctp_revert_y_flag    = 1
 
ctp_exchange_x_y_flag = 0
 
 
ctp_int_port          = port:PL06<6><default><default><default>
 
ctp_wakeup            = port:PL07<1><default><default><1>
 
</pre>
 
===== Ethernet =====
 
*sys_config.fex should config as follow:
 
<pre>
 
[gmac0]
 
gmac0_used        = 1  // 1: enable, 0 : disable
 
phy-mode          = "rgmii"
 
gmac_rxd3          = port:PE00<3><default><default><default>
 
gmac_rxd2          = port:PE01<3><default><default><default>
 
gmac_rxd1          = port:PE02<3><default><default><default>
 
gmac_rxd0          = port:PE03<3><default><default><default>
 
gmac_rxck          = port:PE04<3><default><default><default>
 
gmac_rxctl        = port:PE05<3><default><default><default>
 
gmac_clkin        = port:PE06<3><default><default><default>
 
gmac_txd3          = port:PE07<3><default><3><default>
 
gmac_txd2          = port:PE08<3><default><3><default>
 
gmac_txd1          = port:PE09<3><default><3><default>
 
gmac_txd0          = port:PE10<3><default><3><default>
 
gmac_txck          = port:PE11<3><default><3><default>
 
gmac_txctl        = port:PE12<3><default><3><default>
 
gmac_mdc          = port:PE13<3><default><3><default>
 
gmac_mdio          = port:PE14<3><default><3><default>
 
gmac_ephy25m      = port:PE15<3><default><default><default>
 
phy-rst            = port:PE21<1><default><default><0>
 
gmac-power0        = "vcc-ephy"
 
gmac-power1        = ""
 
gmac-power2        = ""
 
tx-delay          = 7
 
rx-delay          = 31
 
use_ephy25m        = 1
 
</pre>
 
===== Wifi =====
 
*sys_config.fex should config as follow:
 
<pre>
 
[wlan]
 
wlan_used          = 1
 
wlan_busnum        = 1
 
;wlan_usbnum        = 3
 
wlan_power          = "vcc33-wifi"
 
wlan_io_regulator  = "vcc-pg"
 
;wlan_en            = port:PG11<1><default><default><0>
 
wlan_regon          = port:PG11<1><default><default><0>
 
wlan_hostwake      = port:PL05<6><default><default><0>
 
</pre>
 
*make sure CONFIG_BCMDHD is configured when make kernel_menuconfig
 
<pre>
 
CONFIG_BCMDHD = m
 
</pre>
 
*make sure PACKAGE_ap6255-firmware is configured when make menuconfig
 
<pre>
 
PACKAGE_ap6255-firmware = y
 
</pre>
 
*insmod driver as follow:
 
<pre>
 
insmod /lib/modules/4.9.118/bcmdhd.ko
 
</pre>
 
*Then you can use ifconfig and wpa_supplicant tools connect network
 
 
===== Bluetooth =====
 
*sys_config.fex should config as follow:
 
<pre>
 
[bt_para]
 
bt_used            = 1
 
bt_power            = "vcc33-wifi"
 
bt_io_regulator    = "vcc-pg"
 
bt_rst_n            = port:PG10<1><default><default><0>
 
</pre>
 
*You can take the follow shell cmd to start bt
 
<pre>
 
echo 0 > /sys/class/rfkill/rfkill0/state
 
sleep 2
 
echo 1 > /sys/class/rfkill/rfkill0/state
 
sleep 2
 
brcm_patchram_plus  --tosleep=200000 --no2bytes --enable_hci --scopcm=0,2,0,0,0,0,0,0,0,0 \
 
                        --baudrate 115200 --patchram /lib/firmware/BCM4345C0.hcd  /dev/ttyS1 &
 
</pre>
 
*When the bt device is started, you can use hciconfig tools to do someting you want
 
*(if hciconfig is not install, you should add it when make menuconfig)
 
 
===== Ethernet =====
 
*sys_config.fex should configured as follow:
 
<pre>
 
[gmac0]
 
gmac0_used        = 1
 
phy-mode          = "rgmii"
 
gmac_rxd3          = port:PE00<3><default><default><default>
 
gmac_rxd2          = port:PE01<3><default><default><default>
 
gmac_rxd1          = port:PE02<3><default><default><default>
 
gmac_rxd0          = port:PE03<3><default><default><default>
 
gmac_rxck          = port:PE04<3><default><default><default>
 
gmac_rxctl        = port:PE05<3><default><default><default>
 
gmac_clkin        = port:PE06<3><default><default><default>
 
gmac_txd3          = port:PE07<3><default><3><default>
 
gmac_txd2          = port:PE08<3><default><3><default>
 
gmac_txd1          = port:PE09<3><default><3><default>
 
gmac_txd0          = port:PE10<3><default><3><default>
 
gmac_txck          = port:PE11<3><default><3><default>
 
gmac_txctl        = port:PE12<3><default><3><default>
 
gmac_mdc          = port:PE13<3><default><3><default>
 
gmac_mdio          = port:PE14<3><default><3><default>
 
gmac_ephy25m      = port:PE15<3><default><default><default>
 
phy-rst            = port:PE21<1><default><default><0>
 
gmac-power0        = "vcc-ephy"
 
gmac-power1        = ""
 
gmac-power2        = ""
 
tx-delay          = 7
 
rx-delay          = 31
 
use_ephy25m        = 1
 
</pre>
 
*make sure CONFIG_SUNXI_GMAC is configured when make kernel_menuconfig
 
<pre>
 
CONFIG_SUNXI_GMAC = y
 
</pre>
 
 
===== Keypad =====
 
* The Keypad on the board is an GPADC keypad. The GPADC driver detect the different voltage of the keys and report the key value to user space via Linux standard Input Subsystem.<br>
 
* Here is the parameters show in the sys_config.fex:
 
<pre>
 
;----------------------------------------------------------------------------------
 
;resistance gpadc configuration
 
:gpadc_used :  Enable the GPADC
 
;channel_num:  Maxinum number of channels supported on the platform.
 
;channel_select:  channel enable setection. channel0:0x01  channel1:0x02 channel2:0x04 channel3:0x08
 
;channel_data_select:  channel data enable.  channel0:0x01  channel1:0x02 channel2:0x04 channel3:0x08.
 
;channel_compare_select:  compare function enable channel0:0x01  channel1:0x02 channel2:0x04 channel3:0x08.
 
;channel_cld_select:  compare function low data enable setection: channel0:0x01  channel1:0x02 channel2:0x04 channel3:0x08.
 
;channel_chd_select:  compare function hig data enable setection: channel0:0x01  channel1:0x02 channel2:0x04 channel3:0x08.
 
;----------------------------------------------------------------------------------
 
[gpadc]
 
gpadc_used                      = 1
 
channel_num                    = 1
 
channel_select                  = 0x01
 
channel_data_select            = 0
 
channel_compare_select          = 0x01
 
channel_cld_select              = 0x01
 
channel_chd_select              = 0x01
 
channel0_compare_lowdata        = 1700000
 
channel0_compare_higdata        = 1200000
 
key_cnt                        = 5
 
key0_vol                        = 116
 
key0_val                        = 115
 
key1_vol                        = 233
 
key1_val                        = 114
 
key2_vol                        = 357
 
key2_val                        = 139
 
key3_vol                        = 473
 
key3_val                        = 28
 
key4_vol                        = 586
 
key4_val                        = 102
 
</pre>
 
 
===== Audio =====
 
====== audiocodec ======
 
*sys_config.fex should configured as follow:
 
<pre>
 
[sndcodec]
 
sndcodec_used  = 0x1
 
 
[i2s]
 
i2s_used        = 0x1
 
 
[codec]
 
codec_used      = 0x1
 
lineoutvol      = 0x1f
 
maingain        = 0x4
 
headsetmicgain  = 0x4
 
adcagc_cfg      = 0x0
 
adcdrc_cfg      = 0x0
 
adchpf_cfg      = 0x0
 
dacdrc_cfg      = 0x0
 
dachpf_cfg      = 0x0
 
pa_ctl_level    = 0x1
 
pa_msleep_time  = 0xa0
 
gpio-spk        = port:PH10<1><1><default><default>
 
</pre>
 
 
====== i2s ======
 
*sys_config.fex should configured as follow, and the param should configured accord your device need:
 
:'''if you i2s1 is used'''
 
<pre>
 
[snddaudo0]
 
snddaudio0_used    = 1
 
 
[daudio0]
 
daudio0_used        = 1
 
daudio_master      = 4
 
audio_format        = 4
 
signal_inversion    = 1
 
slot_width_select  = 32
 
pcm_lrck_period    = 128
 
msb_lsb_first      = 0
 
sign_extend        = 0
 
frametype          = 0
 
mclk_div            = 1
 
tdm_config          = 0
 
tx_data_mode        = 0
 
rx_data_mode        = 0
 
</pre>
 
 
:'''if you i2s2 is used'''
 
<pre>
 
[snddaudo2]
 
snddaudio2_used    = 1
 
 
[daudio2]
 
daudio2_used        = 1
 
daudio_master      = 4
 
audio_format        = 1
 
signal_inversion    = 1
 
slot_width_select  = 32
 
pcm_lrck_period    = 32
 
msb_lsb_first      = 0
 
sign_extend        = 0
 
frametype          = 0
 
mclk_div            = 0
 
tdm_config          = 1
 
tx_data_mode        = 0
 
rx_data_mode        = 0
 
</pre>
 
*make sure CONFIG_SND_SUNXI_SOC_SUNXI_DAUDIO configured when make kernel_menuconfig
 
<pre>
 
CONFIG_SND_SUNXI_SOC_SUNXI_DAUDIO = y
 
</pre>
 
  
 
=== Lindenis-V853 Hardware Tester  ===
 
=== Lindenis-V853 Hardware Tester  ===
 
+
Coming soon ...
  
 
=== LindSDK Application Demo ===
 
=== LindSDK Application Demo ===
The application demos powered by Lindenis.<b>[http://files.lindeni.org/lindenis-v536/Demo/ Click here to download the demos]</b>
+
Coming soon ...

Latest revision as of 03:06, 20 June 2024

V853 Key Features

V853 Features Diagram

CPU

  • Cortex-A7@1.2 GHz CPU core, supporting 32 KB I-cache, 32 KB D-cache, and 128 KB L2 cache
  • Neon acceleration, integrated FPU
  • RISC-V@600 MHz core, supporting 16 KB I-cache and 16 KB D-cache

NPU

  • Maximum performance up to 1 Tops
  • Embedded 128KB internal buffer
  • Supports deep learning frameworks: TensorFlow, Caffe, Tflite, Pytorch, Onnx NN, and so on

Video Input

  • ISP
    • Maximum performance of 5M@30fps and maximum resolution of 3072x1772
    • Adjustable 3A functions (AE, AWB, and AF), and 3A parameters are adjustable
    • Supports ISP tuning tools for the PC
  • VIPP
    • Four VIPP YUV422 or YUV420 outputs
    • Maximum performance of 5M@30fps and maximum resolution of 3072 x 1772
  • 8-/10-/12-/16-bit parallel Camera Sensor Interface
    • Supports digital camera(DC),BT.601,BT.656,BT.1120 protocol
    • Maximum video capture resolution up to 5M@30fps
    • 1*4-lane MIPI-CSI interface
  • Supports DOL WDR mode and splitting into 2*2-lane MIPI-CSI
  • Supports 4-ch VC de-interleaver function
  • Maximum video capture resolution up to 5M@30fps

Video Engine

  • Video encoder
    • H.264/H.265 encoding up to 4K@15fps or 5M@25fps
    • JPEG encoding up to 1080p@60fps
  • Video decoder
    • Supports H.264 BP/MP/HP,JPEG
    • Real-time multiple streams H.264 encoding capability: 5M@25fps
    • JPEG snapshot performance of 1080p@60fps independently

Display Engine

  • Allwinher SmartColor post processing for an excellent display experience
  • Supports 2 video channels and 1 UI channel
  • Supports G2D hardware accelerator including rotate, mixer, scaler functions
V853 Application Diagram

Display Output

  • RGB LCD output interface up to 1920 1080@60fps
  • 1*4-lane MIPI-DSI interface up to 1920x1200@60fps

Audio

  • 1 DAC and 2 ADCs
  • Analog audio interfaces: MICIN1P/N,MICIN2P/N,LINEOUTP/N
  • Digital audio interfaces:12S/PCM X2,DMIC

Security System

  • AES, DES,3DES encryption and decryption algorithms
  • RSA/ECC signature verification algorithm
  • MD5/SHA and HMAC tamper proofing
  • PRNG/TRNG hardware random number generator
  • Integrated 2 Kbits OTP storage space

Connectivity

  • USB2.0 DRD
  • SDIO 3.0
  • WIEGAND
  • SPI x 4
  • UART x 4
  • TWI x 5
  • PWM(12 Channels)
  • GPADC(4 Channels)
  • 10/100/1000M EMAC with RMIland RGMII interfaces

Package

  • LFBGA318, 12mm x 12mm body size, 05mm ball pitch

Lindenis V853 AI EVB

Lindenis-V853-AI-EVB-EN.png

Lindenis V853 AI SOM

Lindenis-V853-AI-SOM-EN.png

Lindenis V853 AI DevKit

Lindenis-V853-AI-EVB-Suit.png

Hardware Documents

Schematic

PCB Place Map

Dimensions

Datasheet

  • If you want to get the Datasheet of V853, please send an e-mail to services@lindeni.com .

SDK

Overview

Features

  • Linux kernel 4.9 (official version)
  • U-Boot-2018
  • ARM GCC based cross toolchain
  • Integrated build system

Layout

├── build
├── config
├── Config.in -> config/top_config.in
├── device
├── dl
├── docs
├── external
├── lichee
├── Makefile -> build/top_main.mk
├── package
├── prebuilt
├── rules.mk -> build/rules.mk
├── scripts
├── target
├── toolchain
└── tools

Download and Build

Prebuilt Image

Download from FTP
Download from Baidu Netdisk

System requirements

Listed below are the recommended requirements for downloading and building the SDK:

  • CPU: x86_64 or better family processor
  • Memory: 8GB or higher
  • Disk: 20GB free hard disk space, if you build it in a Virtual machine, I recommand you allocate a 30G virtual hard disk.
    • The Whole SDK is about 15G.
  • OS: Ubuntu 14.04 (tested) or higher
  • Network: internet connection

Lazy Start

Linux host setup

Ubuntu 14.04

HINT: later version should also work.

Install prerequisites

$ sudo apt-get update
$ sudo apt-get install build-essential libncurses5-dev zlib1g-dev gawk git git-core ccache gettext libssl-dev xsltproc gperf subversion 
$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get install lib32z1 lib32ncurses5 libc6:i386 libstdc++6:i386

Sudo without password

$ sudo visudo

Add this line at the end (change “tom” to your username):

tom ALL=(ALL) NOPASSWD: ALL

Ctrl-X to leave, save your changes, and you're done!

SDK Source Code Downloading

Download from Github
Download from Baidu Netdisk

Building

Setup env
  • For Lindenis-V853 AI EVB DevKit:
$ source build/envsetup.sh
$ lunch

Then you will see the follwing menu, and enter the number to select the target case, and enter:

You're building on Linux

Lunch menu... pick a combo:
     1. v853_lindenis-tina

Which would you like? [Default v853_lindenis]:1
Build source
  • Build kernel and rootfs

If you are the first time downloaded the SDK and have not built the SDK before, run the below two commands, then exit and save the configuration at first.

$ make menuconfig
$ make kernel_menuconfig

Then make it and wait ...

$ make -j8 V=s
Build image
$ add-prebuilts-to-rootfs --ext4
$ pack

Installation

PhoenixSuit

  • Download the PhoenixSuit_V1.1.0.7z (Click here)and extract to a local folder (note: Windows only) and run one of the installers.
  • Open the PhoenixSuit.exe.

PSM.JPG

  • Click the "firmware" button.

Firmware.png

  • Click the "image" button to select the image file.

V853-image.png

  • You can trigger the image downloading follow these step:
    • 1) Connect the EVB to your PC via a USB cable, and you will see the green light. If you get a blue one, click the USB Select button to switch it.
    • 2) Keep long press the "FEL" key, then press the "RESET" key to reset the board. Please just keep pressing the "FEL" key.

V853 FEL mark.jpg

  • Release the "FEL" key when you see below PC pop-up.

BurnModel.JPG

  • If you want to keep the user data, please click "No". Click "Yes" will clean all datas in eMMC.Then will begin to download the image into eMMC.
  • If you can not start to download, just plug-out the USB cable and try again.

Download.JPG

  • Wait until it finish downloading.

Ok.JPG

Tina Linux OS

Overview

Tina Linux is an embedded OS developed by Allwinner based on openwrt-14.07 SDK. The OS architecture of Tina Linux is shown in the following diagram, from bottom to top, which are Kernel & Driver, Libraries, System Services and Applications.
Tina Linux Architecture
Applications

Applications layer is mainly to implement specific product functions and interaction logic. Developers can flexibly develop their own applications to achieve the various needs of customers.

System Services

System Services layer provides system infrastructure services, including system boot management, configuration management, storage and memory management, multimedia middleware, etc.

Libraries

Libraries layer contains support for various system base libraries and third-party open source libraries, which allows system developers and application developers to develop new system services and applications based on the APIs provided by this layer.

Kernel & Driver

Kernel & Driver layer is the standard implementation of the Linux Kernel. And the Tina SDK for V853 is based on Linux-4.9 kernel.







Lindenis-V853 Hardware Tester

Coming soon ...

LindSDK Application Demo

Coming soon ...