rice@rice:~$ sudo apt-get autoremove open-vm-tools
rice@rice:~$ sudo apt-get install open-vm-tools-desktop
rice@rice:~$ sudo apt-get install git
...
rice@rice:~$ git config --global user.email "you@example.com"
rice@rice:~$ git config --global user.name "Your Name"
rice@rice:~$ sudo apt-get install python3.8
rice@rice:~$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1
rice@rice:~$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 28, in <module>
from CommandNotFound import CommandNotFound
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 19, in <module>
from CommandNotFound.db.db import SqliteDatabase
File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 5, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
sudo cp apt_pkg.cpython-36m-x86_64-linux-gnu.so apt_pkg.so
rice@rice:~/xr806$ sudo apt install docker.io
rice@rice:~$ mkdir xr806
rice@rice:~$ cd xr806
rice@rice:~/xr806$ git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo
rice@rice:~/xr806$ vim git-repo/repo
rice@rice:~/xr806/$ sudo cp git-repo/repo /usr/bin/
rice@rice:~/xr806$ mkdir code
rice@rice:~/xr806$ cd code
rice@rice:~/xr806/code$ repo init -u https://gitee.com/openharmony/manifest.git -b OpenHarmony_1.0.1_release --no-repo-verify
rice@rice:~/xr806/code$ repo sync -c
rice@rice:~/xr806/code$ repo forall -c 'git lfs pull'
rice@rice:~/xr806/code$ cd device/
rice@rice:~/xr806/code/device$ git clone https://gitee.com/moldy-potato-chips/devboard_device_allwinner_xr806.git
rice@rice:~/xr806/code/device$ mv devboard_device_allwinner_xr806/ xradio
rice@rice:~/xr806/code/device$ cd ../
rice@rice:~/xr806/code$ cd vendor/
rice@rice:~/xr806/code/vendor$ git clone https://gitee.com/moldy-potato-chips/devboard_vendor_allwinner_xr806.git
rice@rice:~/xr806/code/vendor$ mv devboard_vendor_allwinner_xr806/ xradio
rice@rice:~/xr806$ mkdir tool
rice@rice:~/xr806$ cd tool
rice@rice:~/xr806/tool$ wget https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
rice@rice:~/xr806/tool$ tar -jxvf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
rice@rice:~/xr806$ docker pull swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:0.0.5
rice@rice:~/xr806$ sudo docker run -it -v $(pwd):/home/openharmony swr.cn-south-1.myhuaweicloud.com/openharmony-docker/openharmony-docker:0.0.5
root@c2aa13139a52:/home/openharmony# cd code/device/xradio/xr806/liteos_m
root@c2aa13139a52:/home/openharmony/code/device/xradio/xr806/liteos_m# vim config.gni
root@c2aa13139a52:/home/openharmony# cd code/device/xradio/xr806/xr_skylark
root@c2aa13139a52:/home/openharmony/code/device/xradio/xr806/xr_skylark# make menuconfig
root@c2aa13139a52:/home/openharmony/code/device/xradio/xr806/xr_skylark# apt-get install libncurses5-dev
make build_clean
make lib -j
root@c2aa13139a52:/home/openharmony/code#
本文分享自 Rice 嵌入式开发技术分享 微信公众号,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与 腾讯云自媒体同步曝光计划 ,欢迎热爱写作的你一起参与!