|
发表于 2021-9-1 14:52:10
只看该作者
6#
按照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':
现在就卡在这里了。
|
|