openharmony刷機(jī)教程。OpenHarmony為開(kāi)放原子開(kāi)源基金會(huì)的一個(gè)孵化項(xiàng)目,目標(biāo)是支持可在多種終端設(shè)備上運(yùn)行。OpenHarmony是自主研發(fā)并且不兼容安卓的全領(lǐng)域下一代開(kāi)源操作系統(tǒng)。許多人搞不懂openharmony如何用,下面小編帶來(lái)openharmony刷機(jī)教程。
openharmony從代碼倉(cāng)庫(kù)源碼獲取概述
首先注冊(cè)碼云gitee賬號(hào)以及碼云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工具,可執(zhí)行一下命令:
curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 》 /usr/local/bin/repo #如果沒(méi)有權(quán)限,可下載至其他目錄,并將其配置到環(huán)境變量中
chmod a+x /usr/local/bin/repo
pip3 install -i https://repo.huaweicloud.com/repository/pypi/simple requests
操作步驟
獲取輕量系統(tǒng)/小型系統(tǒng)源碼
通過(guò)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’
通過(guò)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’
獲取標(biāo)準(zhǔn)系統(tǒng)源碼(2.0 Canary)
1.創(chuàng)建然后切換到OpenHarmony工作目錄
mkdir OpenHarmony
cd OpenHarmony
2.repo初始化
repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
# 使用此命令初始化時(shí),可能會(huì)因?yàn)?a href="http://www.delux-kingway.cn/v/tag/1722/" target="_blank">網(wǎng)絡(luò)慢的問(wèn)題導(dǎo)致代碼更新失敗,可以嘗試以下命令來(lái)初始化:
repo init -u https://gitee.com/openharmony/manifest.git -b ssh/master --no-repo-verify
3.更新代碼
repo sync -c
4.更新二進(jìn)制
repo forall -c ‘git lfs pull’
以上就是小編為大家?guī)?lái)的openharmony刷機(jī)教程,希望對(duì)你有所幫助。
本文綜合自百度百科、gitee
責(zé)任編輯:haq
-
華為
+關(guān)注
關(guān)注
216文章
34550瀏覽量
253167 -
操作系統(tǒng)
+關(guān)注
關(guān)注
37文章
6901瀏覽量
123815 -
OpenHarmony
+關(guān)注
關(guān)注
25文章
3753瀏覽量
16670
發(fā)布評(píng)論請(qǐng)先 登錄
相關(guān)推薦
評(píng)論