# OpenHarmony_XR806_manifest **Repository Path**: awol/open-harmony_-xr806_manifest ## Basic Information - **Project Name**: OpenHarmony_XR806_manifest - **Description**: 存放xr806鸿蒙代码下载链接 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 2 - **Created**: 2022-01-13 - **Last Updated**: 2023-01-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 下载方式 ## 环境搭建 请参照[OpenHarmony-QuickStart](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/quick-start/quickstart-lite-env-setup.md)。 ## 获取源码 1. 安装码云repo工具,可以执行如下命令 ```shell 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 requests ``` 2. 设置镜像源(可选) ```shell vim ~/.bashrc #在文件的最后输入以下内容 export PATH=~/bin:$PATH export REPO_URL=https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/ #设置完成后重启shell #设置为清华镜像源后,下载源码时如果提示server certificate verification failed,输入export GIT_SSL_NO_VERIFY=1后重新下载即可。 ``` 3. 下载源码 ```shell # OpenHarmony通用于各种系统,导致整个系统文件比较多,XR806把部分不必要的代码仓在xml中删除了。 # 如果想要减少或增加需要下载的代码仓,请把manifest仓fork到本地后,自行裁剪。 repo init -u https://gitee.com/awol/open-harmony_-xr806_manifest.git -b master --no-repo-verify -m devboard_xr806.xml repo sync -c repo forall -c 'git lfs pull' ``` 注意,master版本的代码在快速迭代中,openharmony_master更新到最新可能会导致编译不过,更新系统必须所有代码仓一起更新,否则也有可能编译不过。 如果发现编译不通过,可以在issue反馈问题,提醒管理员修复。 截止2022/1/13,代码测试正常。 截止2022/1/26,编译不通过,需要修改kernel\liteos_m\arch\arm\cortex-m33\gcc\NTZ\los_interrupt.c : 194行代码。 ```c LITE_OS_SEC_TEXT_MINOR VOID HalHwiDefaultHandler(VOID) { // UINT32 irqNum = HwiNumGet(); PRINT_ERR("%s irqnum:%u\n", __FUNCTION__, HwiNumGet()); while (1) {} } ```