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.8 python3-pip ruby
- Register for a cloud Gitee account.
- To register the SSH public key for the code cloud, please refer to the code cloud help center.
- Install the git client and git lfs, and configure user information.
git config --global user.name "yourname"
git config --global user.email "your-email-address"
git config --global credential.helper store
- To install the code cloud repo tool, you can execute the following command.
/* This command downloads files and saves them to /usr/local/bin/repo
If you don’t have permission, you can download it to another directory and add it to the environment variable
*/
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
- Steps for obtaining source code
repo init -u http://dd.youyeetoo.cn:8000/ohos_yy3568/manifest_yy3568 -b main -m default.xml
repo sync -c
repo forall -c 'git lfs pull'
bash build/prebuilts_download.sh
./build.sh --product-name YY3568 –ccache --no-prebuilt-sdk
- After compilation, the firmware is generated to the directory: out/YY3568/packages/phone/images
- Use RKDevTool.exe to burn the firmware. There is a config. cfg file in the image directory. Import the configuration into RKDevTool.exe and make sure that all your image directories are correct after importing the configuration.
- Press and hold the RECORDY button on the board, then power on. At this point, the device enters loader mode, and RKDevTool.exe will display that a Loader device has been found. Click to execute.