About Make uImage

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

About Make uImage

838 Views
houtpeng
Contributor I

My standalone toolchain at

/opt/fsl-qoriq/1.9/

and i have run comand like this in my terminal

source /opt/fsl-qoriq/1.9/environment-setup-ppce6500-fsl-linux

last ,when i make the uImage, there are some errors like this:

cpit-drv@cpitdrv-Lenovo:~/Yocto/QorIQ_SDK_V1.9/Project/Test/kernel-source$ make uImage

  CHK     include/config/kernel.release

  CHK     include/generated/uapi/linux/version.h

  CHK     include/generated/utsrelease.h

  CALL    scripts/checksyscalls.sh

  CHK     include/generated/compile.h

  CALL    arch/powerpc/kernel/systbl_chk.sh

  CHK     kernel/config_data.h

  LINK    vmlinux

  LD      vmlinux.o

powerpc-fsl-linux-ld: cannot find libgcc.a: No such file or directory

powerpc-fsl-linux-ld: cannot find libgcc.a: No such file or directory

make: *** [vmlinux] 错误 1

cpit-drv@cpitdrv-Lenovo:~/Yocto/QorIQ_SDK_V1.9/Project/Test/kernel-source$

but when i run $CC --print-libgcc-file-name like following:

cpit-drv@cpitdrv-Lenovo:~/Yocto/QorIQ_SDK_V1.9/Project/Test/kernel-source$ $CC --print-libgcc-file-name

/opt/fsl-qoriq/1.9/sysroots/ppce6500-fsl-linux/usr/lib/powerpc-fsl-linux/4.9.2/libgcc.a

cpit-drv@cpitdrv-Lenovo:~/Yocto/QorIQ_SDK_V1.9/Project/Test/kernel-source$

How can i solve this error,thanks!

0 Kudos
3 Replies

539 Views
Pavel
NXP Employee
NXP Employee

We usually use the following command sequence for uImage building:

  1. 1. bitbake -c cleanall virtual/kernel

or

bitbake -c cleansstate virtual/kernel

  1. 2. bitbake -c patch virtual/kernel

  1. 3. bitbake -c menuconfig virtual/kernel

  1. 4. bitbake virtual/kernel

This command rebuilds the kernel.


Have a great day,
Pavel Chubakov

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

0 Kudos

539 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 Chubakov

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

0 Kudos

539 Views
houtpeng
Contributor I

Thanks Pavel Chubakov for you answers!

I have installed the QorIQ SDK V1.9 SOURCE.iso success and could bitbake fsl-image-minimal and bitbake fsl-toolchain successfull. But I want to make uImage Using the SDK Source Code by the installed standalone as mentioned.

0 Kudos