Firefly Open Source Community

Title: Unable to update Source code for compiling Ubuntu Firmware (GPT) [Print This Page]

Author: rk3328-cc    Time: 3/28/2022 19:34
Title: Unable to update Source code for compiling Ubuntu Firmware (GPT)
Dear Team,Im following this [https://wiki.t-firefly.com/ROC-RK3328-CC/linux_compile.html#] documentation for compiling GPT firmware for my ROC-RK3328-CC Board. Update command is: [.repo/repo/repo sync -c --no-tags ] I'm getting a list of errors while using update command for Source Code.
  1. (base) onstak@onstak-hp-elitedesk-800-g2-dm:~/rk3328_linux_release_v2.5.1_20210301$ .repo/repo/repo sync -c --no-tags > ~/Desktop/logs.txt
  2. warning: Python 3 support is currently experimental. YMMV.
  3. Please use Python 2.6 - 2.7 instead.
  4. /home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/main.py:19: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  5.   import imp
  6. error: Cannot fetch external/libglCompositor (AttributeError: 'str' object has no attribute 'decode')
  7. error: Cannot fetch external/common_algorithm (AttributeError: 'str' object has no attribute 'decode')
  8. Exception in thread Thread-3:
  9. Exception in thread Thread-2:
  10. Traceback (most recent call last):
  11.   File "/home/onstak/anaconda3/lib/python3.8/threading.py", line 932, in _bootstrap_inner
  12. Traceback (most recent call last):
  13. error: Cannot fetch app/aiserver (AttributeError: 'str' object has no attribute 'decode')
  14.   File "/home/onstak/anaconda3/lib/python3.8/threading.py", line 932, in _bootstrap_inner
  15. Exception in thread Thread-1:
  16.     self.run()
  17.   File "/home/onstak/anaconda3/lib/python3.8/threading.py", line 870, in run
  18. Traceback (most recent call last):
  19.   File "/home/onstak/anaconda3/lib/python3.8/threading.py", line 932, in _bootstrap_inner
  20.     self._target(*self._args, **self._kwargs)
  21.     self.run()
  22.   File "/home/onstak/anaconda3/lib/python3.8/threading.py", line 870, in run
  23.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
  24.     self.run()
  25.   File "/home/onstak/anaconda3/lib/python3.8/threading.py", line 870, in run
  26.     success = self._FetchHelper(opt, project, *args, **kwargs)
  27.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 307, in _FetchHelper
  28.     self._target(*self._args, **self._kwargs)
  29.     self._target(*self._args, **self._kwargs)
  30.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
  31.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
  32.     success = project.Sync_NetworkHalf(
  33.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 1229, in Sync_NetworkHalf
  34.     success = self._FetchHelper(opt, project, *args, **kwargs)
  35.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 307, in _FetchHelper
  36.     success = self._FetchHelper(opt, project, *args, **kwargs)
  37.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 307, in _FetchHelper
  38.     success = project.Sync_NetworkHalf(
  39.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 1229, in Sync_NetworkHalf
  40.     self._InitGitDir(force_sync=force_sync)
  41.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 2298, in _InitGitDir
  42.     success = project.Sync_NetworkHalf(
  43.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 1229, in Sync_NetworkHalf
  44.     self._InitGitDir(force_sync=force_sync)
  45.     self._InitGitDir(force_sync=force_sync)
  46.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 2298, in _InitGitDir
  47.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 2298, in _InitGitDir
  48.     self.config.SetString('filter.lfs.smudge', 'git-lfs smudge --skip -- %f')
  49.     self.config.SetString('filter.lfs.smudge', 'git-lfs smudge --skip -- %f')
  50.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 158, in SetString
  51.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 158, in SetString
  52.     self.config.SetString('filter.lfs.smudge', 'git-lfs smudge --skip -- %f')
  53. error: Cannot fetch external/minilogger (AttributeError: 'str' object has no attribute 'decode')
  54.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 158, in SetString
  55.     old = self._cache[key]
  56.     old = self._cache[key]
  57.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 248, in _cache
  58.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 248, in _cache
  59. Exception in thread Thread-4:
  60.     old = self._cache[key]
  61.     self._cache_dict = self._Read()
  62. Traceback (most recent call last):
  63.   File "/home/onstak/anaconda3/lib/python3.8/threading.py", line 932, in _bootstrap_inner
  64.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 248, in _cache
  65.     self._cache_dict = self._Read()
  66.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 254, in _Read
  67.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 254, in _Read
  68.     self._cache_dict = self._Read()
  69.     self.run()
  70.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 254, in _Read
  71.     d = self._ReadGit()
  72.   File "/home/onstak/anaconda3/lib/python3.8/threading.py", line 870, in run
  73.     d = self._ReadGit()
  74.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 299, in _ReadGit
  75.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 299, in _ReadGit
  76.     self._target(*self._args, **self._kwargs)
  77.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
  78.     for line in d.decode('utf-8').rstrip('\0').split('\0'):  # pylint: disable=W1401
  79.     for line in d.decode('utf-8').rstrip('\0').split('\0'):  # pylint: disable=W1401
  80. AttributeError: 'str' object has no attribute 'decode'
  81.     d = self._ReadGit()
  82.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 299, in _ReadGit
  83. AttributeError: 'str' object has no attribute 'decode'
  84.     success = self._FetchHelper(opt, project, *args, **kwargs)
  85.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 307, in _FetchHelper
  86.     for line in d.decode('utf-8').rstrip('\0').split('\0'):  # pylint: disable=W1401
  87.     success = project.Sync_NetworkHalf(
  88. AttributeError: 'str' object has no attribute 'decode'
  89.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 1229, in Sync_NetworkHalf
  90.     self._InitGitDir(force_sync=force_sync)
  91.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 2298, in _InitGitDir
  92.     self.config.SetString('filter.lfs.smudge', 'git-lfs smudge --skip -- %f')
  93.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 158, in SetString
  94.     old = self._cache[key]
  95.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 248, in _cache
  96.     self._cache_dict = self._Read()
  97.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 254, in _Read
  98.     d = self._ReadGit()
  99.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 299, in _ReadGit
  100.     for line in d.decode('utf-8').rstrip('\0').split('\0'):  # pylint: disable=W1401
  101. AttributeError: 'str' object has no attribute 'decode'
  102. error: Cannot fetch external/pcba_adb_test (AttributeError: 'str' object has no attribute 'decode')
  103. Exception in thread Thread-5:
  104. Traceback (most recent call last):
  105.   File "/home/onstak/anaconda3/lib/python3.8/threading.py", line 932, in _bootstrap_inner
  106.     self.run()
  107.   File "/home/onstak/anaconda3/lib/python3.8/threading.py", line 870, in run
  108.     self._target(*self._args, **self._kwargs)
  109.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 270, in _FetchProjectList
  110.     success = self._FetchHelper(opt, project, *args, **kwargs)
  111.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/subcmds/sync.py", line 307, in _FetchHelper
  112.     success = project.Sync_NetworkHalf(
  113.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 1229, in Sync_NetworkHalf
  114.     self._InitGitDir(force_sync=force_sync)
  115.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/project.py", line 2298, in _InitGitDir
  116.     self.config.SetString('filter.lfs.smudge', 'git-lfs smudge --skip -- %f')
  117.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 158, in SetString
  118.     old = self._cache[key]
  119.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 248, in _cache
  120.     self._cache_dict = self._Read()
  121.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 254, in _Read
  122.     d = self._ReadGit()
  123.   File "/home/onstak/rk3328_linux_release_v2.5.1_20210301/.repo/repo/git_config.py", line 299, in _ReadGit
  124.     for line in d.decode('utf-8').rstrip('\0').split('\0'):  # pylint: disable=W1401
  125. AttributeError: 'str' object has no attribute 'decode'

  126. error: Exited sync due to fetch errors
Copy the code

Im basically in need of enabling the SPI in roc-rk3328-cc board. I have already tried every method other than compilation as im using now. My previous post was on : [ https://bbs.t-firefly.com/forum. ... &extra=page%3D1 ]
Please let me know what is missing! Thanks.



Author: Firefly    Time: 4/6/2022 15:00
Hello, sorry for keeping you waiting. The engineer is following this. He will reply you soon.




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1