当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

device_board_seed

开发板介绍

​ EVB_OH1是一片尺寸为150mm100mm15mm的开发板,其结构紧凑,功能强大,外形美观,开发板上搭载有庞大的资源外设,同时开发板可搭载OpenHarmony操作系统,配套有DevEco Device Tool开发、调试环境,部分教程以及实验案例,开发者可以根据需求自由开发。EVB_OH1的外观如图1所示。

图1 EVB_OH1外观图

​ EVB_OH1板载有丰富的外设资源,便于多应用的开发和部署:

1、全志T507四核、主频 1.5GHz CPU; Mali-400 G31 GPU;

标配LPDDR4 2G内存;

标配eMMC 8G存储器;

2、Ethernet接口

3、3个USB,支持OTG

4、HDMI视频输出

5、LCD视频输出

6、Audio接口

7、支持4G、5G通讯 背部SIM卡

8、CAN总线接口

9、Wi-Fi/蓝牙

10、Camera接口

11、SDIO接口

12、CH340接口

13、Type-C电源接口

14、User's Key

15、E53 案例接口

图2 EVB_OH1外设资源图

​ 核心板芯片是一个全志T507高性能四核处理器。电源管理芯片AXP853T支持待机,按键开关机。工作电压为5V,最大功率小于2W。支持Andriod/Linux+QT/Harmony OS系统,工业级运行温度-25~75℃,连续运行寿命大于5年。全志T507如图3所示。常用接口参数说明如下:

图3 全志T507核心板

全志T507接口参数:

  • 拥有4路独立USB接口,其中一路为OTG
  • UART 串口6路TTL3.3V电平,其中一路为Debug
  • 98路GPIO接口(备注:有复用功能)
  • 6路PWM3.3V电平(备注:有复用功能)
  • LVDS显示为一路LVDS最大支持1920*1080 1080P60fps
  • RGB显示为一路RGB888输出最大支持1920*1080 1080P60fps HDMI显示 一路HDMI输出 支持4K 60fps输出
  • 一路CVBS输出
  • CAN总线包括一路CAN BUS2.0总线 两路SDIO接口,一路TF卡,另一路接 WIFI
  • 两路ADC接口
  • 5路I2C接口
  • 两路以太网,GMAC和EMAC PHY 接口
  • 多路电源输出1.8V 3.3V
  • 支持本地USB系统升级

全志T507应用处理器框图如图4所示。

图4 全志T507应用处理器框图

​ EVB_OH1开发板的Ethernet接口采用单口RJ45 Hanrun-HR911105A插头,直插式传输效率可达100M。三个具有OTG可扩展的USB接口可方便开发者与PC、移动设备、存储设备等进行数据交换。高清晰度多媒体接口HDMI(High Definition Multimedia Interface)是一种数字化视频、音频接口技术,支持传送无压缩的音频信号及高分辨率视频信号,最高支持1080P视频。LCD Interface可直接连接液晶显示屏,实现界面交互。Audio接口可传输高质量的音频。4G、5G通讯模块选用单通道IP101GR以太网芯片。芯片类型为Ethernet Transceivers,接口类型有四种MII, RMII, TP, Fiber,工作电压为3.3V。CAN接口集成电路High Speed EMC Opt CAN Transceiver选用芯片为SN65HVD1050DR总线接口是一种功能丰富的车用总线标准。用于和汽车等设备的相互通信,也可用于其他行业。图5为芯片SN65HVD1050DR内部原理。

图5 芯片SN65HVD1050DR 内部原理图

​ WIFI/蓝牙模块采用芯之联XR829芯片。它是一颗支持802.11b/g/n和蓝牙2.1/4.2的2.4GHz单芯片,集成了SDIO接口的无线局域网(WLAN)控制器和UART接口的蓝牙2.1/4.2控制器。它将无线局域网MAC、基带和射频集成在一个芯片中。XR829为高吞吐量、低功耗的无线局域网设备提供了WiFi和蓝牙的完整解决方案。芯片XR829工作流程如图6所示。

图6 芯片XR829工作原理

Camera接口可供开发者实现图像采集识别功能,广泛应用于人脸识别,智能摄像头、安防监控、车载记录仪等系统。

SDIO接口支持外部SD-Card扩展。CH340作为USB总线的转接芯片,实现USB转串口、USB转IrDA红外或者USB转打印口。

Type-C电源接口为系统提供一个稳定的5V/3A电源。用户按键为两个可编译按键F1,F2,一个复位按键RST,一个动力模式按键PWR。

板上搭载的E53接口,是一种资源丰富、易于扩展的标准接口,通过接入标准的E53案例扩展板,可以很容易的实现多种应用的开发和部署。E53接口标准如图7所示

图7 E53接口标准

  • 一路SPI(Synchronous Peripheral Interface)接口
  • 一路UART(Universal Asynchronous Receiver & Transmitter)接口
  • 一路IIC(The Inter Integrated Circuit)接口
  • 一路DAC(Digital to Analog Converter)接口
  • 一路ADC(Analog to Digital Converter)接口
  • 五路GPIO(General Purpose Input/Output)接口
  • 双路电源(5.0V/3.3V)输入

​ 搭载全志工业级T507芯片的EVB_OH1开发板,拥有强大的编解码能力和丰富的外围接口,与物联网新贵OpenHarmony L2 OS相结合,满足工业控制、智能驾舱、智慧家居、智慧电力、在线教育等诸多行业需求。

搭建开发环境

1)注册码云gitee账号。

2)注册码云SSH公钥,请参考码云帮助中心

3)安装git客户端git-lfs并配置用户信息。

git config --global user.name "yourname"

git config --global user.email "your-email-address"

git config --global credential.helper store

4)安装码云repo工具,可以执行如下命令。

curl -s https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo #如果没有权限,可下载至其他目录,并将其配置到环境变量中

chmod a+x /usr/local/bin/repo

pip3 install -i [https://repo.huaweicloud.com/repository/pypi/simple](https://gitee.com/link?target=https%3A%2F%2Frepo.huaweicloud.com%2Frepository%2Fpypi%2Fsimple) requests

获取代码流程

mkdir openharmony

cd openharmony

通过repo + https 下载。
repo init -u https://gitee.com/openharmony-sig/manifest.git -b master --no-repo-verify -m devboard_seed.xml

下载当前分支的代码:
repo sync -c

下载部分大容量二进制文件:
repo forall -c 'git lfs pull'

在源码根目录下执行脚本,安装编译器及二进制工具。
./build/prebuilts_download.sh

代码框架

/device/board/seed
├── T507
  ├── audio        #audio  驱动代码
  ├── camera       #camear 驱动代码
  ├── config       #开发版配置文件
  └── wifi         #WiFi   驱动代码

编译流程

1) 进入源码根目录,执行如下命令进行版本编译。
1 ./build.sh --product-name T507 --gn-args linux_kernel_version=\"linux-4.19\"   # 编译T507 L2的system.img/vendor.img等

2. cd ./device/soc/allwinner/build    # 重新进入allwinner/build目录

3. ./pack.sh                          # 生成img镜像文件

4. cd ../../../../out                # 进入out目录可看到生成的镜像文件

# 镜像文件为:t507_linux_bearpi_uart0.img

开发板烧录

注意:本文档基于T507_bearpi进行说明。

1、获取烧写软件:

​ 路径链接: https://gitee.com/vyagoo_0/seed_tools/tree/master/tools

​ 下载到本地后解压后得到如下文件:

├── LiveSuit.zip    # 烧录工具
└── UsbDriver.zip   # 烧录工具所需驱动

​ 解压相应压缩包,解压LiveSuit.zip并运行LiveSuit.exe如下:

LiveSuit.exe

​ 点击Image选择需要升级的镜像文件

2、安装驱动

注意:该步骤一般在首次刷机才需要,安装成功之后就不需要再次进行该步骤。

开发板无镜像上电或者切换至 usb 升级模式时,如果 PC 端没有安装驱动,在设备管理 器中将会被识别成未知设备,按以下步骤安装 usb 驱动即可: 驱动在解压出来的的目录下:UsbDriver

开发板上电开机,用 miniUSB 线连接到电脑,查看是否检测到设备(首次需要安装驱动)

打开设备管理器,找到未识别设备,选择右键菜单“更新驱动”

update_driver.png

选择浏览计算机查找驱动

update_driver1.png

进入解压出的目录:选择 UsbDriver 目录

update_driver2.png

等待设备安装完成,如下:

update_driver3.png

驱动安装完成,开发板切换到升级状态时,会被识别成 USB Device(VID_1f3a_PID_efe8)

3、刷机
  • 确保驱动安装后,确保机器上电并且连接好miniUSB数据线后,切换板子到升级模式即可开始烧录,切换方式如下:

​ 按住开发板上的OTA按键,然后按RST按键,如弹出如下弹窗说明开发板进去升级模式。

  • 根据需求选择**(是)(否)**便开始自动刷机

flash_image.png

  • 进度条更新,等待烧写成功即可。

flash_image_success.png

Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS

简介

基于seed开发板适配,主要存放板级配置. 展开 收起
C 等 3 种语言
Apache-2.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化