【开发环境】 uClinux内核编译问题<config/kconfig/mconf: cannot execute binary file>问题解决方法

一、前言

  最近进行uClinux移植,make menuconfig时碰到如下问题:

[hello@localhost uClinux-dist]$ make menuconfig
find vendors -mindepth 2 '(' -name .svn -prune ')' -o -type f -name Kconfig -print | sed 's:^:source ../:' > vendors/Kconfig
config/mkconfig > Kconfig
KCONFIG_NOTIMESTAMP=1 /home/hello/Desktop/nios2-linux/uClinux-dist/config/kconfig/mconf Kconfig
/bin/sh: /home/hello/Desktop/nios2-linux/uClinux-dist/config/kconfig/mconf: cannot execute binary file
make: *** [menuconfig] Error 126

 

二、解决

  参考<http://www.alteraforum.com/forum/archive/index.php/t-38370.html> 文中提到的将mconf重新编译可解决问题,但文中未提及如何重新编译。

  

  现补充如下:

[hello@localhost kconfig]$ cd /home/hello/Desktop/nios2-linux/uClinux-dist/config/kconfig
[hello@localhost kconfig]$ ls
[hello@localhost kconfig]$ make clean
[hello@localhost kconfig]$ make all

  

  然后重新make menuconfig即可。

 

posted @ 2017-02-14 22:14  digital-world  阅读(589)  评论(0编辑  收藏  举报