build S32G274 BSP35 Yocto'issue

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

build S32G274 BSP35 Yocto'issue

3,662 Views
teddywang
Contributor I

hi sir

   I try to build S32G274 BSP35 Yocto in China,when I repo the github,the issue is under bold line,how to modify the issue,thanks

vmuser@ubuntu:~$ chmod a+x ~/bin/repo
vmuser@ubuntu:~$ PATH=${PATH}:~/bin
vmuser@ubuntu:~$ cd fsl-auto-yocto-bsp/
vmuser@ubuntu:~/fsl-auto-yocto-bsp$ repo init -u https://github.com/nxp-auto-linux/auto_yocto_bsp -b release/bsp35.0
File "/home/vmuser/bin/repo", line 1292
comment_line = re.compile(rb"^ *#")
^
SyntaxError: invalid syntax
vmuser@ubuntu:~/fsl-auto-yocto-bsp$ python --version
Python 2.7.17

0 Kudos
Reply
9 Replies

3,607 Views
MayanksPatel
NXP Employee
NXP Employee

Hi @teddywang,

Thank you for reaching out to us.

There is an issue with the repo you are using and that might not be compatible with this.

Please perform the steps,

mkdir ~/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
PATH=${PATH}:~/bin

The steps provided to you are validated and I tried the same and it works.

 

Hope this helps you.

 

Thanks,

Mayank S Patel

0 Kudos
Reply

3,596 Views
teddywang
Contributor I

the qinghua repo is curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo.whether you meet the same question?

0 Kudos
Reply

3,597 Views
teddywang
Contributor I

hi Mayank

   Sorry,In China we could not use google repo,so we have to us qinghua sourcing for working arround,whether has another linker could repo?thanks

0 Kudos
Reply

3,587 Views
MayanksPatel
NXP Employee
NXP Employee

Hi @teddywang,

There are two options here

1. Use a VPN and follow the steps mentioned in the BSP UM.

2. Perform minor changes in the repo file by opening it in a text editor. Please find the attached image which suggests a change performed in the repo file.

NOTE: Change performed at Line Number 1292 which is the same line number you were facing issue.

Hope this helps.

 

Thanks,

Mayank S Patel

3,571 Views
teddywang
Contributor I

hi 

   1:I have refered your attachment and modify repo file to under line,I found the repo link to https://gerrit.googlesource.com/git-repo

   2:whether could modify repo file to link "curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo"?

   thanks

 

@classmethod
1291 def from_data(cls, data):
1292 comment_line = re.compile(br"^ *#")
1293 strip_data = b"".join(x for x in data.splitlines() if not comment_line.match(x))

 

vmuser@ubuntu:~/fsl-auto-yocto-bsp$ repo init -u https://github.com/nxp-auto-linux/auto_yocto_bsp -b release/bsp35.0
Downloading Repo source from https://gerrit.googlesource.com/git-repo
fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
fatal: error [Errno 111] Connection refused
fatal: double check your --repo-rev setting.
fatal: cloning the git-repo repository failed, will remove '.repo/repo'
vmuser@ubuntu:~/fsl-auto-yocto-bsp$

0 Kudos
Reply

3,536 Views
MayanksPatel
NXP Employee
NXP Employee

Hi @teddywang,

First, download the repo from https://mirrors.tuna.tsinghua.edu.cn/git/git-repo and this will be downloaded in the /home/<user>/bin directory.

Open the downloaded repo file in the editor and perform the changes.

1. Remove the already created folder fsl-auto-yocto-bsp folder.

2. again create the same folder.

you have earlier performed repo init using the google repo link and .repo hidden folder created in the directory fsl-auto-yocto-bsp. by deleting the already created folder your issue will be resolved.

 

Hope this helps.

 

Thanks,

Mayank S Patel

0 Kudos
Reply

3,476 Views
teddywang
Contributor I

hi sir

  I don't clear your comments,whether I open the repo file with note editor and remove google's link?

  the attachment is my repo download curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo 

0 Kudos
Reply

3,410 Views
MayanksPatel
NXP Employee
NXP Employee

Hi @teddywang,

You need to delete the folder fsl-auto-yocto-bsp and connect to VPN which is outside of China and again follow the steps mentioned in the UM #section 3.1.1.

I confirmed with the NXP team in China and they were using a VPN for this.

 

Thanks,

Mayank S Patel

0 Kudos
Reply

3,613 Views
teddywang
Contributor I

the repo that I use qinghua source.curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o repo

0 Kudos
Reply