openharmony刷機教程。OpenHarmony為開放原子開源基金會的一個孵化項目,目標是支持可在多種終端設備上運行。OpenHarmony是自主研發并且不兼容安卓的全領域下一代開源操作系統。許多人搞不懂openharmony如何用,下面小編帶來openharmony刷機教程。
openharmony從代碼倉庫源碼獲取概述
首先注冊碼云gitee賬號以及碼云SSH公鑰,之后安裝git客戶端和git-lfs并配置用戶信息:
git config --global user.name “yourname”
git config --global user.email “your-email-address”
git config --global credential.helper store
安裝碼云repo工具,可執行一下命令:
curl 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
操作步驟
獲取輕量系統/小型系統源碼
通過repo下載獲取OpenHarmony主干代碼
repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
repo sync -c
repo forall -c ‘git lfs pull’
通過repo下載獲取OpenHarmony release 分支代碼
repo init -u https://gitee.com/openharmony/manifest.git -b OpenHarmony_1.0.1_release --no-repo-verify
repo sync -c
repo forall -c ‘git lfs pull’
獲取標準系統源碼(2.0 Canary)
1.創建然后切換到OpenHarmony工作目錄
mkdir OpenHarmony
cd OpenHarmony
2.repo初始化
repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
# 使用此命令初始化時,可能會因為網絡慢的問題導致代碼更新失敗,可以嘗試以下命令來初始化:
repo init -u https://gitee.com/openharmony/manifest.git -b ssh/master --no-repo-verify
3.更新代碼
repo sync -c
4.更新二進制
repo forall -c ‘git lfs pull’
以上就是小編為大家帶來的openharmony刷機教程,希望對你有所幫助。
本文綜合自百度百科、gitee
責任編輯:haq
-
華為
+關注
關注
218文章
36005瀏覽量
262106 -
操作系統
+關注
關注
37文章
7402瀏覽量
129304 -
OpenHarmony
+關注
關注
33文章
3952瀏覽量
21102
發布評論請先 登錄
如何通過API獲取1688平臺商品詳情
調用拼多多開放平臺 API 獲取店鋪列表
請問下,openharmony支持哪一款龍芯的開發板?有沒有開源的龍芯的openharmony源碼?
鴻蒙應用元服務開發-Account Kit獲取華為賬號用戶信息概述
OpenHarmony4.1系統WiFi藍牙打不開時,教你如何排查解決問題
OpenHarmony5.0系統怎么去除鎖屏直接進入界面?教你2步搞定
openharmony刷機教程 源碼獲取概述
評論