compile kernel

cancel
Showing results for 
Search instead for 
Did you mean: 

compile kernel

891 Views
shunpinglin
Contributor III

Now I extract the linux kenel code from The SDK2.0 and compile it, but the command "make menuconfig" error.

The commands:

splin@splin-VirtualBox:~/linux-kernel$ make ls1021a_defconfig

splin@splin-VirtualBox:~/linux-kernel$ make menuconfig
 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 ***
 *** Install ncurses (ncurses-devel) and try again.
 ***
scripts/kconfig/Makefile:187: recipe for target 'scripts/kconfig/dochecklxdialog' failed
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
Makefile:541: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2

On my host I have install libncurses5-dev.

I think it use "/opt/fsl-qoriq/2.0/sysroots/cortexa7hf-vfp-neon-fsl-linux-gnueabi/usr/lib/pkgconfig"

-rw-r--r-- 1 root root 294 10月 24 16:19 ncurses.pc
-rw-r--r-- 1 root root 333 10月 24 16:19 ncurses++.pc
-rw-r--r-- 1 root root 339 10月 24 16:19 ncurses++w.pc
-rw-r--r-- 1 root root 296 10月 24 16:19 ncursesw.pc

there is no ncurses-dev.

I don't understand,why?  help!

Labels (1)
0 Kudos
7 Replies

355 Views
Pavel
NXP TechSupport
NXP TechSupport

Use Ubuntu 14 for SDK building.

 

Please apply the following patch to fix it:

http://git.freescale.com/git/cgit.cgi/yocto/meta-nxp-npi.git/commit/?h=jethro-sdk-v2.0-ga-17.03

 

Attached file contains corrected linux-qoriq_4.1.bbappend file. Path for this file is the following:

/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1703/recipes-kernel/linux$ ls

linux-qoriq_4.1.bbappend

 

See also the following page in NXP community abut EULA:

https://community.nxp.com/thread/445051


Have a great day,
Pavel Chubakov

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

0 Kudos

355 Views
shunpinglin
Contributor III

hello,

    I had modified the linux-qoriq_4.1.bbappend file, but the issue is the same, not is solved.

0 Kudos

355 Views
Pavel
NXP TechSupport
NXP TechSupport

Usually the following command sequence is used for SDK installing under Ubuntu 14.04:

  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 2.0 .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. install SDK 2.0-1703
  2. bitbake fsl-image-minimal

 

Command sequence for menuconfig:

bitbake -c cleansstate virtual/kernel

bitbake -c patch virtual/kernel

bitbake -c menuconfig virtual/kernel

Rebuild kernel:

$ bitbake virtual/kernel

 

Is there problem for using this command sequence?


Have a great day,
Pavel Chubakov

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

0 Kudos

355 Views
shunpinglin
Contributor III

hello,

     bitbak fsl-image-minimal is OK, but bitbake fsl-image-full is failure.

The following message:

ERROR: Function failed: do_configure (log file is located at /home/splin/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.12336)
ERROR: Logfile of failure stored in: /home/splin/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.12336
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
|
| ERROR: User requested feature sdl
|        configure was not able to find it.
|        Install SDL devel
|
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/splin/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.12336)

How I fix this problem? Thank you!

0 Kudos

355 Views
shunpinglin
Contributor III

hello,

    I bitbake fsl-image-full,but failure, the following messages:


ERROR: Function failed: do_configure (log file is located at /home/splin/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.25482)
ERROR: Logfile of failure stored in: /home/splin/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.25482
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
|
| ERROR: User requested feature sdl
|        configure was not able to find it.
|        Install SDL devel
|
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_configure (log file is located at /home/splin/QorIQ-SDK-V2.0-20160527-yocto/build_ls1021atwr/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.25482)
ERROR: Task 4947 (virtual:native:/home/splin/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/meta/recipes-devtools/qemu/qemu_2.4.0.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1688 tasks of wh

0 Kudos

355 Views
shunpinglin
Contributor III

hello,

    There are no problem using up command. But we think that only using toolchains and  kernel code for development members not installing SDK. 

    Now I unset ”PKG_CONFIG_PATH” to solve the problem.

Thank you!

0 Kudos

355 Views
857849964
Contributor I

你把unset ”PKG_CONFIG_PATH” 这个环境变量去掉了,还可以make 编译你的内核吗?我也是去掉unset ”PKG_CONFIG_PATH”后make menuconfig没问题,可以如果不把这个环境设进去,make就失败了

0 Kudos