bitbake -c populate_sdk fsl-image-full fails (SDK 2.0)

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

bitbake -c populate_sdk fsl-image-full fails (SDK 2.0)

2,658 Views
chandramills
Contributor I

I tried this command and it failed:

kyle@ubuntu:/opt/QorIQ-SDK-V2.0-20160527-yocto/build_b4860qds-64b$ bitbake -c populate_sdk fsl-image-full

Loading cache: 100% |##################################################################################################################################| ETA:  00:00:00

Loaded 6113 entries from dependency cache.

NOTE: Resolving any missing task queue dependencies

Build Configuration:

BB_VERSION        = "1.28.0"

BUILD_SYS         = "x86_64-linux"

NATIVELSBSTRING   = "Ubuntu-14.04"

TARGET_SYS        = "powerpc64-fsl-linux"

MACHINE           = "b4860qds-64b"

DISTRO            = "fsl-qoriq"

DISTRO_VERSION    = "2.0"

TUNE_FEATURES     = "m64 fpu-hard e6500 altivec"

TARGET_FPU        = "hard"

meta             

meta-yocto       

meta-yocto-bsp    = "HEAD:9a211a4a2c1bfcb292dc97d8dcac149bca9e3f1b"

meta-oe          

meta-multimedia  

meta-gnome       

meta-networking  

meta-perl        

meta-python      

meta-ruby        

meta-filesystems 

meta-webserver   

meta-xfce         = "HEAD:dc5634968b270dde250690609f0015f881db81f2"

meta-freescale    = "HEAD:2461b02ac6e7d549647ced03b084f14f845906d1"

meta-sdr          = "master:beca342b3db1526d87c2bbd2bfb6016956270a4a"

meta-freescale-internal = "HEAD:4829293f807e35a1111e79763294fc8b98b97810"

meta-freescale-extra = "HEAD:bee911b027e0480b034674d0ddee3fcb06d2e985"

meta-virtualization = "HEAD:042425c1d98bdd7e44a62789bd03b375045266f5"

meta-java         = "HEAD:8b776ac68f9af4596be3824152bcf0bc6b67fa1d"

meta-openstack   

meta-openstack-aio-deploy

meta-openstack-compute-deploy

meta-openstack-compute-test-config

meta-openstack-controller-deploy

meta-openstack-controller-test-config

meta-openstack-qemu

meta-openstack-swift-deploy

meta-cloud-services = "HEAD:d8bc0d92d0f741e2ea1e6d3d9bc6b7a091d03cfb"

meta-security     = "HEAD:f9367e71f923fc7d2fb600208e2b97535ea41777"

NOTE: Preparing RunQueue

NOTE: Checking sstate mirror object availability (for 351 objects)

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

ERROR: Command Error: exit status: 126  Output:

/opt/QorIQ-SDK-V2.0-20160527-yocto/build_b4860qds-64b/tmp/sysroots/x86_64-linux/usr/bin/quilt: line 153: /home/kyle/bin/bash: cannot execute binary file: Exec format error

ERROR: Function failed: patch_do_patch

ERROR: Logfile of failure stored in: /opt/QorIQ-SDK-V2.0-20160527-yocto/build_b4860qds-64b/tmp/work/x86_64-nativesdk-fslsdk-linux/nativesdk-glibc-initial/2.20-r0/temp/log.do_patch.20791

ERROR: Task 1105 (virtual:nativesdk:/opt/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-core/glibc/glibc-initial_2.20.bb, do_patch) failed with exit code '1'

NOTE: Tasks Summary: Attempted 212 tasks of which 203 didn't need to be rerun and 1 failed.

Waiting for 0 running tasks to finish:

Summary: 1 task failed:

  virtual:nativesdk:/opt/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-core/glibc/glibc-initial_2.20.bb, do_patch

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

kyle@ubuntu:/opt/QorIQ-SDK-V2.0-20160527-yocto/build_b4860qds-64b$

kyle@ubuntu:/opt/QorIQ-SDK-V2.0-20160527-yocto/build_b4860qds-64b$

kyle@ubuntu:/opt/QorIQ-SDK-V2.0-20160527-yocto/build_b4860qds-64b$ mkdir ~/j

mkdir: cannot create directory ‘/home/kyle/j’: File exists

kyle@ubuntu:/opt/QorIQ-SDK-V2.0-20160527-yocto/build_b4860qds-64b$ sudo mount ~/Downloads/

boost_1_61_0.tar.bz2                     cppunit-cvs-repo-archive.tar.bz2         QorIQ Linux SDK v2.0 SOURCE.iso         

cppunit-cvs-repo-archive(1).tar.bz2      QorIQ Linux SDK v2.0 PPCE6500 IMAGE.iso 

kyle@ubuntu:/opt/QorIQ-SDK-V2.0-20160527-yocto/build_b4860qds-64b$ sudo mount ~/Downloads/QorIQ\ Linux\ SDK\ v2.0\ PPCE6500\ IMAGE.iso ~/j

[sudo] password for kyle:

mount: block device /home/kyle/Downloads/QorIQ Linux SDK v2.0 PPCE6500 IMAGE.iso is write-protected, mounting read-only

kyle@ubuntu:/opt/QorIQ-SDK-V2.0-20160527-yocto/build_b4860qds-64b$

0 Kudos
3 Replies

1,132 Views
Pavel
NXP Employee
NXP Employee

We usually use the following command sequence for SDK installing under Ubuntu 14.04 and Ubuntu 16.04:

  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

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

                Message:  /bin/sh -> dash

    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'

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

                Message: /bin/sh -> bash

  1. 3. install SDK cache for e6500
  2. 4. install SDK source
  3. 5. cd <sdk-install-dir>.
  4. 6. ./sources/meta-freescale/scripts/host-prepare.sh

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

Look at your Linux message dump. Are there error messages at "./sources/meta-freescale/scripts/host-prepare.sh" command?

  1. 7. bitbake fsl-image-minimal
  2. 8. bitbake fsl-image-full


Have a great day,
Pavel Chubakov

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

0 Kudos

1,132 Views
chandramills
Contributor I

I am trying to build the sdk by typeing the command 'bitbake -c populate_sdk fsl-image-full'  I am getting the error:

NOTE: /opt/QorIQ-SDK-V1.8-20150619-yocto/build_b4860qds-64b_release/tmp/sysroots/x86_64-linux/usr/bin/smart --data-dir=/opt/QorIQ-SDK-V1.8-20150619-yocto/build_b4860qds-64b_release/tmp/work/b4860qds_64b-fsl-linux/fsl-image-full/1.0-r0/sdk/image/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/ppc64e6500-fsl-linux/var/lib/smart install -y libgcc1@lib32_ppce6500 gcc@lib32_ppce6500 libgcov-dev@lib32_ppce6500 libgcc-s-dev@lib32_ppce6500 valgrind@lib32_ppce6500 binutils@lib32_ppce6500 g++@lib32_ppce6500 ldd@lib32_ppce6500 gcov@lib32_ppce6500 cpp@lib32_ppce6500 eglibc-utils@lib32_ppce6500 eglibc-dev@lib32_ppce6500

ERROR: Unable to install packages. Command '/opt/QorIQ-SDK-V1.8-20150619-yocto/build_b4860qds-64b_release/tmp/sysroots/x86_64-linux/usr/bin/smart --data-dir=/opt/QorIQ-SDK-V1.8-20150619-yocto/build_b4860qds-64b_release/tmp/work/b4860qds_64b-fsl-linux/fsl-image-full/1.0-r0/sdk/image/opt/fsl-networking/QorIQ-SDK-V1.8/sysroots/ppc64e6500-fsl-linux/var/lib/smart install -y libgcc1@lib32_ppce6500 gcc@lib32_ppce6500 libgcov-dev@lib32_ppce6500 libgcc-s-dev@lib32_ppce6500 valgrind@lib32_ppce6500 binutils@lib32_ppce6500 g++@lib32_ppce6500 ldd@lib32_ppce6500 gcov@lib32_ppce6500 cpp@lib32_ppce6500 eglibc-utils@lib32_ppce6500 eglibc-dev@lib32_ppce6500' returned 1:

Loading cache...

Updating cache...               ######################################## [100%]

Computing transaction...                                                                               ^MCommitting transaction...

Preparing...                    ######################################## [  0%]

error: file /usr/include/gnu/lib-names.h from install of eglibc-dev-2.19-r0.lib32_ppce6500 conflicts with file from package libc6-dev-2.19-r0.ppc64e6500

error: file /usr/bin/embedspu from install of binutils-2.23.2-r4.lib32_ppce6500 conflicts with file from package binutils-2.23.2-r4.ppc64e6500

Installing packages (18):

  binutils-2.23.2-r4@lib32_ppce6500      ldd-2.19-r0@lib32_ppce6500

  cpp-4.9.2-r0@lib32_ppce6500            libgcc-s-dev-4.9.2-r0@lib32_ppce6500

  eglibc-2.19-r0@lib32_ppce6500          libgcc1-4.9.2-r0@lib32_ppce6500

  eglibc-dbg-2.19-r0@lib32_ppce6500      libgcov-dev-4.9.2-r0@lib32_ppce6500

  eglibc-dev-2.19-r0@lib32_ppce6500      libgmp10-5.1.1-r0@lib32_ppce6500

0 Kudos

1,132 Views
chandramills
Contributor I

Also.  I see that in when I do a 'bitbake -c populate_sdk fsl-image-full' on the SDK 2.0, it doesn't build the *lib32* variants, but in the SDK 1.8 it does build the *lib32* and I get the errors.  Can I turn off the lib32 variants in SDK 1.8?

0 Kudos