Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    新 SDK 平台下载 MR813 SDK

    A Series
    8
    11
    5174
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • WhycanService
      WhycanService LV 8 last edited by

      获取SDK

      SDK 使用 Repo 工具管理,拉取 SDK 需要配置安装 Repo 工具。

      Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to revision control systems, and automates parts of the development workflow. Repo is not meant to replace Git, only to make it easier to work with Git. The repo command is an executable Python script that you can put anywhere in your path.

      Repo官网:git-repo

      安装 Repo 工具

      可以用包管理器进行安装:

      # Debian/Ubuntu.
      $ sudo apt-get install repo
      
      # Gentoo.
      $ sudo emerge dev-vcs/repo
      

      也可以手动单独安装:

      $ mkdir -p ~/.bin
      $ PATH="${HOME}/.bin:${PATH}"
      $ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
      $ chmod a+rx ~/.bin/repo
      

      国内镜像源安装:

      $ mkdir -p ~/.bin
      $ PATH="${HOME}/.bin:${PATH}"
      $ curl https://mirrors.bfsu.edu.cn/git/git-repo > ~/.bin/repo
      $ chmod a+rx ~/.bin/repo
      

      由于谷歌服务器位于国外,每次运行时Repo会检查更新导致下载较慢,国内用户可以配置镜像源。否则会像下图一样卡住不动然后失败。

      8d60364e-7c3d-42a9-88e8-40778344fee1-image.png

      更换镜像源

      Repo 的运行过程中会尝试访问官方的 git 源更新自己,更换镜像源可以提高下载速度。将如下内容复制到你的~/.bashrc 里

      $ echo export REPO_URL='https://mirrors.bfsu.edu.cn/git/git-repo' >> ~/.bashrc
      $ source ~/.bashrc
      

      如果您使用的是 dash、hash、 zsh 等 shell,请参照 shell 的文档配置。

      配置保存身份认证

      新版本 git 默认加强了安全性,身份认证不会保存,导致拉取 repo 需要多次输入密码,可以用下列命令配置:

      git config --global credential.helper store
      

      20c115a9-6a4c-40cc-8b35-9d70bc65974e-image.png

      常见问题

      • 卡在Downloading Repo source from https://gerrit.googlesource.com/git-repo 不动。

        • 国内网络较慢,参照上面的更换镜像源解决。
      • 配置保存身份认证无效不启用

        • 检查是否运行了 sudo git config --global credential.helper store 使用了 sudo 后保存的信息会存储到 root 用户下并非当前用户。
      • 出现错误 fatal: cannot make directory: File exists

        • 之前拉取了 repo 但是不完整,需要删除 .repo 文件夹重新拉取

      SDK 拉取

      以 Tina-MR813-OPEN 为例,讲述如何拉取 SDK。

      新建文件夹保存 SDK

      使用 mkdir 命令新建文件夹,保存之后需要拉取的 SDK,然后 cd 进入到刚才新建的文件夹中。

      $ mkdir Tina-MR813-OPEN
      $ cd Tina-MR813-OPEN
      

      初始化 Repo 仓库

      使用 repo init 命令初始化仓库,Tina-MR813-OPEN 的仓库地址是 https://sdk.aw-ol.com/git_repo/MR813_Tina_OPEN/manifest.git 需要执行命令:

      $ repo init -u https://sdk.aw-ol.com/git_repo/MR813_Tina_OPEN/manifest.git -b master -m Tina-MR813-OPEN.xml
      

      如果提示 Username for 'https://sdk.aw-ol.com': 请输入 全志在线开发者论坛 的用户名和密码。(注:需要全志在线开发者论坛LV2等级以上用户才有权限拉取 SDK)

      拉取 SDK

      使用命令 repo sync 拉取 SDK

      $ repo sync
      

      由于 SDK 普遍较大,拉取可能需要一定的时间。

      创建开发环境

      使用命令 repo start 创建开发环境分支

      $ repo start smartx-mr813-tina-v1.1 --all
      

      至此,SDK 获取完毕。

      KunYi Y 2 Replies Last reply Reply Quote Share 15
      • KunYi
        KunYi LV 8 @WhycanService last edited by

        @whycanservice

        repo sync
        难道不支持 git/ssh keyfile了吗?
        只剩下https?

        WhycanService 1 Reply Last reply Reply Quote Share 2
        • WhycanService
          WhycanService LV 8 @KunYi last edited by

          @kunyi 现在对于 AWOL 提供的SDK不需要了,企业用户NDA的还是需要的

          1 Reply Last reply Reply Quote Share 3
          • Y
            yueshuya LV 2 @WhycanService last edited by

            @whycanservice 请问初始化 REPO 仓库时,显示
            File "/home/shuiliu/.repo/repo/main.py", line 94
            )
            ^
            SyntaxError: invalid syntax
            这是什么问题呀

            Y 1 Reply Last reply Reply Quote Share 1
            • Z
              zzaaxx LV 1 last edited by

              66666666

              1 Reply Last reply Reply Quote Share 0
              • Y
                yueshuya LV 2 @yueshuya last edited by

                @yueshuya

                这个是因为python运行版本不对,改成运行python3 /usr/bin/repo ....就可以了

                1 Reply Last reply Reply Quote Share 0
                • B
                  bluera1n LV 4 last edited by

                  Thanks for releasing SDK.
                  Is this official SDK from Allwinner?

                  1 Reply Last reply Reply Quote Share 0
                  • B
                    bluera1n LV 4 last edited by

                    It seems this SDK is for MR813 not R128.
                    Maybe mistake?

                    1 Reply Last reply Reply Quote Share 0
                    • K
                      khan19882024 LV 1 last edited by

                      请问输入开发者论坛密码和 账号之后,为什么会在fetch时候卡住e6eeb3ec-6acd-4ea8-bd90-7aa3b7e3302e-1704249736665.png

                      F 1 Reply Last reply Reply Quote Share 0
                      • F
                        fairy LV 2 @khan19882024 last edited by

                        @khan19882024 我的也是这样,请问有解决吗

                        1 Reply Last reply Reply Quote Share 0
                        • L
                          ljtty LV 2 last edited by

                          请问Allwinner_MR813_User_Manual在哪里可以下载呢

                          1 Reply Last reply Reply Quote Share 0
                          • 1 / 1
                          • First post
                            Last post

                          Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                          行为准则 | 用户协议 | 隐私权政策