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 ?
Solved! Go to Solution.
Use Ubuntu 14 for this SDK.
The following command sequence was used under Ubuntu 14:
Message: /bin/sh -> 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'
Message: /bin/sh -> bash
Usually Linux recommends also run the following command: sudo usr/sbin/visudo
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Use Ubuntu 14 for this SDK.
The following command sequence was used under Ubuntu 14:
Message: /bin/sh -> 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'
Message: /bin/sh -> bash
Usually Linux recommends also run the following command: sudo usr/sbin/visudo
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
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 ?