problem in repo initialization

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

problem in repo initialization

977 Views
dibyarekha
Contributor IV

Hi All,

I want to download the repository for ls1043ardb. I am following LSDKYOCTOUG.pdf.

I am using ubuntu 20.04

I did the following steps

mkdir ~/bin


curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo


sudo apt install curl

chmod a+x ~/bin/repo


PATH=${PATH}:~/bin


sudo snap install git-repo


sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev python3-subunit mesa-common-dev zstd liblz4-tool file locales


sudo locale-gen en_US.UTF-8

repo init -u https://github.com/nxp-qoriq/yocto-sdk -b mickledore

while repo init I am getting the following error

 

$ repo init -u https://github.com/nxp-qoriq/yocto-sdk -b mickledore
File "/home/icomm/yocto-sdk/.repo/repo/main.py", line 94
)
^
SyntaxError: invalid syntax

 

Please help me in solving the error

 

0 Kudos
2 Replies

922 Views
June_Lu
NXP TechSupport
NXP TechSupport

Please follow commands below:

$ sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm python3-subunit mesa-common-dev zstd liblz4-tool

$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm rsync curl

$ repo init -u  https://github.com/nxp-qoriq/yocto-sdk -b mickledore -m ls-6.1.22-2.0.0_distro.xml

$ repo sync

$ DISTRO=fsl-qoriq-distro MACHINE=ls1043ardb source distro-setup-env

0 Kudos

906 Views
dibyarekha
Contributor IV
I followed the steps, But while repo init I am getting the following errors

icomm@icomm-VirtualBox:~/yocto-sdk$ repo init -u https://github.com/nxp-qoriq/yocto-sdk -b mickledore -m ls-6.1.22-2.0.0_distro.xml
Downloading Repo source from https://gerrit.googlesource.com/git-repo
repo: Updating release signing keys to keyset ver 2.3
/home/icomm/yocto-sdk/.repo/repo/main.py:569: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn("\n... A new version of repo (%s) is available.", exp_str)

... A new version of repo (2.37) is available.
/home/icomm/yocto-sdk/.repo/repo/main.py:571: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
logger.warn(
... You should upgrade soon:
cp /home/icomm/yocto-sdk/.repo/repo/repo /home/icomm/bin/repo


Traceback (most recent call last):
File "/home/icomm/yocto-sdk/.repo/repo/main.py", line 876, in <module>
_Main(sys.argv[1:])
File "/home/icomm/yocto-sdk/.repo/repo/main.py", line 852, in _Main
result = repo._Run(name, gopts, argv) or 0
File "/home/icomm/yocto-sdk/.repo/repo/main.py", line 298, in _Run
result = run()
File "/home/icomm/yocto-sdk/.repo/repo/main.py", line 281, in <lambda>
run = lambda: self._RunLong(name, gopts, argv) or 0
File "/home/icomm/yocto-sdk/.repo/repo/main.py", line 447, in _RunLong
execute_command()
File "/home/icomm/yocto-sdk/.repo/repo/main.py", line 413, in execute_command
execute_command_helper()
File "/home/icomm/yocto-sdk/.repo/repo/main.py", line 379, in execute_command_helper
result = cmd.Execute(copts, cargs)
File "/home/icomm/yocto-sdk/.repo/repo/subcmds/init.py", line 393, in Execute
self._ConfigureUser(opt)
File "/home/icomm/yocto-sdk/.repo/repo/subcmds/init.py", line 213, in _ConfigureUser
name = self._Prompt("Your Name", mp.UserName)
File "/home/icomm/yocto-sdk/.repo/repo/project.py", line 753, in UserName
self._LoadUserIdentity()
File "/home/icomm/yocto-sdk/.repo/repo/project.py", line 766, in _LoadUserIdentity
u = self.bare_git.var("GIT_COMMITTER_IDENT")
File "/home/icomm/yocto-sdk/.repo/repo/project.py", line 3695, in runner
p.Wait()
File "/home/icomm/yocto-sdk/.repo/repo/git_command.py", line 501, in Wait
self.VerifyCommand()
File "/home/icomm/yocto-sdk/.repo/repo/git_command.py", line 491, in VerifyCommand
raise GitCommandError(
git_command.GitCommandError: GitCommandError: git command failure
Project: manifests
Args: var GIT_COMMITTER_IDENT
Stdout:
None
Stderr:

0 Kudos