diff --git "a/\345\275\222\346\241\243/OH\347\216\257\345\242\203\346\220\255\345\273\272 .md" "b/\345\275\222\346\241\243/OH\347\216\257\345\242\203\346\220\255\345\273\272 .md" index d074323c4bfac031a01c88280c16e29be2605b13..010175141a4bebb4d3da32a2b0ed3fbd388ae357 100644 --- "a/\345\275\222\346\241\243/OH\347\216\257\345\242\203\346\220\255\345\273\272 .md" +++ "b/\345\275\222\346\241\243/OH\347\216\257\345\242\203\346\220\255\345\273\272 .md" @@ -15,127 +15,139 @@ --------------------上述为wsl所需步骤,如使用VM等请忽略上述步骤----------------------- -清华开源镜像站: [ubuntu-20.04.6-desktop-amd64.iso](https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/20.04.6/) + 清华开源镜像站: [ubuntu-20.04.6-desktop-amd64.iso](https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/20.04.6/) -4.执行:ls -l /bin/sh,如果为dash环境则需要修改为bash。sudo dpkg-reconfigure dash,选择No,将Ubuntu shell由dash修改为bash。 +4.修改shell + + 执行:ls -l /bin/sh,如果为dash环境则需要修改为bash。 + sudo dpkg-reconfigure dash,选择No,将Ubuntu shell由dash修改为bash。 5.配置git与ssh公钥:https://www.jianshu.com/p/0c88bcaaaf13 6.git配置 -配置用户名 + 配置用户名 -git config --global user.name "用户名" + git config --global user.name "用户名" -配置邮箱 + 配置邮箱 -git config --global user.email "用户邮箱(与git上绑定的一致)" + git config --global user.email "用户邮箱(与git上绑定的一致)" -查看配置信息 + 查看配置信息 -git config --global --list + git config --global --list -生成公钥 + 生成公钥 -ssh-keygen -t rsa -C "用户邮箱(同上)" + ssh-keygen -t rsa -C "用户邮箱(同上)" -查看公钥 + 查看公钥 -cat ~/.ssh/id_rsa.pub + cat ~/.ssh/id_rsa.pub -测试配置是否成功 + 测试配置是否成功 -ssh -T git@gitee.com + ssh -T git@gitee.com -将上面的公钥配置到gitee公钥 (gitee点头像--设置--安全设置--ssh公钥--添加公钥:把上面复制的公钥粘贴进去) + 将上面的公钥配置到gitee公钥 (gitee点头像--设置--安全设置--ssh公钥--添加公钥:把上面复制的公钥粘贴进去) 7.安装依赖 -sudo apt-get update + sudo apt-get update + + sudo apt-get upgrade #可选 等待时间长 -sudo apt-get upgrade #可选 + sudo apt install python3-pip -sudo apt install python3-pip + sudo apt-get install python3-setuptools python3-pip -y -sudo apt-get install python3-setuptools python3-pip -y + sudo pip3 install --upgrade pip -sudo pip3 install --upgrade pip + sudo apt-get update && sudo apt-get install binutils git git-lfs gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip m4 bc gnutls-bin python3-pip ruby -sudo apt-get update && sudo apt-get install binutils git git-lfs gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip m4 bc gnutls-bin python3-pip ruby + sudo apt-get install default-jdk && sudo apt-get install libssl-dev && sudo apt-get install genext2fs -sudo apt-get install default-jdk && sudo apt-get install libssl-dev && sudo apt-get install genext2fs + sudo apt-get install u-boot-tools && sudo apt-get install mtools &&sudo apt-get install mtd-utils -sudo apt-get install u-boot-tools && sudo apt-get install mtools &&sudo apt-get install mtd-utils + sudo apt-get install scons && sudo apt-get install gcc-arm-none-eabi && sudo apt-get install gcc-arm-linux-gnueabi -sudo apt-get install scons && sudo apt-get install gcc-arm-none-eabi && sudo apt-get install gcc-arm-linux-gnueabi + sudo apt-get install genext2fs && sudo apt-get install liblz4-tool && sudo apt-get install openssl -sudo apt-get install genext2fs && sudo apt-get install liblz4-tool && sudo apt-get install openssl + sudo apt-get install libssl-dev && sudo apt install libtinfo5 -sudo apt-get install libssl-dev && sudo apt install libtinfo5 + sudo apt-get install libgl1-mesa-dev && sudo apt-get install libxcursor-dev + sudo apt-get install libxrandr-dev && sudo apt-get install libxinerama-dev 8.安装repo 必须先切换为root,装完切换回普通用户 -su root + su root -curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo + curl https://gitee.com/oschina/repo/raw/fork_flow/repo-py3 > /usr/local/bin/repo -chmod a+x /usr/local/bin/repo + chmod a+x /usr/local/bin/repo -pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple requests + pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple requests 9.安装git lfs -curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash + curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash -sudo apt-get install git-lfs + sudo apt-get install git-lfs -git lfs install + git lfs install 10.将python3建立软链接到python -sudo rm -rf /usr/bin/python + sudo rm -rf /usr/bin/python -sudo ln -s /usr/bin/python3 /usr/bin/python + sudo ln -s /usr/bin/python3 /usr/bin/python 11.repo拉代码 -(1) 初始化repo +(1) 初始化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 master --no-repo-verify (master分支) -repo init -u git@gitee.com:openharmony/manifest.git -b monthly --no-repo-verify(monthly分支) + repo init -u git@gitee.com:openharmony/manifest.git -b monthly --no-repo-verify(monthly分支) -repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-3.2-Beta3 --no-repo-verify + repo init -u git@gitee.com:openharmony/manifest.git -b OpenHarmony-3.2-Beta3 --no-repo-verify (3.2Beta3分支) + + repo init -u git@gitee.com:openharmony/manifest.git -b xxx(分支名) --no-repo-verify (xxx分支) # 拉取指定日期代码 -repo forall -c 'commitID=`git log --before "yyyy-MM-dd HH:mm" -1 --pretty=format:"%H"`;git reset --hard $commitID' + repo forall -c 'commitID=`git log --before "yyyy-MM-dd HH:mm" -1 --pretty=format:"%H"`;git reset --hard $commitID' -https://blog.csdn.net/fanyun_01/article/details/127129523 + https://blog.csdn.net/fanyun_01/article/details/127129523 (2)拉取代码 -repo sync -c # 下载代码等待时间长 + repo sync -c # 下载代码等待时间长 + + repo forall -c 'git lfs pull' -repo forall -c 'git lfs pull' + bash build/prebuilts_download.sh -bash build/prebuilts_download.sh +--------------------安装hb为可选----------------------- 12.安装hb: (1)运行如下命令安装hb - python3 -m pip install build/lite + python3 -m pip install build/lite (2)设置环境变量 - vim ~/.bashrc + vim ~/.bashrc - 将以下命令拷贝到.bashrc文件的最后一行,保存并退出。 + 将以下命令拷贝到.bashrc文件的最后一行,保存并退出。 - export PATH=~/.local/bin:$PATH + export PATH=~/.local/bin:$PATH 生效环境变量 - source ~/.bashrc + source ~/.bashrc ##### \ No newline at end of file diff --git "a/\345\275\222\346\241\243/xts\347\233\270\345\205\263.md" "b/\345\275\222\346\241\243/xts\347\233\270\345\205\263.md" index 4b63e40382a9d61513f5a66f3e71c2c9d1a3205d..03a563f75a7d74845063b553e2bf61fe5055a3ff 100644 --- "a/\345\275\222\346\241\243/xts\347\233\270\345\205\263.md" +++ "b/\345\275\222\346\241\243/xts\347\233\270\345\205\263.md" @@ -28,7 +28,7 @@ ​ 3) 将out\rk3568\suites\目录下的acts目录拷贝到本地。 ​ 4) 修改acts/config下的user_config.xml文件: - + ​ ![输入图片说明](config%E9%85%8D%E7%BD%AE.png) ​ 将其中的ip值设定为自己本地的ip,或者127.0.0.1