Yocto bitbake download error

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

Yocto bitbake download error

2,181 Views
tomas_arredondo
Contributor I

Hi,

Sorry if it is a repeated question but could not find this specific issue mentioned before.

Trying to bitbake yocto sdk 1.1.1 2.4 under Ubuntu 16.04:

 2123  mkdir yocto-sdk
 2124  cd yocto-sdk/
 2126  sudo ~/bin/repo init -u https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk -b thud
 2129  sudo ~/bin/repo sync --no-clone-bundle
 2130  . ./setup-env -m t4240rdb-64b
 2131  bitbake fsl-image-networking

and seeing this error:

ERROR: bzip2-native-1.0.6-r5 do_fetch: Fetcher failure for URL: 'http://downloads.yoctoproject.org/mirror/sources/bzip2-1.0.6.tar.gz'. Unable to fetch URL from any source.
ERROR: bzip2-native-1.0.6-r5 do_fetch: Function failed: base_do_fetch

Looking at the log:

Resolving downloads.yoctoproject.org (downloads.yoctoproject.org)... 198.145.29.63
Connecting to downloads.yoctoproject.org (downloads.yoctoproject.org)|198.145.29.63|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 782025 (764K) [application/octet-stream]
Saving to: ...Downloads/yocto-sdk/downloads/bzip2-1.0.6.tar.gz’

     0K .......... .......... .......... .......... ..........  6%  272K 3s
    50K .......... .......... .......... .......... .......... 13%  518K 2s
   100K .......... .......... .......... .......... .......... 19%  297K 2s
   150K .......... .......... .......... .......... .......... 26% 87.7K 3s
   200K .......... .......... .......... .......... .......... 32%  449K 2s
   250K .......... .......... .......... .......... .......... 39% 9.60M 2s
   300K .......... .......... .......... .......... .......... 45% 18.2M 1s
   350K .......... .......... .......... .......... .......... 52%  262K 1s
   400K .......... .......... .......... .......... .......... 58% 2.84M 1s
   450K .......... .......... .......... .......... .......... 65%  367K 1s
   500K .......... .......... .......... .......... .......... 72% 3.16M 1s
   550K .......... .......... .......... .......... .......... 78% 4.75M 0s
   600K .......... .......... .......... ..                    82% 15.8M=1.5s

2019-03-13 19:33:12 (419 KB/s) - Read error at byte 647168/782025 (Success). Retrying.

--2019-03-13 19:33:13--  (try: 2)  http://downloads.yoctoproject.org/mirror/sources/bzip2-1.0.6.tar.gz
Connecting to downloads.yoctoproject.org (downloads.yoctoproject.org)|198.145.29.63|:80... connected.
HTTP request sent, awaiting response... 206 Partial Content
Length: 782025 (764K), 134857 (132K) remaining [application/octet-stream]
Saving to: ...Downloads/yocto-sdk/downloads/bzip2-1.0.6.tar.gz’

        [ skipping 600K ]
   600K ,,,,,,,,,, ,,,,,,,,,, ,,,,,,,,,, ,,........ .......    84% 11.4M=0.001s

2019-03-13 19:33:45 (11.4 MB/s) - Read error at byte 663292/782025 (Success). Giving up.
ERROR: Fetcher failure for URL: 'http://downloads.yoctoproject.org/mirror/sources/bzip2-1.0.6.tar.gz'. Unable to fetch URL from any source.

The odd thing is that looking here: "http://downloads.yoctoproject.org/mirror/sources/"

I can download several files of various sizes but not the bzip2-1.0.6...  in question.  There are probably other files that fail as well.  It seems like a server problem to me but that seems odd.

Thanks,

Tomas

Labels (2)
0 Kudos
3 Replies

1,799 Views
tomas_arredondo
Contributor I

Turns out I can download the files from my phone... so it is a network problem.  Probably a firewall issue or something like that. 

Thanks for the comments.

Tomas

0 Kudos

1,799 Views
tomas_arredondo
Contributor I

Thanks Pavel Chubakov, it is 2.4 (I was thinking about the ssl version...)...

0 Kudos

1,799 Views
Pavel
NXP Employee
NXP Employee

NXP offers SDK 2.0 Yocto based Linux BSP for the T4240rdb board:

https://www.nxp.com/support/developer-resources/run-time-software/linux-software-and-development-too...

 

We have tested this SDK under Ubuntu 12 and Ubuintu 14t. Do not use Ubuntu 16.

Use the following command sequence:

 

  1. sudo apt-get install ubuntu-minimal ubuntu-standard patch vim-common sed wget subversion git-core coreutils libbonobo2-common unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat make gcc build-essential xz-utils g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev autoconf automake groff libtool xterm libncurses5-dev cvs tofrodos

 

  1. a) command: ls -l /bin/sh

                Message:  /bin/sh -> dash

  1. b) command: sudo dpkg-reconfigure dash

                Answer after password – No

                Message:

                Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'

                Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'

                Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'

                Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'

  1. c) command for checking: ls -l /bin/sh

                Message: /bin/sh -> bash

 

  1. mount SDK 1.4 .iso file
  2. cd <sdk-install-dir>.
  3. ./scripts/host-prepare.sh

Usually Linux recommends also run the following command: sudo usr/sbin/visudo

  1. bitbake fsl-image-minimal


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos