Problem building fsl-release-bsp

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

Problem building fsl-release-bsp

Jump to solution
3,247 Views
chris_f
Contributor V

I'm trying to build a yocto image for the imx6ull14x14evk following instructions from i.MX_Yocto_Project_User's_Guide_21 on Ubuntu 16.04.

The build goes well but hangs on:

Currently 1 running tasks (2510 of 2550):
0: linux-imx-4.1.15-r0 do_fetch (pid 29480)

The stalled git fetch appears to be:

git -c core.fsyncobjectfiles=0 clone --bare --mirror git://git.freescale.com/imx/linux-imx.git /home/chris/workspace/opensource/fsl-release-bsp/downloads//git2/git.freescale.com.imx.linux-imx.git

I've restarted a few times and tried a couple of different target builds but the result is the same.

Any clues gratefully received!

1 Solution
2,272 Views
gusarambula
NXP TechSupport
NXP TechSupport

I'm glad to hear that, Chris_F! Sometimes repositories are down or very saturated but I'm glad you were able to bitbake and hopefully this problem was a one time thing.

View solution in original post

11 Replies
2,272 Views
panamalaigurura
Contributor I

I am facing the exact same problem. I am able to access git.freescale.com from my browser. but when I do a repo sync, i get fetch errors.

me@home:~/Work/fsl_3$ repo sync
Fetching project meta-fsl-arm-extra
Fetching project meta-qt5
Fetching project meta-fsl-bsp-release
Fetching project meta-fsl-demos
Fetching project Sor/meta-lrd-siam
Fetching project Sor/meta-hu-sim
Fetching project Sor/meta-fsl-avb-release
Fetching project meta-openembedded
Fetching projects: 8% (1/12) Fetching project meta-browser
Fetching projects: 16% (2/12) Fetching project fsl-community-bsp-base
Fetching projects: 25% (3/12) Fetching project poky
Fetching projects: 33% (4/12) Fetching project meta-fsl-arm
Fetching projects: 58% (7/12) fatal: read error: Connection reset by peer
Fetching projects: 91% (11/12) fatal: read error: Connection reset by peer
error: Cannot fetch meta-fsl-bsp-release

error: Exited sync due to fetch errors
me@home:~/Work/fsl_3$

0 Kudos
2,272 Views
chris_f
Contributor V

I've finally been able to bake an image. I made no changes to the process.

It seems the problem was due to very patchy service from git.freescale.com.

2,273 Views
gusarambula
NXP TechSupport
NXP TechSupport

I'm glad to hear that, Chris_F! Sometimes repositories are down or very saturated but I'm glad you were able to bitbake and hopefully this problem was a one time thing.

2,272 Views
chris_f
Contributor V

Even better than that, the image I just built booted up just fine once I realised that this line in i.MX Yocto Project User's Guide should NOT say of=/dev/sd<partition> but the entire card.

6.1 Flashing an SD card image
An SD card image provides the full system to boot with U-Boot and kernel. To flash an SD card image, run the following
command:

$ sudo dd if=<image name>.sdcard of=/dev/sd<partition> bs=1M && sync

0 Kudos
2,272 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Chris_F,

That is true! Thanks for pointing it out. I will escalate it to the documentation team so it gets addressed on the next release of the documentation. My apologies for the mistake.

Regards,

2,272 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Chris_F,

Failures while fetching are usually related to connectivity problems. It is odd that this is the only fetch operation failing but I tested git://git.freescale.com/imx/linux-imx.git and it is up. Could you try to access it from git to check if perhaps your firewall is preventing you from reaching this repository? Also make sure that the EULA flag on the conf/local.conf is set to "1".

As a side note, I would recommend switching your host to Ubuntu 14.04 which is more tested and less likely to cause problems. I don't think this particular issue is related to the host OS version but on the long run it may be better to switch to a more tested distribution.

Regards,

0 Kudos
2,272 Views
chris_f
Contributor V

Hi gusarambula,

This is a little strange. I tried to clone the repository.

That seemed to be going fine then it stalled:

chris:tmp$ mkdir imx
chris:tmp$ cd imx
chris:imx$ git clone git://git.freescale.com/imx/linux-imx.git
Cloning into 'linux-imx'...
remote: Counting objects: 4290838, done.
remote: Compressing objects: 100% (674299/674299), done.
Receiving objects: 17% (749928/4290838), 412.04 MiB | 412.00 KiB/s

It's been like that for half an hour.

My network seems fine but I can't ping git.freescale.com:

chris:imx$ ping git.freescale.com
PING git.freescale.com (192.88.156.202) 56(84) bytes of data.
^C
--- git.freescale.com ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3023ms

chris:imx$ ping google.com
PING google.com (213.105.64.247) 56(84) bytes of data.
64 bytes from 213.105.64.247: icmp_seq=1 ttl=59 time=14.4 ms
64 bytes from 213.105.64.247: icmp_seq=2 ttl=59 time=17.9 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 14.407/16.199/17.992/1.797 ms

I'm on fast home broadband link I don't think there's a firewall involved unless it's getting hung up on one of my ISP's filters ...

0 Kudos
2,272 Views
chris_f
Contributor V

Maybe the fact that I can't ping git.freescale.com isn't relevant. I can use nmap to check that the git port is open and that looks fine but my git clone is still stalled:

chris:imx$ nmap -p 9418 git.freescale.com

Starting Nmap 7.01 ( https://nmap.org ) at 2017-02-08 07:22 GMT
Nmap scan report for git.freescale.com (192.88.156.202)
Host is up (0.17s latency).
rDNS record for 192.88.156.202: opensource.freescale.com
PORT STATE SERVICE
9418/tcp open git

Nmap done: 1 IP address (1 host up) scanned in 5.85 seconds

0 Kudos
2,272 Views
chris_f
Contributor V

I interrupted that attempt to git clone and restarted. It stalled at a similar but not the same point:

chris:imx$ git clone git://git.freescale.com/imx/linux-imx.git
Cloning into 'linux-imx'...
remote: Counting objects: 4290838, done.
remote: Compressing objects: 100% (674299/674299), done.
^Cceiving objects: 17% (749928/4290838), 412.04 MiB | 412.00 KiB/s
chris:imx$
chris:imx$ ls
chris:imx$ git clone git://git.freescale.com/imx/linux-imx.git
Cloning into 'linux-imx'...
remote: Counting objects: 4290838, done.
remote: Compressing objects: 100% (674299/674299), done.
Receiving objects: 15% (653447/4290838), 365.96 MiB | 408.00 KiB/s

0 Kudos
2,272 Views
chris_f
Contributor V

Nearly an hour later the second clone started going again so I'll try my bitbake again.

0 Kudos
2,272 Views
chris_f
Contributor V

Still having big problems with git.freescale.com. Tried a fresh directory repo init and sync:

chris:fsl-release-bsp$ repo sync

fatal: read error: Connection reset by peer
Fetching project meta-fsl-arm
Fetching project meta-browser
remote: Counting objects: 2900, done.
remote: Counting objects: 13363, done.
remote: Compressing objects: 100% (4737/4737), done.
remote: Total 2900 (delta 0), reused 0 (delta 0), pack-reused 2900
Receiving objects: 100% (2900/2900), 705.02 KiB | 239.00 KiB/s, done.
Resolving deltas: 100% (1957/1957), done.
From git://github.com/OSSystems/meta-browser
* [new branch] danny -> OSSystems/danny

... all OK
* [new branch] morty -> OSSystems/morty
Fetching projects: 11% (1/9) Fetching project meta-fsl-bsp-release
fatal: read error: Connection reset by peer MiB | 1.40 MiB/s
remote: Total 13363 (delta 8410), reused 13041 (delta 8088)
Receiving objects: 100% (13363/13363), 38.32 MiB | 1.64 MiB/s, done.
Resolving deltas: 100% (8410/8410), done.
From git://git.yoctoproject.org/meta-fsl-arm
* [new branch] 1.4_M3 -> yocto/1.4_M3
... all OK
* [new tag] yocto_1.5_M5.rc8 -> yocto_1.5_M5.rc8
Fetching projects: 55% (5/9)
error: Exited sync due to fetch errors

0 Kudos