Post Go back to editing

Problem while fetching the sources of ADI Yocto Linux Release 3.0.0

Category: Software
Product Number: ADSP SC584
Software Version: Linux for ADSP-SC5xx Processors 3.0.0

Hi,

I am using clean, fresh install of Ubuntu 20.04.6 LTS 64bit.
While following the Yocto Linux 3.0.0 quickstart quide (https://wiki.analog.com/resources/tools-software/linuxdsp/docs/quickstartguide/quickstart_sc584_3_0_0) I got stuck on the following command:
./bin/repo init \
-u github.com/.../lnxdsp-repo-manifest.git \
-b release/yocto-3.0.0 \
-m release-yocto-3.0.0.xml
Initially I got "/usr/bin/env: ‘python’: No such file or directory". I tried "sudo apt install python-is-python3" to make the script use python3 and also "sudo apt install python" to install python2. In both cases I got following error:
repo: reusing existing repo client checkout in /home/slx/griffin

Traceback (most recent call last):
  File "/home/slx/griffin/.repo/repo/main.py", line 896, in <module>
    _Main(sys.argv[1:])
  File "/home/slx/griffin/.repo/repo/main.py", line 861, in _Main
    result = repo._Run(name, gopts, argv) or 0
  File "/home/slx/griffin/.repo/repo/main.py", line 293, in _Run
    result = run()
  File "/home/slx/griffin/.repo/repo/main.py", line 276, in <lambda>
    run = lambda: self._RunLong(name, gopts, argv) or 0
  File "/home/slx/griffin/.repo/repo/main.py", line 450, in _RunLong
    execute_command()
  File "/home/slx/griffin/.repo/repo/main.py", line 416, in execute_command
    execute_command_helper()
  File "/home/slx/griffin/.repo/repo/main.py", line 382, in execute_command_helper
    result = cmd.Execute(copts, cargs)
  File "/home/slx/griffin/.repo/repo/subcmds/init.py", line 393, in Execute
    self._ConfigureUser(opt)
  File "/home/slx/griffin/.repo/repo/subcmds/init.py", line 210, in _ConfigureUser
    name = self._Prompt("Your Name", mp.UserName)
  File "/home/slx/griffin/.repo/repo/project.py", line 756, in UserName
    self._LoadUserIdentity()
  File "/home/slx/griffin/.repo/repo/project.py", line 769, in _LoadUserIdentity
    u = self.bare_git.var("GIT_COMMITTER_IDENT")
  File "/home/slx/griffin/.repo/repo/project.py", line 3701, in runner
    p.Wait()
  File "/home/slx/griffin/.repo/repo/git_command.py", line 402, in Wait
    raise GitCommandError(
git_command.GitCommandError: GitCommandError: git command failure
    Project: manifests
    Args: var GIT_COMMITTER_IDENT
    Stdout:
None
    Stderr:

I also tried release 3.1.0 (https://github.com/analogdevicesinc/lnxdsp-adi-meta/wiki/Getting-Started-with-ADSP%E2%80%90SC584-(Linux-for-ADSP%E2%80%90SC5xx-Processors-3.1.0) with the same result. How can I solve this problem?

  • Ok, I figured it out. As I am using clean Ubuntu Install I need to set my git identity using:
    $ git config --global user.name "John Doe"
    $ git config --global user.email johndoe@example.com

    I am also using python3.

  • Hi,

    I could see the error shows there is no python in the system, It seems you might have missed the "Installing Required Packages" host requirement section. https://wiki.analog.com/resources/tools-software/linuxdsp/docs/quickstartguide/quickstart_sc584_3_0_0

    ```

    $ sudo apt-get update
    $ sudo apt-get install -y gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm u-boot-tools openssl curl tftpd-hpa python3 zstd liblz4-tool
    ```

    If the above steps were good, I recommend to try re-install ubuntu again to give it a try, might be issue in installing the OS packages

    ```
    prasanth@prasanth:/media/prasanth/workspace/prasanth/yocto$ curl commondatastorage.googleapis.com/.../repo > ./bin/repo
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 44471 100 44471 0 0 105k 0 --:--:-- --:--:-- --:--:-- 105k
    prasanth@prasanth:/media/prasanth/workspace/prasanth/yocto$ chmod a+x ./bin/repo
    prasanth@prasanth:/media/prasanth/workspace/prasanth/yocto$ ./bin/repo init \
    > -u github.com/.../lnxdsp-repo-manifest.git \
    > -b release/yocto-3.0.0 \
    > -m release-yocto-3.0.0.xml
    Downloading Repo source from gerrit.googlesource.com/git-repo

    Your identity is: Prasanth R
    If you want to change this, please re-run 'repo init' with --config-name

    repo has been initialized in /media/prasanth/workspace/prasanth/yocto
    prasanth@prasanth:/media/prasanth/workspace/prasanth/yocto$ ./bin/repo sync
    remote: Enumerating objects: 6, done.
    remote: Counting objects: 100% (6/6), done.
    remote: Compressing objects: 100% (4/4), done.
    remote: Total 6 (delta 2), reused 4 (delta 2), pack-reused 0
    Unpacking objects: 100% (6/6), 1.20 KiB | 410.00 KiB/s, done.
    Fetching: 100% (5/5), done in 52.217s
    Checking out: 100% (5/5), done in 0.502s
    repo sync has finished successfully.
    ```
    ```
    prasanth@prasanth:/media/prasanth/workspace/prasanth/yocto$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 20.04.6 LTS
    Release: 20.04
    Codename: focal
    ```


    Thanks,
    Prasanth R
  • As I am using fresh Ubuntu install so It turned out that it is mandatory to set identity after git install:

    $ git config --global user.name "John Doe"
    $ git config --global user.email johndoe@example.com

    Also installing python3 is not sufficient. You need to install python-is-python3 or configure an alias by adding alias python='python3' to ~/.bashrc .
    After this changes everything works fine.