Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] Repo synchronization on kernel failures

13

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
13

【Linux】 Repo synchronization on kernel failures

Posted at 10/16/2020 20:15:01      View:6383 | Replies:1        Print      Only Author   [Copy Link] 1#
Dear All,
I tried the steps from your wiki page to download Linux sdk but i get this errors on kernel fetch:

  1. Receiving objects: 100% (287977/287977), 274.76 MiB | 3.08 MiB/s, done.
  2. Resolving deltas: 100% (197062/197062), done.20 MiB | 4.89 MiB/s
  3. remote: Total 4933138 (delta 0), reused 0 (delta 0), pack-reused 4933137        ), 93.03 MiB | 7.72 MiB/s
  4. Receiving objects: 100% (4933138/4933138), 1.27 GiB | 5.40 MiB/s, done.
  5. Resolving deltas: 100% (4069423/4069423), done.
  6. error: Cannot fetch kernel (GitError: kernel update-ref: fatal: a179e620b38958254c1f74d283a9cf853ae20813^0: not a valid SHA1
  7. )
  8. Exception in thread Thread-39:
  9. Traceback (most recent call last):
  10.   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
  11.     self.run()
  12.   File "/usr/lib/python2.7/threading.py", line 754, in run
  13.     self.__target(*self.__args, **self.__kwargs)
  14.   File "/home/plobacz/rk3399/.repo/repo/subcmds/sync.py", line 305, in _FetchProjectList
  15.     success = self._FetchHelper(opt, project, *args, **kwargs)
  16.   File "/home/plobacz/rk3399/.repo/repo/subcmds/sync.py", line 351, in _FetchHelper
  17.     clone_filter=clone_filter)
  18.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 1560, in Sync_NetworkHalf
  19.     self._InitMRef()
  20.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 2944, in _InitMRef
  21.     self._InitAnyMRef(base + self.manifest.branch, active_git)
  22.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 2956, in _InitAnyMRef
  23.     active_git.UpdateRef(ref, dst, message=msg, detach=True)
  24.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 3345, in UpdateRef
  25.     self.update_ref(*cmdv)
  26.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 3411, in runner
  27.     (self._project.name, name, p.stderr))
  28. GitError: kernel update-ref: fatal: a179e620b38958254c1f74d283a9cf853ae20813^0: not a valid SHA1


  29. Fetching projects:  97% (39/40), done.
  30. error: Cannot fetch kernel (GitError: kernel update-ref: fatal: a179e620b38958254c1f74d283a9cf853ae20813^0: not a valid SHA1
  31. )
  32. Exception in thread Thread-81:
  33. Traceback (most recent call last):

  34.   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
  35.     self.run()


  36.   File "/usr/lib/python2.7/threading.py", line 754, in run


  37.     self.__target(*self.__args, **self.__kwargs)

  38.   File "/home/plobacz/rk3399/.repo/repo/subcmds/sync.py", line 305, in _FetchProjectList
  39.     success = self._FetchHelper(opt, project, *args, **kwargs)
  40.   File "/home/plobacz/rk3399/.repo/repo/subcmds/sync.py", line 351, in _FetchHelper
  41.     clone_filter=clone_filter)
  42.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 1560, in Sync_NetworkHalf
  43.     self._InitMRef()



  44.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 2944, in _InitMRef

  45.     self._InitAnyMRef(base + self.manifest.branch, active_git)
  46.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 2956, in _InitAnyMRef
  47.     active_git.UpdateRef(ref, dst, message=msg, detach=True)
  48.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 3345, in UpdateRef
  49.     self.update_ref(*cmdv)
  50.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 3411, in runner
  51.     (self._project.name, name, p.stderr))
  52. GitError: kernel update-ref: fatal: a179e620b38958254c1f74d283a9cf853ae20813^0: not a valid SHA1


  53. Updating files: 100% (254/254), done.ildrootUpdating files:  22% (56/254)
  54. Updating files: 100% (579/579), done.Updating files:  78% (457/579)
  55. Updating files: 100% (136/136), done.istroUpdating files:  40% (55/136)
  56. Updating files: 100% (131/131), done.ibdrm-rockchipUpdating files:  55% (73/131)
  57. Updating files: 100% (11764/11764), done.ibtUpdating files:  53% (6284/11764)
  58. Checking out projects:  85% (34/40) tensorflowfatal: failed to unpack tree object HEAD
  59. error: Cannot checkout kernel: GitError: Cannot initialize work tree for kernel
  60. Traceback (most recent call last):
  61.   File "/home/plobacz/rk3399/.repo/repo/main.py", line 628, in <module>
  62.     _Main(sys.argv[1:])
  63.   File "/home/plobacz/rk3399/.repo/repo/main.py", line 602, in _Main
  64.     result = run()
  65.   File "/home/plobacz/rk3399/.repo/repo/main.py", line 595, in <lambda>
  66.     run = lambda: repo._Run(name, gopts, argv) or 0
  67.   File "/home/plobacz/rk3399/.repo/repo/main.py", line 264, in _Run
  68.     result = cmd.Execute(copts, cargs)
  69.   File "/home/plobacz/rk3399/.repo/repo/subcmds/sync.py", line 982, in Execute
  70.     self._Checkout(all_projects, opt, err_event, err_results)
  71.   File "/home/plobacz/rk3399/.repo/repo/subcmds/sync.py", line 567, in _Checkout
  72.     self._CheckoutWorker(**kwargs)
  73.   File "/home/plobacz/rk3399/.repo/repo/subcmds/sync.py", line 447, in _CheckoutWorker
  74.     return self._CheckoutOne(opt, project, *args, **kwargs)
  75.   File "/home/plobacz/rk3399/.repo/repo/subcmds/sync.py", line 481, in _CheckoutOne
  76.     project.Sync_LocalHalf(syncbuf, force_sync=opt.force_sync)
  77.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 1623, in Sync_LocalHalf
  78.     self._InitWorkTree(force_sync=force_sync, submodules=submodules)
  79.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 3135, in _InitWorkTree
  80.     raise GitError('Cannot initialize work tree for ' + self.name)
  81. error.GitError: Cannot initialize work tree for kernel
  82. plobacz@DESKTOP-GH8CSLI:~/rk3399$ mc

  83. plobacz@DESKTOP-GH8CSLI:~/rk3399$ mc



  84. plobacz@DESKTOP-GH8CSLI:~/rk3399$  ls -l .repo/manifest.xml
  85. -rw-r--r-- 1 plobacz plobacz 520 Oct 16 13:13 .repo/manifest.xml
  86. plobacz@DESKTOP-GH8CSLI:~/rk3399$ grep kernel .repo/manifest.xml
  87. plobacz@DESKTOP-GH8CSLI:~/rk3399$ grep kernel .repo/manifest.xml
  88. plobacz@DESKTOP-GH8CSLI:~/rk3399$ mc


  89. plobacz@DESKTOP-GH8CSLI:~/rk3399$ repo sync -c kernel
  90. repo: warning: Python 2 is no longer supported; Please upgrade to Python 3.6+.

  91. ... A new version of repo (2.8) is available.
  92. ... New version is available at: /home/plobacz/rk3399/.repo/repo/repo
  93. ... The launcher is run from: /usr/bin/repo
  94. !!! The launcher is not writable.  Please talk to your sysadmin or distro
  95. !!! to get an update installed.

  96. error: Cannot fetch kernel (GitError: kernel update-ref: fatal: a179e620b38958254c1f74d283a9cf853ae20813^0: not a valid SHA1
  97. )
  98. Exception in thread Thread-1:
  99. Traceback (most recent call last):
  100.   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
  101.     self.run()
  102.   File "/usr/lib/python2.7/threading.py", line 754, in run
  103.     self.__target(*self.__args, **self.__kwargs)
  104.   File "/home/plobacz/rk3399/.repo/repo/subcmds/sync.py", line 305, in _FetchProjectList
  105.     success = self._FetchHelper(opt, project, *args, **kwargs)
  106.   File "/home/plobacz/rk3399/.repo/repo/subcmds/sync.py", line 351, in _FetchHelper
  107.     clone_filter=clone_filter)
  108.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 1560, in Sync_NetworkHalf
  109.     self._InitMRef()
  110.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 2944, in _InitMRef
  111.     self._InitAnyMRef(base + self.manifest.branch, active_git)
  112.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 2956, in _InitAnyMRef
  113.     active_git.UpdateRef(ref, dst, message=msg, detach=True)
  114.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 3345, in UpdateRef
  115.     self.update_ref(*cmdv)
  116.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 3411, in runner
  117.     (self._project.name, name, p.stderr))
  118. GitError: kernel update-ref: fatal: a179e620b38958254c1f74d283a9cf853ae20813^0: not a valid SHA1


  119. error: Cannot fetch kernel (GitError: kernel update-ref: fatal: a179e620b38958254c1f74d283a9cf853ae20813^0: not a valid SHA1
  120. )
  121. Exception in thread Thread-3:
  122. Traceback (most recent call last):
  123.   File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
  124.     self.run()
  125.   File "/usr/lib/python2.7/threading.py", line 754, in run
  126.     self.__target(*self.__args, **self.__kwargs)
  127.   File "/home/plobacz/rk3399/.repo/repo/subcmds/sync.py", line 305, in _FetchProjectList
  128.     success = self._FetchHelper(opt, project, *args, **kwargs)
  129.   File "/home/plobacz/rk3399/.repo/repo/subcmds/sync.py", line 351, in _FetchHelper
  130.     clone_filter=clone_filter)
  131.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 1560, in Sync_NetworkHalf
  132.     self._InitMRef()
  133.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 2944, in _InitMRef
  134.     self._InitAnyMRef(base + self.manifest.branch, active_git)
  135.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 2956, in _InitAnyMRef
  136.     active_git.UpdateRef(ref, dst, message=msg, detach=True)
  137.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 3345, in UpdateRef
  138.     self.update_ref(*cmdv)
  139.   File "/home/plobacz/rk3399/.repo/repo/project.py", line 3411, in runner
  140.     (self._project.name, name, p.stderr))
  141. GitError: kernel update-ref: fatal: a179e620b38958254c1f74d283a9cf853ae20813^0: not a valid SHA1



  142. error: Unable to fully sync the tree.
  143. error: Downloading network changes failed.
  144. error: Checking out local projects failed.
  145. Try re-running with "-j1 --fail-fast" to exit at the first error.
Copy the code


Could you please fix the manifests?
Reply

Use props Report

13

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
13
Posted at 10/19/2020 16:57:38        Only Author  2#
Last edited by Dvergatal In 10/19/2020 17:03 Editor

I'm sorry but could you please fix the repositories? Because for now on it is really unusable. Even doing step by step command from your wiki manual isn't working for rk3399. After decompression of firefly-sdk-20200629.7z i tried to update bundle and got this error :
  1. ~/firefly-sdk# ./bundle/update rk3399-linux-bundle
  2. [Info]Update Bundle repo...
  3. Already on 'rk3399-linux-bundle'
  4. -------------------------------------------
  5. [Info]Update to FETCH_HEAD:
  6. error: Repository lacks these prerequisite commits:
  7. error: 442ad5955470e2f4f2336881e9bc14ec4c041572
  8. [ERROR]Fetch ./bundle/0.bundle error!!
Copy the code


The last thing is to try usinsg linux-sdk.7z package, but seriously this is really frivolous and no one has fix it yet...
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list