找回密码
 立即注册
查看: 1440|回复: 1

BQ3568_代码下载

[复制链接]

31

主题

38

帖子

201

积分

中级会员

Rank: 3Rank: 3

积分
201
发表于 2023-9-14 02:14:12 | 显示全部楼层 |阅读模式
本帖最后由 Trainee_Li 于 2023-11-3 15:28 编辑


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'

执行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/ 目录下。
回复

使用道具 举报

0

主题

1

帖子

4

积分

新手上路

Rank: 1

积分
4
发表于 2023-9-19 10:23:15 | 显示全部楼层
什么时候可以把3588的库开放出来?
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则