Navigation

    全志在线开发者论坛

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

    D1 v1.0 编译执行lunch报错“Do you have the right repo manifest?”

    MR Series
    4
    11
    3508
    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.
    • X
      XIVN1987 LV 3 last edited by

      按照 https://d1.docs.aw-ol.com/study/study_2getsdk/ 说明从官方下载源码,然后编译,,执行 lunch 选择开发板后就报下面的错,,请问是什么原因?

      vision_opencv
      vmtouch
      vnstat
      vpnc
      wayland
      webkitgtk
      weston
      wget
      wolfssl
      wpan
      wrt350nv2
      xfsprogs
      xkeyboard
      xtables
      xupnpd
      xz
      yaml
      zeromq
      zlib
      zope.interface
      zstd
      ** Do you have the right repo manifest?
      -bash: cd: too many arguments
      
      1 Reply Last reply Reply Quote Share 0
      • whycan
        whycan晕哥 LV 9 last edited by

        执行了 source build/xxx.sh 吗?

        X 1 Reply Last reply Reply Quote Share 0
        • X
          XIVN1987 LV 3 @whycan last edited by

          @whycan
          执行了。。

          1 Reply Last reply Reply Quote Share 0
          • whycan
            whycan晕哥 LV 9 last edited by

            一脸懵x,没遇到过。

            X 1 Reply Last reply Reply Quote Share 0
            • X
              XIVN1987 LV 3 @whycan last edited by XIVN1987

              @whycan
              抱歉,,上次贴的打印信息不全,,完整信息如下:

              Lunch menu... pick a combo:
                   1. d1_mangopi_mq_rgb480x272_rtp-tina
                   2. d1_mangopi_mq_rgb800x480_gt9xx-tina
                   3. d1_nezha_min-tina
                   4. d1_nezha-tina
              
              Which would you like?: 1
              
              ** Don't have a platform spec for: 'd1'
              ** Must be one of aarch64
              actionlib
              add
              ade
              af
              ahcpd
              alabaster
              alfred
              ... ...
              xkeyboard
              xtables
              xupnpd
              xz
              yaml
              zeromq
              zlib
              zope.interface
              zstd
              ** Do you have the right repo manifest?
              

              我看了下,,这段打印对应于build/envsetup.sh中的下面一段

                  # check platform
                  local platform=$(echo -n $select | sed -e "s/_.*$//")
                  check_platform ${platform}
                  if [ $? -ne 0 ]; then
                      echo
                      echo "** Don't have a platform spec for: '$platform'" >&2
                      echo "** Must be one of ${PLATFORM_CHOICES}" >&2
                      echo "** Do you have the right repo manifest?" >&2
                      platform=
                  fi
              

              显然中间打印的那一堆单词就是代码找到的PLATFORM_CHOICES,,显然是找错了。。

              1 Reply Last reply Reply Quote Share 0
              • X
                XIVN1987 LV 3 last edited by

                从上面的代码看,打印出错信息是因为check_platform函数返回值不是0,,check_platform代码如下:

                function check_platform()
                {
                    local T=$(gettop)
                    [ -d "$T/target/allwinner" ] || return 1
                
                    local v
                    for v in ${PLATFORM_CHOICES}
                    do
                        [ "$v" = "$1" ] && return 0
                    done
                    return 1
                }
                

                我在“local T=$(gettop)那行下面添加”echo $(gettop)“,,结果打印信息竟然是”build config Config.in device dl lichee Makefile package prebuilt rules.mk scripts target toolchain tools /root/tina-d1-open“

                我的理解gettop应该返回”/root/tina-d1-open“才对,,不知道为什么现在打印出这么大内容

                1 Reply Last reply Reply Quote Share 0
                • X
                  XIVN1987 LV 3 last edited by

                  我找到原因了,,是因为我在我的.bashrc文件中做了如下定义:

                  function cd() {
                      builtin cd "$@" && ls
                  }
                  

                  也就是cd到一个目录后,自动执行ls显示当前目录的内容。。
                  好吧,,算是偷懒的代价吧 😢

                  whycan J S 3 Replies Last reply Reply Quote Share 0
                  • whycan
                    whycan晕哥 LV 9 @XIVN1987 last edited by

                    @xivn1987
                    啊这😂

                    X 1 Reply Last reply Reply Quote Share 0
                    • X
                      XIVN1987 LV 3 @whycan last edited by

                      @whycan 在 D1 v1.0 编译执行lunch报错“Do you have the right repo manifest?” 中说:

                      @xivn1987
                      啊这😂

                      修改系统命令 cd 的行为确实不太好。。
                      我已经把 cd & ls 命令改叫 cdl 了。。😊

                      1 Reply Last reply Reply Quote Share 0
                      • J
                        jordonwu LV 6 @XIVN1987 last edited by

                        @xivn1987 在 D1 v1.0 编译执行lunch报错“Do you have the right repo manifest?” 中说:

                        自动执行ls显示当前目录的内
                        还有这个骚操作

                        1 Reply Last reply Reply Quote Share 0
                        • S
                          sunmin LV 3 @XIVN1987 last edited by

                          @xivn1987 呃,感谢,还好有论坛可以参谋,我也遇到类似问题,D1,v2.1,lunch之后,combo:底下没有任何内容,把.bashrc中的alias,function,PATH,CLASSPATH清理之后就正常了,源码中的编译脚本有待改进 ,常用命令必需指定绝对路径00a4e9a0-16bd-4971-9350-dc1610489340-image.png

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

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

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