开源OpenHarmony润开鸿HH-SCDAYU800A开发板开箱体验
感谢润开鸿官方提供的RISC-V,OpenHarmony开发板,已经收到啦。迫不及待的打开体验一把,终于可以玩些有意思的事情。先来个开箱体验,输出第一篇文章开个头,为后续的把玩打基础。同时推荐更多的小伙伴玩起来,板子不错,很漂亮。唯一小遗憾是目前不支持主流的OpenHarmony5.1.0的系统。
开箱
本次测评的是润开鸿HH-SCDAYU800A开发板。该开发板在淘宝润开鸿企业店的售价为2699.00元。关于该开发板的详细技术资料,可以通过访问HiHope开源社区获取。HiHope开源社区的地址为:https://gitee.com/hihope_iot/DAYU800。
内容物
润开鸿HH-SCDAYU800A开发板的内容物包括:
- 润开鸿HH-SCDAYU800A开发板主体 *1
- 10.1寸MIPI屏幕 *1
- FPC天线 *1
官方介绍
产品信息
润和软件的大禹系列HH-SCDAYU800开发板基于平头哥TH1520芯片,支持Openharmony标准系统。该开发板支持蓝牙、Wi-Fi、音频、视频和摄像头等功能,具有丰富的扩展接口,支持多种视频输入输出接口,具备4K视频处理能力。集成4核高性能玄铁RISC-V处理器C910,AI算力达4TOPs,支持全链路安全防护,包含丰富的异构计算和高速IO资源。可用于平板、智慧大屏、智能NVR、AR/VR和低速UGV等高性能旗舰级的产品,支持医疗成像、视频会议、家用机器人和无人机。足以覆盖边缘计算、人工智能、图像识别、多媒体等领域。
产品亮点
- 高性能SOC:基于无剑600平台设计的高性能RISC-V SoC,12nm制程,四核玄铁C910 CPU,最高主频2.5GHz;4TOPS@int8 AI算力;内存可选4/8/16 GB 64bit LPDDR4X-3733,支持TF Card, or 16/32/64/128GB eMMC。
- GPU:支持OpenGL ES3.0/3.1/3.2;OpenCL 1.1/1.2/2.0;Vulkan 1.1/1.2;50.7GFLOPS, Fill 3168M pixels/s。
- Display:支持1xHDMI2.0 4K@60fps 4-lane MIPI DSI 4K@50fps。
- Camera:支持1x4-lane MIPI CSI + 1x2-lane MIPI CSI, up to 4K@30fps。
- 音视频功能:支持H265&H264 @ 4K 75fps decode;H265&H264 @ 4K 40fps encode;JPEG encoder up to 32Kx32K;JPEG decoder up to 16Kx16K;Headphone, Stereo Speaker, PDM MIC。
- 接口:支持4xUSB 3.0 TypeA, 1xUSB2.0 TypeC;2x10 Pin GPIO;Dual Gigabit Ethernet。
应用场景
- 平板、智慧大屏、智能NVR、AR/VR和低速UGV等高性能旗舰级的产品
- 医疗成像
- 视频会议
- 家用机器人
- 无人机
技术参数
- 芯片:曳影TH1520,芯片Quad-core C910 x4 架构 RISC-V,主频2.5GHz,工作电压12V/2A。
- 内存&存储:8GB/16GB LPDDR4X-3733,支持TF卡,或16/32/64/128GB eMMC。
- 通用规格:支持OpenHarmony、Linux系统,双网口,可通过双网口访问和传输内外网的数据,提高网络传输效率。
- 核心板尺寸:99.06mm x 84.45mm x 21mm,可满足小型终端产品空间需求。
- 丰富的扩展接口:支持多种视频输入输出接口(详见底板规格说明)。
润和HH-SCDAYU800开发板底板规则说明:
- CPU:TH1520 RISC-V 4xC910,最高2.5GHz。
- GPU:PowerVR B-Series BXM-4-64。
- NPU:4TOPs@INT8。
- 内存:4/8/16 GB 64位 LPDDR4X-3733。
- 存储:TF卡/eMMC。
- 视频:1 x HDMI,1 x 4通道MIPI DSI。
- 摄像头:2 x 2通道MIPI CSI,1 x 4通道MIPI CSI。
- 以太网:2*Gigabit PoE(支持可选配件)。
- Wi-Fi/蓝牙:RTL8723DS, 802.11 b/g/n,1*1 MIMO, BT4.2。
- 音频:1x耳机,1x扬声器,2x麦克风。
- USB:4x USB Type-A 3.0 主机,1x USB Type-C 2.0 设备(仅用于下载)。
- GPIO引脚:3xUART,1xI2C,1xSPI,1x5V,1x3.3V,2xGND。
- 操作系统:Openharmony OS 4.1Release。
- 电源输入:DC12V/2A。
- 底板尺寸:99.06mm x 84.45mm x 21mm。
开发环境搭建
1. 下载Ubuntu20.04镜像环境
首先,下载Ubuntu 20.04镜像环境,下载地址为:https://releases.ubuntu.com/20.04.6/ubuntu-20.04.6-desktop-amd64.iso。
2. 在VMware中安装Ubuntu20.04镜像
在VMware中安装Ubuntu20.04镜像时,建议设置内存为4GB,硬盘(SCSI)设置为200GB。
3. Ubuntu20.04编译环境配置
在Ubuntu20.04中配置编译环境,可执行以下命令:
sudo apt-get -f -y install git
sudo apt-get -f -y install dos2unix
sudo git clone https://gitee.com/itopen/openharmony_env_init.git
cd openharmony_env_init
sudo ./build.sh
运行上述命令后,会出现一系列选项供用户选择。根据提示进行操作,例如选择更换为阿里源(按a键)等。
4. DAYU800开发板代码下载
在Ubuntu20.04中配置好环境后,可下载DAYU800开发板的代码:
sudo repo init -u https://gitee.com/itopen/manifest.git -b OpenHarmony-3.2-Release -m devboard_dayu800.xml --no-repo-verify
sudo repo sync -c
sudo repo forall -c 'git lfs pull'
sudo repo start OpenHarmony-3.2-Release --all
5. DAYU800开发板代码编译
下载完代码后,进行编译:
# 首次编译
sudo ./build/prebuilts_download.sh# 全量代码编译
sudo ./build.sh --product-name dayu800 --gn-args full_mini_debug=false --ccache# 单模块编译
sudo ./build.sh --product-name dayu800 --ccache --build-target module# 内核模块编译
sudo ./build.sh --product-name dayu800 --ccache --build-target kernel
若打印出以下信息,则DAYU800开发板代码编译环境配置完成:
[OHOS INFO] /home/yyz/Desktop/openharmony_env_init/out/dayu800/packages/phone/images/
[OHOS INFO] /home/yyz/Desktop/openharmony_env_init/out/dayu800/packages/phone/images/sys_prod.img
[OHOS INFO] /home/yyz/Desktop/openharmony_env_init/out/dayu800/packages/phone/images/chip_prod.img
[OHOS INFO] /home/yyz/Desktop/openharmony_env_init/out/dayu800/packages/phone/images/system.img
[OHOS INFO] /home/yyz/Desktop/openharmony_env_init/out/dayu800/packages/phone/images/u-boot-with-spl.bin
[OHOS INFO] /home/yyz/Desktop/openharmony_env_init/out/dayu800/packages/phone/images/userdata.img
[OHOS INFO] /home/yyz/Desktop/openharmony_env_init/out/dayu800/packages/phone/images/vendor.img
[OHOS INFO] /home/yyz/Desktop/openharmony_env_init/out/dayu800/packages/phone/images/ramdisk.img
[OHOS INFO] /home/yyz/Desktop/openharmony_env_init/out/dayu800/packages/phone/images/updater.img
[OHOS INFO] /home/yyz/Desktop/openharmony_env_init/out/dayu800/packages/phone/images/boot.ext4
此外,部分模块的大小可能会超出标准,根据日志进行调整。
6. DevEco Studio IDE开发环境搭建
-
下载DevEco Studio IDE:从官方下载DevEco Studio IDE 4.1 Release安装包,下载地址为:https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_package_901_9/ee/v3/HqJ-6O2FQny86xtk_dg9HQ/devecostudio-windows-4.1.0.400.zip?HW-CC-KV=V1&HW-CC-Date=20240409T033730Z&HW-CC-Expire=315360000&HW-CC-Sign=BFA444BC43A041331E695AE2CFA9035A957AF107E06C97E793FD3D31D7096A0D。
-
安装DevEco Studio IDE:按照安装向导完成安装。
-
创建项目:
- 打开DevEco Studio,选择“Create Project”。
- 在“Application”中选择“Empty Ability”,点击“Next”。
- 选择默认的“Compile SDK”和“Compatible SDK”,点击“Finish”。
-
配置SDK:
- 点击“File”选择“Settings”,在“SDK”选项中选择“OpenHarmony”。
- 选中“API Version 11”,并选择对应4.1.7.5版本的“ArkTS”、“JS”、“Native”、“Previewer”及“Toolchains”选项,点击“OK”。
-
配置环境变量:
- 复制“Location”的路径。
- 编辑系统环境变量,选择“Path”,点击“新建”,粘贴“Location”的路径,并上移置顶。
-
验证配置:
- 打开CMD,输入“hdc.exe -h”,显示以下内容则为配置成功:
OpenHarmony device connector(HDC) ... ---------------------------------global commands:-----------------------------------h/help [verbose] - Print hdc help, 'verbose' for more other cmds-v/version - Print hdc version-t connectkey - Use device with given connect key---------------------------------component commands:------------------------------- session commands(on server):list targets [-v] - List all devices status, -v for detailstart [-r] - Start server. If with '-r', will be restart serverkill [-r] - Kill server. If with '-r', will be restart serverservice commands(on daemon):target mount - Set /system /vendor partition read-writetarget boot [-bootloader|-recovery] - Reboot the device or boot into bootloader\recovery.target boot [MODE] - Reboot the into MODE.smode [-r] - Restart daemon with root permissions, '-r' to cancel rootpermissionstmode usb - Reboot the device, listening on USBtmode port [port] - Reboot the device, listening on TCP port---------------------------------task commands:------------------------------------- file commands:file send [option] local remote - Send file to devicefile recv [option] remote local - Recv file from deviceoption is -a|-s|-z-a: hold target file timestamp-sync: just update newer file-z: compress transfer-m: mode syncforward commands:fport localnode remotenode - Forward local traffic to remote devicerport remotenode localnode - Reserve remote traffic to local hostnode config name format 'schema:content'examples are below:tcp:<port>localfilesystem:<unix domain socket name>localreserved:<unix domain socket name>localabstract:<unix domain socket name>dev:<device name>jdwp:<pid> (remote only)fport ls - Display forward/reverse tasksfport rm taskstr - Remove forward/reverse task by taskstringapp commands:install [-r|-s] src - Send package(s) to device and install themsrc examples: single or multiple packages and directories(.hap .hsp)-r: replace existing application-s: install shared bundle for multi-appsuninstall [-k] [-s] package - Remove application package from device-k: keep the data and cache directories-s: remove shared bundledebug commands:hilog [-h] - Show device log, -h for detailshell [COMMAND...] - Run shell command (interactive shell if no command given)bugreport [FILE] - Return all information from the device, stored in file if FILE is specifiedjpid - List pids of processes hosting a JDWP transportsecurity commands:keygen FILE - Generate public/private key; key stored in FILE and FILE.pub
- 打开CMD,输入“hdc.exe -h”,显示以下内容则为配置成功:
-
登录华为帐号:
- 点击“File”选择“Project Structure”,选择“Signing Configs”,登录华为帐号。
-
连接开发板:
- 将润开鸿HH-SCDAYU800A开发板和终端通过USB Type-C链接,此时在DevEco Studio IDE显示开发板相关信息。
-
运行项目:
- 点击DevEco Studio IDE右上角“RUN”按钮,润开鸿HH-SCDAYU800A开发板显示Hello World,则表示环境配置成功。
希望这篇博客能够帮助大家更好地了解和使用润开鸿HH-SCDAYU800A开发板。如果有任何问题或建议,欢迎在评论区留言。