Trainee_Li 发表于 2023-9-14 02:14:12

BQ3568_代码下载



1.
安装
依赖
工具 安装命令如下:

    sudo apt-get update && sudo apt-get install binutils git git-lfs gnupg flexbison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multiliblibc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z1-dev ccachelibgl1-mesa-dev libxml2-utils xsltproc unzip m4 bc gnutls-bin python3.8python3-pip ruby

说明: 以上安装命令适用于Ubuntu18.04,其他版本请根据安装包名称采用对应的安装命令。
2.
获取
标准系统源码 前提条件:

   1)注册码云gitee账号。

   2)注册码云SSH公钥,请参考码云帮助中心(https://gitee.com/help)。

   3)安装git客户端和git-lfs并配置用户信息。

   git config --global user.name "yourname"
   git config --global user.email "your-email-address"
   git config --global credential.helper store

   4)安装码云repo工具,可以执行如下命令。
   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



获取各版本源码操作步骤:


[*]下载3.2-Release版本代码
   1) 通过repo + ssh 下载(需注册公钥,请参考码云帮助中心 https://gitee.com/help)。
    repo init -u git@gitee.com:bearkey/manifest.git -b bearkey-bq3568s-3.2release --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'

2) 通过repo +https 下载。
    repo init -u https://gitee.com/bearkey/manifest.git -b bearkey-bq3568s-3.2release --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'


[*]下载4.0-Beta1版本代码
   1) 通过repo + ssh 下载(需注册公钥,请参考码云帮助中心 https://gitee.com/help)。
    repo init -u git@gitee.com:bearkey/manifest.git -b bearkey-bq3568hm-4.0beta1 --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'

2) 通过repo +https 下载。
    repo init -u https://gitee.com/bearkey/manifest.git -b bearkey-bq3568hm-4.0beta1 --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'


[*]下载4.0-Beta2版本代码
   1) 通过repo + ssh 下载(需注册公钥,请参考码云帮助中心 https://gitee.com/help)。
    repo init -u git@gitee.com:bearkey/manifest.git -b bearkey-bq3568hm-4.0beta2 --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'

2) 通过repo +https 下载。
    repo init -u https://gitee.com/bearkey/manifest.git -b bearkey-bq3568hm-4.0beta2 --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'


[*]下载4.0-Release版本代码
   1) 通过repo + ssh 下载(需注册公钥,请参考码云帮助中心 https://gitee.com/help)。
    repo init -u git@gitee.com:bearkey/manifest.git -b bearkey-bq3568hm-4.0release --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'

2) 通过repo +https 下载。
    repo init -u https://gitee.com/bearkey/manifest.git -b bearkey-bq3568hm-4.0release --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'


[*]下载4.1-Release版本代码
   1) 通过repo + ssh 下载(需注册公钥,请参考码云帮助中心 https://gitee.com/help)。
    repo init -u ssh://git@gitee.com/bearkey/manifest.git -b OpenHarmony-v4.1-Release-bearkey --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'

2) 通过repo +https 下载。
    repo init -u https://gitee.com/bearkey/manifest.git -b OpenHarmony-v4.1-Release-bearkey --no-repo-verify
    repo sync -c
    repo forall -c 'git lfs pull'

执行prebuilts
   在源码根目录下执行脚本,安装编译器及二进制工具。   bash build/prebuilts_download.sh

   下载的prebuilts二进制默认存放在与OpenHarmony同目录下的OpenHarmony_2.0_canary_prebuilts下。
3.
编译
   在Linux环境进行如下操作: 进入源码根目录,执行如下命令进行版本编译。   ./build.sh --product-name rk3568 --ccache

   编译所生成的文件都归档在out/rk3568/目录下,固件输出在 out/rk3568/packages/phone/images/ 目录下。

zhbin1022 发表于 2023-9-19 10:23:15

什么时候可以把3588的库开放出来?

ench 发表于 3 天前

BQ3568 4.1 Release 代码下载 https://www.bearkey.net/thread-112-1-1.html
页: [1]
查看完整版本: BQ3568_代码下载