[YOCTO] Compiling virtual/kernel after changing .config file is giving error

cancel
Showing results for 
Search instead for 
Did you mean: 

[YOCTO] Compiling virtual/kernel after changing .config file is giving error

Jump to solution
893 Views
yusufalti333
Contributor IV

Hello

I am using SDK V2.0 - 1703 for T1042D4RDB-64B. Default kernel compiling process is only giving 4 driver output. I need to enable the drivers I want and want to change the kernel .config file. I followed the procedure as following;


1) bitbake virtual/kernel -c cleansstate

2) bitbake virtual/kernel -c patch

4) bitbake virtual/kernel -c configure

5) make ARCH=powerpc menuconfig

6) bitbake virtual/kernel


But it's giving compilement error as follows.


Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 uImage CC=powerpc64-fsl-linux-gcc  -fuse-ld=bfd  --sysroot=/home/hwlab/QorIQ-SDK-V2.0-20160527-yocto/build_t1042d4rdb-64b/tmp/sysroots/t1042d4rdb-64b LD=powerpc64-fsl-linux-ld.bfd   --sysroot=/home/hwlab/QorIQ-SDK-V2.0-20160527-yocto/build_t1042d4rdb-64b/tmp/sysroots/t1042d4rdb-64b LOADADDR=0x80008000
|   CHK     include/config/kernel.release
|   GEN     ./Makefile
|   CHK     include/generated/uapi/linux/version.h
|   Using /home/hwlab/QorIQ-SDK-V2.0-20160527-yocto/build_t1042d4rdb-64b/tmp/work-shared/t1042d4rdb-64b/kernel-source as source for kernel
|   /home/hwlab/QorIQ-SDK-V2.0-20160527-yocto/build_t1042d4rdb-64b/tmp/work-shared/t1042d4rdb-64b/kernel-source is not clean, please run 'make mrproper'
|   in the '/home/hwlab/QorIQ-SDK-V2.0-20160527-yocto/build_t1042d4rdb-64b/tmp/work-shared/t1042d4rdb-64b/kernel-source' directory.
| make[2]: *** [prepare3] Error 1
| make[1]: *** [sub-make] Error 2
| make: *** [__sub-make] Error 2
| WARNING: exit code 1 from a shell command.
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/hwlab/QorIQ-SDK-V2.0-20160527-yocto/build_t1042d4rdb-64b/tmp/work/t1042d4rdb_64b-fsl-linux/linux-qoriq/4.1-r0/temp/log.do_compile.14081)
ERROR: Task 5 (/home/hwlab/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_4.1.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 286 tasks of which 285 didn't need to be rerun and 1 failed.


When I do not touch the .config file using "make ARCH=powerpc menuconfig" it's compiling successfully. I want to enable "Load also drivers which will not be used" option in menuconfig. But when I save it as ".config" file and start compiling, it's giving error.

Any idea ?

0 Kudos
1 Solution
551 Views
Pavel
NXP TechSupport
NXP TechSupport

Use Ubuntu 14 for this SDK.

The following command sequence was used under Ubuntu 14:

 

  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 source .iso file
  2. cd <sdk-install-dir>.
  3. ./sources/meta-freescale/scripts/host-prepare.sh

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

  1. . fsl-setup-env -m t1042d4rdb
  2. bitbake fsl-image-minimal

 

  1. a) bitbake -c cleansstate virtual/kernel
  2. b) bitbake -c patch virtual/kernel
  3. c) bitbake -c menuconfig virtual/kernel
  4. d) bitbake virtual/kernel
  5. e) bitbake -c compile -f virtual/kernel

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

0 Kudos
2 Replies
552 Views
Pavel
NXP TechSupport
NXP TechSupport

Use Ubuntu 14 for this SDK.

The following command sequence was used under Ubuntu 14:

 

  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 source .iso file
  2. cd <sdk-install-dir>.
  3. ./sources/meta-freescale/scripts/host-prepare.sh

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

  1. . fsl-setup-env -m t1042d4rdb
  2. bitbake fsl-image-minimal

 

  1. a) bitbake -c cleansstate virtual/kernel
  2. b) bitbake -c patch virtual/kernel
  3. c) bitbake -c menuconfig virtual/kernel
  4. d) bitbake virtual/kernel
  5. e) bitbake -c compile -f virtual/kernel

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

0 Kudos
551 Views
yusufalti333
Contributor IV

Thank you. I can compile kernel with my own settings now. But there is still a little problem that I didn't get it. modules.t1042d4rdb-64b.tgz file still does not contain all the drivers. But build folder is telling me It compiled all the drivers I selected in menuconfig. https://i.hizliresim.com/vaWQlp.png  there on the left side, buildin file is listing all the drivers I selected but modules.order file is only containing 13 driver files. How can I make kernel include all the drivers compiled with yocto ?

0 Kudos