Recently many customers faced the issue about connecting the git.freesacle .com failed when they built old bsp version like 4.1.15 or 3.14.52, when the customer repo init according to the yocto user guide, they get the error message like :
repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-4.1-krogoth
manifests:
escale.com[0: 192.88.156.202]: errno=Connection refused
fatal: cannot obtain manifest git://git.freescale.com/imx/fsl-arm-yocto-bsp.git
/////
git clone git://git.freescale.com:9418/imx/fsl-arm-yocto-bsp.git -b imx-4.1.15-1.0.0_ga
Cloning into 'fsl-arm-yocto-bsp'...
fatal: unable to connect to git.freescale.com:
git.freescale.com[0: 192.88.156.202]: errno=Connection refused
the reason is that the old bsp source code was moved to "https://source.codeaurora.org/external/imx", customer needs to change "git://git.freescale.com/imx" to "https://source.codeaurora.org/external/imx", for new repo init commands, try to use the commands like “repo init -u https://source.codeaurora.org/external/imx/fsl-arm-yocto-bsp -b <branch> [-m <manifest>]”
for example:
4.1.15_1.0.0:
repo init -u https://source.codeaurora.org/external/imx/fsl-arm-yocto-bsp -b imx-4.1.15-1.0.0_ga
4.1.15_2.0.0:
repo init -u https://source.codeaurora.org/external/imx/fsl-arm-yocto-bsp -b imx-4.1-krogoth -m imx-4.1.15-2.0.0.xml
4.1.15_2.1.1:
repo init -u https://source.codeaurora.org/external/imx/fsl-arm-yocto-bsp -b imx-4.1-krogoth -m imx-4.1.15-2.1.1.xml
then you can "repo sync" and "bitbake", but some customers still has the connection error on building firmware-imx package, the error message like :
ERROR: firmware-imx-1_5.4-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 128, output:
Cloning into bare repository '/opt/yocto/fsl-release-bsp/downloads//git2/git.freescale.com.imx.imx-firmware.git'...
fatal: unable to connect to git.freescale.com:
git.freescale.com[0: 192.88.156.202]: errno=Connection refused
ERROR: firmware-imx-1_5.4-r0 do_fetch: Function failed: Fetcher failure for URL: 'git://git.freescale.com/imx/imx-firmware.git;branch=master;destsuffix=/opt/yocto/fsl-release-bsp/fsl_build...'. Unable to fetch URL from any source.
this reason is that 4.1.15 needs to download git2 package from git.freescale.com, then I uploaded the firmwar-imx git2 package, try to unzip first, then put packages under downloads/git2, then "bitbake firmware-imx" again
我按上面的方法出现两个问题。
问题1:我已经把firmware-imx-5.4.bin和firmware-imx-5.4.bin.done拷贝到downloads,然后不管我bitbake firmware-imx还是bitbake fsl-image-qt5都出现:
WARNING: firmware-imx-1_5.4-r0 do_fetch: Failed to fetch URL git://git.freescale.com/imx/imx-firmware.git;branch=master;destsuffix=/home/longbin/Downloads/fsl-release-bsp/build_qt5/tmp/work/cortexa7hf-neon-mx6ul-poky-linux-gnueabi/firmware-imx/1_5.4-r0/firmware-imx-5.4/git, attempting MIRRORS if available
ERROR: firmware-imx-1_5.4-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 128, output:
Cloning into bare repository '/home/longbin/Downloads/fsl-release-bsp/downloads//git2/git.freescale.com.imx.imx-firmware.git'...
fatal: unable to connect to git.freescale.com:
git.freescale.com[0: 192.88.156.202]: errno=Connection refused
ERROR: firmware-imx-1_5.4-r0 do_fetch: Function failed: Fetcher failure for URL: 'git://git.freescale.com/imx/imx-firmware.git;branch=master;destsuffix=/home/longbin/Downloads/fsl-release-bsp/build_qt5/tmp/work/cortexa7hf-neon-mx6ul-poky-linux-gnueabi/firmware-imx/1_5.4-r0/firmware-imx-5.4/git'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/longbin/Downloads/fsl-release-bsp/build_qt5/tmp/work/cortexa7hf-neon-mx6ul-poky-linux-gnueabi/firmware-imx/1_5.4-r0/temp/log.do_fetch.4135
ERROR: Task 4 (/home/longbin/Downloads/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/firmware-imx/firmware-imx_5.4.bb, do_fetch) failed with exit code '1'
问题二:linux-imx一直都下载不了。不管是bitbake -c fetchall linux-imx还是bitbake fsl-image-qt5。一直在
0: linux-imx-4.1.15-r0 do_fetch (pid 4449)
longbin@longbin-virtual-machine:~/Downloads/fsl-release-bsp/build_qt5$ bitbake firmware-imx -c cleanall
Loading cache: 100% |###########################################| ETA: 00:00:00
Loaded 2792 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.30.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-14.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6ull14x14evk"
DISTRO = "fsl-imx-fb"
DISTRO_VERSION = "4.1.15-2.1.0"
TUNE_FEATURES = "arm armv7ve vfp neon callconvention-hard cortexa7"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:f5da2a5913319ad6ac2141438ba1aa17576326ab"
meta-oe
meta-multimedia = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-fsl-arm = "HEAD:be78894e4682f111575470fb23e51e6ba523508d"
meta-fsl-arm-extra = "HEAD:3dfb82fc7e703eae9891b3ffda0e9393701f2396"
meta-fsl-demos = "HEAD:a165068f8a0d1cf29aabe4b4053f28be1c2aa492"
meta-bsp
meta-sdk = "HEAD:f0e54cdf7a1c6d35976b0be80ded28a7f019b567"
meta-browser = "HEAD:77736988073a5d90fcff9d0005c8477332ede387"
meta-gnome
meta-networking
meta-python
meta-filesystems = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-qt5 = "HEAD:ccae79be69c5268df3b47e4e14cea0591c39a531"
NOTE: Preparing RunQueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3 tasks of which 0 didn't need to be rerun and all succeeded.
longbin@longbin-virtual-machine:~/Downloads/fsl-release-bsp/build_qt5$ bitbake firmware-imx
Loading cache: 100% |###########################################| ETA: 00:00:00
Loaded 2792 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.30.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-14.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "imx6ull14x14evk"
DISTRO = "fsl-imx-fb"
DISTRO_VERSION = "4.1.15-2.1.0"
TUNE_FEATURES = "arm armv7ve vfp neon callconvention-hard cortexa7"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:f5da2a5913319ad6ac2141438ba1aa17576326ab"
meta-oe
meta-multimedia = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-fsl-arm = "HEAD:be78894e4682f111575470fb23e51e6ba523508d"
meta-fsl-arm-extra = "HEAD:3dfb82fc7e703eae9891b3ffda0e9393701f2396"
meta-fsl-demos = "HEAD:a165068f8a0d1cf29aabe4b4053f28be1c2aa492"
meta-bsp
meta-sdk = "HEAD:f0e54cdf7a1c6d35976b0be80ded28a7f019b567"
meta-browser = "HEAD:77736988073a5d90fcff9d0005c8477332ede387"
meta-gnome
meta-networking
meta-python
meta-filesystems = "HEAD:247b1267bbe95719cd4877d2d3cfbaf2a2f4865a"
meta-qt5 = "HEAD:ccae79be69c5268df3b47e4e14cea0591c39a531"
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: firmware-imx-1_5.4-r0 do_fetch: Failed to fetch URL git://git.freescale.com/imx/imx-firmware.git;branch=master;destsuffix=/home/longbin/Downloads/fsl-release-bsp/build_qt5/tmp/work/cortexa7hf-neon-mx6ul-poky-linux-gnueabi/firmware-imx/1_5.4-r0/firmware-imx-5.4/git, attempting MIRRORS if available
ERROR: firmware-imx-1_5.4-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 128, output:
Cloning into bare repository '/home/longbin/Downloads/fsl-release-bsp/downloads//git2/git.freescale.com.imx.imx-firmware.git'...
fatal: unable to connect to git.freescale.com:
git.freescale.com[0: 192.88.156.202]: errno=Connection refused
ERROR: firmware-imx-1_5.4-r0 do_fetch: Function failed: Fetcher failure for URL: 'git://git.freescale.com/imx/imx-firmware.git;branch=master;destsuffix=/home/longbin/Downloads/fsl-release-bsp/build_qt5/tmp/work/cortexa7hf-neon-mx6ul-poky-linux-gnueabi/firmware-imx/1_5.4-r0/firmware-imx-5.4/git'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/longbin/Downloads/fsl-release-bsp/build_qt5/tmp/work/cortexa7hf-neon-mx6ul-poky-linux-gnueabi/firmware-imx/1_5.4-r0/temp/log.do_fetch.4056
ERROR: Task 4 (/home/longbin/Downloads/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/firmware-imx/firmware-imx_5.4.bb, do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 346 tasks of which 345 didn't need to be rerun and 1 failed.
No currently running tasks (325 of 358)
Summary: 1 task failed:
/home/longbin/Downloads/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/firmware-imx/firmware-imx_5.4.bb, do_fetch
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
从图可以看到我downloads是有firmware-imx5.4.bin和firmware-imx-5.4.bin.done
linux-imx-4.1.15错误:
ERROR: linux-imx-4.1.15-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 128, output:
Cloning into bare repository '/home/longbin/Downloads/fsl-release-bsp/downloads//git2/source.codeaurora.org.external.imx.linux-imx.git'...
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
ERROR: linux-imx-4.1.15-r0 do_fetch: Function failed: Fetcher failure for URL: 'git://source.codeaurora.org/external/imx/linux-imx.git;protocol=https;branch=imx_4.1.15_2.0.0_ga'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/longbin/Downloads/fsl-release-bsp/build_qt5/tmp/work/imx6ull14x14evk-poky-linux-gnueabi/linux-imx/4.1.15-r0/temp/log.do_fetch.3591
ERROR: Task 0 (/home/longbin/Downloads/fsl-release-bsp/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-kernel/linux/linux-imx_4.1.15.bb, do_fetch) failed with exit code '1'
I have a similar issue building Yocto for i.MX6UL EVK using:
$ repo init -u https://source.codeaurora.org/external/imx/fsl-arm-yocto-bsp -b imx-4.1.15-1.0.0_ga
I'm building on Ubuntu 15.10 64-bit. The build proceeds for several hours and then fails with:
unable to connect to git.freescale.com
...
ERROR: Function failed: Fetcher failure for URL: 'git://git.freescale.com/imx/linux-2.6-imx.git;protocol=git;branch=imx_4.1.15_1.0.0_ga'. Unable to fetch URL from any source.
Hi. Joan Xie.
I encountered same issue exactly.
Could you let me get firmware-imx package? (jahong.ku@geoplan.kr)
I already spent a few days because of this issue, pls send me file as soon as possible.
Thanks.
I couldn't find your mail address in our system, so you need to submit a case for me, then I can try to send the package to you, it's too big to upload here
https://community.nxp.com/docs/DOC-329745
after you submit the case, tell me the case number
you should the same issue, if you need the linux-imx package, you can create a case in salesforce too
https://community.nxp.com/docs/DOC-329745
then tell me your case number
Hi ,
I have the same issue...
chaning to repo init -u https://source.codeaurora.org/external/imx/fsl-arm-yocto-bsp -b imx-4.1.15-1.0.0_ga
did not work also...
where can we find firmware-imx-1_5.4-r0????
Hi joanxie
Thanks for repsonse, however, see below, after using bitbake fimware-imx -c clean all, then again bitbake firmware-imx works but after I try bitbake core-image-v2x-refbsp then it gives out the same error...even after bitbake core-image-v2x-refbsp -c cleanall and again bitbake core-image-v2x-refbsp...
it seems that you have already built firmare-imx successfully, but couldn't download linux-imx-4.1.15 package, this is too large to upload here, if you need it, pls create a case to get it, try to add my name on the title, then I can get it and send the pacakge to you
Hi Need quick help
I havecopied ffirmware bin in download folder and firmware.gut in git2 folder when i an trying to compiler still bitbake is trying to download
| ERROR: Function failed: do_configure (log file is located at /home/msabnam/w117/build/tmp/work/x86_64-linux/qemu-native/2.5.0-r1/temp/log.do_configure.23854)
ERROR: Task 1187 (virtual:native:/home/msabnam/w117/Eagle-Distribution/oe-core/meta/recipes-devtools/qemu/qemu_2.5.0.bb, do_configure) failed with exit code '1'
WARNING: firmware-imx-1_5.4-r0 do_fetch: Failed to fetch URL git://github.com/NXP/imx-firmware.git;protocol=https;branch=master;destsuffix=imx-firmware;name=imx-firmware, attempting MIRRORS if available
ERROR: firmware-imx-1_5.4-r0 do_fetch: Fetcher failure: Unable to find revision 951c1363abe95dd75ab3e9447f640d7807240236 in branch master even from upstream
ERROR: firmware-imx-1_5.4-r0 do_fetch: Function failed: Fetcher failure for URL: 'git://github.com/NXP/imx-firmware.git;protocol=https;branch=master;destsuffix=imx-firmware;name=imx-firmware'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/msabnam/w117/build/tmp/work/cortexa9hf-neon-mx6qdl-oe-linux-gnueabi/firmware-imx/1_5.4-r0/temp/log.do_fetch.23884
ERROR: Task 226 (/home/msabnam/w117/Eagle-Distribution/oe-core/../meta-fsl-arm/recipes-bsp/firmware-imx/firmware-imx_5.4.bb, do_fetch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 952 tasks of which 926 didn't need to be rerun and 3 failed.
/downloads$ ll firmware-imx-5.4.bin*
-rw-rw-r-- 1 msabnam msabnam 429744 Aug 11 10:39 firmware-imx-5.4.bin
-rw-rw-r-- 1 msabnam msabnam 125 Aug 11 15:00 firmware-imx-5.4.bin.done
downloads$ ll git2/git.freescale.com.imx.imx-firmware.git
total 44
drwxrwxrwx 7 msabnam msabnam 4096 Aug 10 20:19 ./
drwxrwxr-x 30 msabnam msabnam 4096 Aug 11 15:01 ../
drwxrwxrwx 2 msabnam msabnam 4096 Aug 10 20:17 branches/
-rw-rw-r-- 1 msabnam msabnam 175 Aug 10 20:17 config
-rw-rw-r-- 1 msabnam msabnam 73 Aug 10 20:17 description
-rw-rw-r-- 1 msabnam msabnam 23 Aug 10 20:17 HEAD
drwxrwxrwx 2 msabnam msabnam 4096 Aug 10 20:19 hooks/
drwxrwxrwx 2 msabnam msabnam 4096 Aug 10 20:17 info/
drwxrwxrwx 4 msabnam msabnam 4096 Aug 10 20:19 objects/
-rw-rw-r-- 1 msabnam msabnam 718 Aug 10 20:17 packed-refs
drwxrwxrwx 4 msabnam msabnam 4096 Aug 10 20:17 refs/