Build issue with Ls1021a Yacto SDK

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

Build issue with Ls1021a Yacto SDK

Jump to solution
1,761 Views
nagireddychitta
Contributor III

Dear All,

I am trying to build the SDK for my ls1021atwr board and seeing the below issues with links not being available and forcing the build to fail.

Commands i used:

a) bitbake fsl-image-full

and

b) bitbake fsl-image-minimal

Build errors are below:

////////////////////////////////////////////////////////////////////////////////////////////////////////////

WARNING: Failed to fetch URL git://sw-stash.freescale.net/scm/dnnpi/ls1-linux.git;branch=LS1-SDK-Rev2.0;protocol=http, attempting MIRRORS if available

ERROR: Fetcher failure: Fetch command failed with exit code 128, output:

Cloning into bare repository '/home/nagi/SDK/Freescale-Linux-SDK-for-LS1021A-Rev2-v0.4-20150803-yocto/sources/git2/sw-stash.freescale.net.scm.dnnpi.ls1-linux.git'...

fatal: unable to access 'http://sw-stash.freescale.net/scm/dnnpi/ls1-linux.git/': Could not resolve host: sw-stash.freescale.net; No address associated with hostname

ERROR: Function failed: Fetcher failure for URL: 'git://sw-stash.freescale.net/scm/dnnpi/ls1-linux.git;branch=LS1-SDK-Rev2.0;protocol=http'. Unable to fetch URL from any source.

ERROR: Logfile of failure stored in: /home/nagi/SDK/Freescale-Linux-SDK-for-LS1021A-Rev2-v0.4-20150803-yocto/build_ls1021atwr_release/tmp/work/ls1021atwr-fsl-linux-gnueabi/linux-ls1/3.12-r0/temp/log.do_fetch.4511

ERROR: Task 3 (/home/nagi/SDK/Freescale-Linux-SDK-for-LS1021A-Rev2-v0.4-20150803-yocto/meta-fsl-arm/recipes-kernel/linux/linux-ls1_3.12.bb, do_fetch) failed with exit code '1'

///////////////////////////////////////////////////////////////////////////////////////////////////////////

Does anyone has any idea on the above issue pls?

Regards,

Nagi

Labels (1)
0 Kudos
1 Solution
1,064 Views
Pavel
NXP Employee
NXP Employee

Usually we use Ubuntu 14 64bit for SDK using.

Use the following command sequence for SDK installing:

  1. 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

    if it is 64-bit operating system, run the following command also:

    sudo apt-get install ia32-libs lib32ncurses5

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

                Message from ubuntu: /bin/sh -> dash

    b) command: sudo dpkg-reconfigure dash

                Answer after password – No

                Message from ubuntu:

                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'

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

                Message from ubuntu: /bin/sh -> bash

  1. 3. mount the Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-SOURCE-20150907-yocto.iso
  2. 4. install SDK source
  3. 5. change directory to /Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso

Issue the following command:

$ ./poky/scripts/host-prepare.sh./scripts/host-prepare.sh

  1. 6. Usually Linux recommends also run the following command: sudo usr/sbin/visudo
  2. 7. bitbake fsl-image-minimal


Have a great day,
Pavel

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

View solution in original post

0 Kudos
1 Reply
1,065 Views
Pavel
NXP Employee
NXP Employee

Usually we use Ubuntu 14 64bit for SDK using.

Use the following command sequence for SDK installing:

  1. 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

    if it is 64-bit operating system, run the following command also:

    sudo apt-get install ia32-libs lib32ncurses5

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

                Message from ubuntu: /bin/sh -> dash

    b) command: sudo dpkg-reconfigure dash

                Answer after password – No

                Message from ubuntu:

                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'

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

                Message from ubuntu: /bin/sh -> bash

  1. 3. mount the Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-SOURCE-20150907-yocto.iso
  2. 4. install SDK source
  3. 5. change directory to /Freescale-Linux-SDK-for-LS1021A-IOT-Rev2-v0.4-20150907-yocto.iso

Issue the following command:

$ ./poky/scripts/host-prepare.sh./scripts/host-prepare.sh

  1. 6. Usually Linux recommends also run the following command: sudo usr/sbin/visudo
  2. 7. bitbake fsl-image-minimal


Have a great day,
Pavel

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

0 Kudos