mirror of
https://github.com/openharmony/device_board_lockzhiner.git
synced 2026-07-01 02:45:32 -04:00
添加最新的rk2206适配源代码
Signed-off-by: lockzhiner_wang-xiaobin <wangxb@fzlzdz.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
|
||||
|
||||
if (ohos_kernel_type == "liteos_m") {
|
||||
import("//kernel/liteos_m/liteos.gni")
|
||||
module_name = get_path_info(rebase_path("."), "name")
|
||||
module_group(module_name) {
|
||||
modules = [
|
||||
"lockzhiner_rk2206",
|
||||
]
|
||||
}
|
||||
}
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
orsource "*/Kconfig.liteos_m.board"
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
orsource "*/Kconfig.liteos_m.defconfig.board"
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
# device_board_lockzhiner
|
||||
|
||||
#### Description
|
||||
该仓库托管福州市凌睿智捷电子有限公司开发的产品样例代码,主要包括(1)小凌派-RK2206开发板 。该开发板主控器为瑞芯微高性能、高性价比的RK2206芯片,搭载OpenHarmony操作系统,内置WiFi/AP功能、NFC功能、液晶显示接口以及E53接口,E53接口兼容各类传感器模块。
|
||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
@@ -1,37 +1,53 @@
|
||||
# device_board_lockzhiner
|
||||
|
||||
#### 介绍
|
||||
该仓库托管福州市凌睿智捷电子有限公司开发的产品样例代码,主要包括(1)小凌派-RK2206开发板 。该开发板主控器为瑞芯微高性能、高性价比的RK2206芯片,搭载OpenHarmony操作系统,内置WiFi/AP功能、NFC功能、液晶显示接口以及E53接口,E53接口兼容各类传感器模块。
|
||||
|
||||
该仓库托管福州市凌睿智捷电子有限公司开发的产品样例代码,主要包括小凌派-RK2206开发板的相关案例代码。
|
||||
|
||||
* 小凌派-RK2206开发板
|
||||
小凌派-RK2206开发板是由福州市凌睿智捷电子有限公司出品,主控器为瑞芯微高性能、高性价比的RK2206芯片,搭载OpenHarmony操作系统,内置WiFi/AP功能、NFC功能、液晶显示接口以及E53接口,E53接口兼容各类传感器模块,便于多样化的IoT物联网应用;目前小凌派-RK2006开发板已经拥有20+个成熟的应用案例,以及完善的教学课程,可广泛的应用于智慧城市、智能家居、智慧教学、智慧车载以及智慧医疗等多种场景。
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
代码路径:
|
||||
|
||||
```
|
||||
device/board/lockzhiner/ --- vendor_lockzhiner 仓库路径
|
||||
└── BUILD.gn
|
||||
└── Kconfig.liteos_m.boards
|
||||
└── Kconfig.liteos_m.defconfig.boards
|
||||
└── lockzhiner_rk2206
|
||||
└── BUILD.gn
|
||||
└── Kconfig.liteos_m.board
|
||||
└── Kconfig.liteos_m.defconfig.board
|
||||
└── liteos_m
|
||||
└── BUILD.gn
|
||||
└── config.gni
|
||||
└── README.en.md
|
||||
└── README.md
|
||||
```
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
无
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
无
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
#### 特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
||||
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
||||
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
|
||||
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
|
||||
if (ohos_kernel_type == "liteos_m") {
|
||||
import("//kernel/liteos_m/liteos.gni")
|
||||
module_name = get_path_info(rebase_path("."), "name")
|
||||
module_group(module_name) {
|
||||
modules = [ "liteos_m" ]
|
||||
}
|
||||
}
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
config BOARD_LOCKZHINER_RK2206
|
||||
bool "select board lockzhiner_rk2206"
|
||||
depends on SOC_RK2206
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
int
|
||||
default 1000
|
||||
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
import("//kernel/liteos_m/liteos.gni")
|
||||
|
||||
module_name = get_path_info(rebase_path("."), "name")
|
||||
kernel_module(module_name) {
|
||||
}
|
||||
Executable
+200
@@ -0,0 +1,200 @@
|
||||
# Copyright (c) 2021 GOODIX.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Kernel type, e.g. "linux", "liteos_a", "liteos_m".
|
||||
kernel_type = "liteos_m"
|
||||
|
||||
# Kernel version.
|
||||
kernel_version = "3.0.0"
|
||||
|
||||
# Board CPU type, e.g. "cortex-a7", "riscv32".
|
||||
board_cpu = "cortex-m4"
|
||||
|
||||
# Board arch, e.g. "armv7-a", "rv32imac".
|
||||
board_arch = ""
|
||||
|
||||
# Toolchain name used for system compiling.
|
||||
# E.g. gcc-arm-none-eabi, arm-linux-harmonyeabi-gcc, ohos-clang, riscv32-unknown-elf.
|
||||
# Note: The default toolchain is "ohos-clang". It's not mandatory if you use the default toochain.
|
||||
board_toolchain = "arm-none-eabi-gcc"
|
||||
|
||||
use_board_toolchain = true
|
||||
|
||||
# The toolchain path instatlled, it's not mandatory if you have added toolchian path to your ~/.bashrc.
|
||||
board_toolchain_path = ""
|
||||
|
||||
# Compiler prefix.
|
||||
board_toolchain_prefix = "arm-none-eabi-"
|
||||
|
||||
# Compiler type, "gcc" or "clang".
|
||||
board_toolchain_type = "gcc"
|
||||
|
||||
# xts ldflags
|
||||
board_ld_flags_xts = [
|
||||
"-Wl,--start-group",
|
||||
"-Wl,--whole-archive",
|
||||
# xts测试套件
|
||||
"-lhal_update_static",
|
||||
"-lhctest",
|
||||
"-lhota",
|
||||
"-lhuks_test_common",
|
||||
"-lmodule_ActsBootstrapTest",
|
||||
"-lmodule_ActsDfxFuncTest",
|
||||
"-lmodule_ActsHieventLiteTest",
|
||||
"-lmodule_ActsHuksHalFunctionTest",
|
||||
"-lmodule_ActsKvStoreTest",
|
||||
"-lmodule_ActsParameterTest",
|
||||
"-lmodule_ActsSamgrTest",
|
||||
"-lmodule_ActsUpdaterFuncTest",
|
||||
"-lmodule_ActsUtilsFileTest",
|
||||
"-lmodule_ActsWifiIotTest",
|
||||
"-lmodule_ActsWifiServiceTest",
|
||||
"-Wl,--no-whole-archive",
|
||||
"-Wl,--end-group",
|
||||
]
|
||||
|
||||
# lockzhiner applications
|
||||
board_ld_flags_lockzhiner = [
|
||||
"-Llibs",
|
||||
"-lblackbox",
|
||||
"-lcjson_static",
|
||||
"-ldump_static",
|
||||
"-lhal_file_static",
|
||||
"-lhal_sysparam",
|
||||
"-lhal_token_static",
|
||||
"-lhal_wifiaware",
|
||||
"-lhichainsdk",
|
||||
"-lhidumper_mini",
|
||||
"-lhievent_lite",
|
||||
"-lhilog_lite",
|
||||
"-lhilog_static",
|
||||
"-lhiview_lite",
|
||||
"-lhuks_3.0_sdk",
|
||||
"-lkernel",
|
||||
"-lmbedtls",
|
||||
"-lmusl-c",
|
||||
"-lmusl-m",
|
||||
"-lnative_file",
|
||||
"-lsamgr",
|
||||
"-lsamgr_adapter",
|
||||
"-lsamgr_source",
|
||||
"-lsec_static",
|
||||
"-lsysparam",
|
||||
"-ltoken_static",
|
||||
"-lutils_kv_store",
|
||||
"-lwifiaware",
|
||||
"-lwifiservice",
|
||||
# 特殊处理的静态库
|
||||
"-Wl,--start-group",
|
||||
"-Wl,--whole-archive",
|
||||
"-lbootstrap",
|
||||
"-lbroadcast",
|
||||
"-lhal_iothardware",
|
||||
"-lhardware",
|
||||
# 内核类
|
||||
#"-ltask_helloworld",
|
||||
#"-ltask_example",
|
||||
#"-lsemaphore_example",
|
||||
#"-ltimer_example",
|
||||
#"-lmutex_example",
|
||||
#"-lqueue_example",
|
||||
#"-levent_example",
|
||||
"-Wl,--no-whole-archive",
|
||||
"-Wl,--end-group",
|
||||
]
|
||||
|
||||
# Board related common compile flags.
|
||||
board_cflags = [
|
||||
"-nostartfiles",
|
||||
"-std=c99",
|
||||
"--inline",
|
||||
"-ggdb",
|
||||
"-gdwarf-2",
|
||||
"-O1",
|
||||
"-ffunction-sections",
|
||||
"-fdata-sections",
|
||||
"-mcpu=cortex-m4",
|
||||
"-mthumb",
|
||||
"-mthumb-interwork",
|
||||
"-mfloat-abi=soft",
|
||||
"-mfpu=fpv4-sp-d16",
|
||||
"-mapcs-frame",
|
||||
"-MD",
|
||||
"-fno-stack-protector",
|
||||
"-Wall",
|
||||
]
|
||||
board_cxx_flags = []
|
||||
board_ld_flags = [
|
||||
"-nostartfiles",
|
||||
"-ffunction-sections",
|
||||
"-fdata-sections",
|
||||
"-mcpu=cortex-m4",
|
||||
"-mthumb",
|
||||
"-mthumb-interwork",
|
||||
"-mapcs-frame",
|
||||
"-mfloat-abi=soft",
|
||||
"-mfpu=fpv4-sp-d16",
|
||||
"-Wl,-Tbin/board.ld",
|
||||
"-nostdlib",
|
||||
"--specs=nosys.specs",
|
||||
#"-Wl,--wrap=_malloc_r",
|
||||
#"-Wl,--wrap=_realloc_r",
|
||||
#"-Wl,--wrap=_reallocf_r",
|
||||
#"-Wl,--wrap=_free_r",
|
||||
#"-Wl,--wrap=_memalign_r",
|
||||
#"-Wl,--wrap=_malloc_usable_size_r",
|
||||
"-Wl,--wrap=printf",
|
||||
"-Wl,--wrap=sprintf",
|
||||
"-Wl,--wrap=snprintf",
|
||||
"-Wl,--wrap=vsnprintf",
|
||||
"-Wl,--wrap=vprintf",
|
||||
"-Wl,--gc-sections",
|
||||
"-Wl,--start-group",
|
||||
"-Wl,--whole-archive",
|
||||
"-lgcc",
|
||||
"-Wl,--no-whole-archive",
|
||||
"-Wl,--end-group",
|
||||
"-Wl,-Map=OHOS_Image.map,--cref",
|
||||
"-Wl,--gc-sections",
|
||||
]
|
||||
board_ld_flags += board_ld_flags_lockzhiner
|
||||
board_ld_flags += board_ld_flags_xts
|
||||
|
||||
|
||||
# Board related headfiles search path.
|
||||
board_include_dirs = [
|
||||
"//device/soc/rockchip/rk2206/hardware/include",
|
||||
"//device/soc/rockchip/rk2206/hardware/lib/CMSIS/Device/RK2206/Include",
|
||||
#"//kernel/liteos_m/kal/posix/include",
|
||||
#"//kernel/liteos_m/kernel/include",
|
||||
#"//kernel/liteos_m/kernel/arch/include",
|
||||
#"//kernel/liteos_m/kernel/arch/arm/cortex-m4/gcc",
|
||||
#"//kernel/liteos_m/utils",
|
||||
#"//kernel/liteos_m/kal/cmsis",
|
||||
#"//kernel/liteos_m/components/net/lwip-2.1/porting/include",
|
||||
#"//kernel/liteos_m/kal/libc/newlib/porting/include",
|
||||
#"//third_party/lwip/src/include",
|
||||
"//third_party/musl/porting/liteos_m/kernel/include",
|
||||
#"//kernel/liteos_m/kal/libc/newlib/porting/include",
|
||||
"//utils/native/lite/include",
|
||||
"//third_party/mbedtls/include",
|
||||
]
|
||||
|
||||
# Board adapter dir for OHOS components.
|
||||
board_adapter_dir = "//device/soc/rockchip/rk2206/adapter"
|
||||
|
||||
# Sysroot path.
|
||||
board_configed_sysroot = ""
|
||||
|
||||
# Board storage type, it used for file system generation.
|
||||
storage_type = ""
|
||||
Reference in New Issue
Block a user