js_wawayu 发表于 2021-9-1 10:19:02

repo error

.repo/repo/repo sync -c --no-tags
error:
GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync yocto/poky` to proceed.

js_wawayu 发表于 2021-9-1 10:52:48

error: Cannot fetch poky (GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync yocto/poky` to proceed.)

js_wawayu 发表于 2021-9-1 10:55:53

sdk代码同步报错,麻烦解决一下,谢谢

js_wawayu 发表于 2021-9-1 14:15:54

Fetching project app/demo
Fetching project distro
Fetching project app/QLauncher
Fetching project external/rkmedia
Fetching project yocto/meta-openembedded
Fetching project app/qsetting
Fetching project docs-soc_internal
Fetching project yocto/meta-rockchip
Fetching project yocto/meta-browser
Fetching project prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu
Fetching project external/softapDemo
Fetching project external/uvc_appFetching project external/rkscript

Fetching project u-boot
Username for 'https://gitlab.com':

js_wawayu 发表于 2021-9-1 14:28:19

error: Cannot fetch poky (GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync yocto/poky` to proceed.)
Fetching project external/rkwifibt
Fetching projects:24% (20/81)Exception in thread Thread-23:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
    success = self._FetchHelper(opt, project, *args, **kwargs)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
    prune=opt.prune)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 1229, in Sync_NetworkHalf
    self._InitGitDir(force_sync=force_sync)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 2267, in _InitGitDir
    raise e
GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync yocto/poky` to proceed.

js_wawayu 发表于 2021-9-1 14:52:10

按照wiki上的步骤安装工具,然后解压,解压完之后执行下面的三条repo sync:
.repo/repo/repo sync -l
.repo/repo/repo sync -c --no-tags
.repo/repo/repo start firefly --all

repo sync -l执行成功。
执行repo sync -c --no-tags过程中报错,如下:
error: Cannot fetch poky (GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync yocto/poky` to proceed.)
Fetching project external/rkwifibt
Fetching projects:24% (20/81)Exception in thread Thread-23:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
    success = self._FetchHelper(opt, project, *args, **kwargs)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 314, in _FetchHelper
    prune=opt.prune)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 1229, in Sync_NetworkHalf
    self._InitGitDir(force_sync=force_sync)
File "/home/ubuntu/project/jimmy/RK3399/rk3399_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 2267, in _InitGitDir
    raise e
GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync yocto/poky` to proceed.


如果这时用repo sync --force-sync yocto/poky 会提示输入账户密码,如下:
Username for 'https://gitlab.com':
现在就卡在这里了。

895816513 发表于 2021-9-1 15:22:14

你看看你的manifests仓库的版本对不对,我后面还更新了个提交

-PC:~/work/code_work/firefly/Linux/out_sdk/rk3399_linux_release_v2.5.1_20210301/.repo/manifests$ git log
commit 5e517602fc73eb859bdacadfbd46047157f4752b (HEAD -> default, origin/master, m/master)
Author: huangjc <service@t-firefly.com>
Date:   Tue Aug 31 15:12:19 2021 +0800

    rk3399: yocto: update

895816513 发表于 2021-9-1 16:26:20

是我弄错了,再拉取一次就好了
页: [1]
查看完整版本: repo error