QorIQ SDK v1.9 bitbake fsl-image-full for P1020

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

QorIQ SDK v1.9 bitbake fsl-image-full for P1020

Jump to solution
2,270 Views
alvinhsu
Contributor II

Hi all, After command "bitbake fsl-image-full", it returns error message as below.

| checking for diff -u... yes

| checking for a supported version of gcc... ok (4.9.2)

| checking build system type... i686-pc-linux-gnu

| checking host system type... powerpc-fsl-linux-gnuspe

| checking for a supported CPU... ok (powerpc)

| checking for a 64-bit only build... no

| checking for a 32-bit only build... no

| checking for a supported OS... ok (linux-gnuspe)

| checking for the kernel version... unsupported (4.2.0-42-generic)

| configure: error: Valgrind works on kernels 2.4, 2.6

| Configure failed. The contents of all config.log files follows to aid debugging

| ERROR: oe_runconf failed

| WARNING: exit code 1 from a shell command.

| ERROR: Function failed: do_configure (log file is located at /home/daniel/Workspace/projects/p1020rdb_qoriq_linux_sdk_v1_9/QorIQ-SDK-V1.9-20151210-yocto/build_p1020rdb/tmp/work/ppce500v2-fsl-linux-gnuspe/valgrind/3.8.1+fsl-r0/temp/log.do_configure.14160)

ERROR: Task 2927 (/home/daniel/Workspace/projects/p1020rdb_qoriq_linux_sdk_v1_9/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-freescale/recipes-devtools/valgrind/valgrind_fsl.bb, do_configure) failed with exit code '1'

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

Waiting for 0 running tasks to finish:

Summary: 1 task failed:

  /home/daniel/Workspace/projects/p1020rdb_qoriq_linux_sdk_v1_9/QorIQ-SDK-V1.9-20151210-yocto/sources/meta-freescale/recipes-devtools/valgrind/valgrind_fsl.bb, do_configure

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

This is my local environment

VMware 7.1.0 build-2496824

Ubuntu 14.04.4 - 32 bit (ubuntu-14.04.4-desktop-i386)

Commands

>> sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm

>> sudo mount -o loop QorIQ\ SDK\ V1.9\ SOURCE.iso /mnt/cdrom

>> cd /mnt/cdrom/

>> ./install

>> cd /home/daniel/Workspace/projects/p1020rdb_qoriq_linux_sdk_v1_9/QorIQ-SDK-V1.9-20151210-yocto

>> ./sources/meta-freescale/scripts/host-prepare.sh

>> sudo "/usr/sbin/visudo" and add the following line in the User privilege section:

daniel ALL = NOPASSWD: /usr/bin/apt-get

>>. ./fsl-setup-env -m p1020rdb

>> bitbake fsl-image-full

Can someone know what it means and how to fixed it ?

My reference design board (RDB) is P1020WLAN. Should I use command target "p1020rdb" or others?

Thanks a lot!

1 Solution
1,152 Views
Pavel
NXP Employee
NXP Employee

Check your command sequence for this SDK using.

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 e500v2
  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 before and start script again.

  1. 7. bitbake fsl-image-minimal

Look at your Linux message dump. It looks like that there were error messages at "./sources/meta-freescale/scripts/host-prepare.sh" command.


Have a great day,
Pavel Chubakov

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

View solution in original post

4 Replies
1,151 Views
alvinhsu
Contributor II

Hi Pavel,

Great thanks! I have been built successfully using your suggestion.

NOTE: Preparing RunQueue

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

NOTE: Tasks Summary: Attempted 1323 tasks of which 1073 didn't need to be rerun and all succeeded.

0 Kudos
1,153 Views
Pavel
NXP Employee
NXP Employee

Check your command sequence for this SDK using.

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 e500v2
  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 before and start script again.

  1. 7. bitbake fsl-image-minimal

Look at your Linux message dump. It looks like that there were error messages at "./sources/meta-freescale/scripts/host-prepare.sh" command.


Have a great day,
Pavel Chubakov

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

1,151 Views
alvinhsu
Contributor II

Hi Pavel,

Should I install valgrid (sudo apt-get install valgrind) ??

0 Kudos
1,151 Views
alvinhsu
Contributor II

One more question. What commands I can use to clean-rebuild ?

0 Kudos