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!
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!
-----------------------------------------------------------------------------------------------------------------------
hello,
I had modified the linux-qoriq_4.1.bbappend file, but the issue is the same, not is solved.
Usually the following command sequence is used for SDK installing under Ubuntu 14.04:
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
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!
-----------------------------------------------------------------------------------------------------------------------
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!
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
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!
你把unset ”PKG_CONFIG_PATH” 这个环境变量去掉了,还可以make 编译你的内核吗?我也是去掉unset ”PKG_CONFIG_PATH”后make menuconfig没问题,可以如果不把这个环境设进去,make就失败了