Yocto配置menuconfig报错:ERROR: do_menuconfig: No valid terminal found, unable to open devshell.

使用yocto配置busybox时,配置menuconfig时报错:ERROR: busybox-1.27.2-r0 do_menuconfig: No valid terminal found, unable to open devshell.


环境:ubuntu 18.04
平台:IMX8QXPMEK

今天天在使用yocto配置busybox时在执行 bitbake -c menuconfig busybox 配置menuconfig出现如下问题:

WARNING: You have included the meta-gnome layer, but 'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-gnome README for details on enabling meta-gnome support.
WARNING: Host distribution "ubuntu-18.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |##################################################################################################################################################################| Time: 0:00:00
Loaded 3486 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.38.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "imx8qxpmek"
DISTRO               = "fsl-imx-wayland"
DISTRO_VERSION       = "4.14-sumo"
TUNE_FEATURES        = "aarch64"
TARGET_FPU           = ""
meta                 
meta-poky            = "HEAD:5ddf7fff992b065ee512878d2fe65f3e35d818cf"
meta-oe              
meta-multimedia      = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-freescale       = "HEAD:86772601e7f6ea188dfaf64097edafc05e15aef3"
meta-freescale-3rdparty = "HEAD:82037216280a39957fb4272581637abec734ad50"
meta-freescale-distro = "HEAD:f7e2216e93aff14ac32728a13637a48df436b7f4"
meta-bsp             
meta-sdk             = "HEAD:c2602efbe743dbe5e7907646694d772144b56b2d"
meta-browser         = "HEAD:75640e14e325479c076b6272b646be7a239c18aa"
meta-gnome           
meta-networking      
meta-python          
meta-filesystems     = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-qt5             = "HEAD:d4e7f73d04e8448d326b6f89908701e304e37d65"

Initialising tasks: 100% |#############################################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: busybox-1.27.2-r0 do_menuconfig: No valid terminal found, unable to open devshell.
Tried the following commands:
        tmux split-window "do_terminal"
        tmux new-window -n "busybox Configuration" "do_terminal"
        xfce4-terminal -T "busybox Configuration" -e "do_terminal"
        terminology -T="busybox Configuration" -e do_terminal
        mate-terminal --disable-factory -t "busybox Configuration" -x do_terminal
        konsole --separate --workdir . -p tabtitle="busybox Configuration" -e do_terminal
        gnome-terminal -t "busybox Configuration" -x do_terminal
        xterm -T "busybox Configuration" -e do_terminal
        rxvt -T "busybox Configuration" -e do_terminal
        tmux new -d -s devshell -n devshell "do_terminal"
        screen -D -m -t "busybox Configuration" -S devshell do_terminal
ERROR: busybox-1.27.2-r0 do_menuconfig: Function failed: do_menuconfig
ERROR: Logfile of failure stored in: /home/yzy/workspace/Yocto/NIO_SA_981D_v2.0/tmp/work/aarch64-poky-linux/busybox/1.27.2-r0/temp/log.do_menuconfig.18589
ERROR: Task (/home/yzy/workspace/Yocto/sources/poky/meta/recipes-core/busybox/busybox_1.27.2.bb:do_menuconfig) failed with exit code '1'
NOTE: Tasks Summary: Attempted 282 tasks of which 281 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/yzy/workspace/Yocto/sources/poky/meta/recipes-core/busybox/busybox_1.27.2.bb:do_menuconfig
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

配置menuconfig报错

解决方法:
缺少tmux包;执行sudo apt-get install tmux 安装tmux即可;
yzy@v2x:~/workspace/Yocto/NIO_SA_981D_v2.0$ sudo apt-get install tmux
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-hwe-5.4-headers-5.4.0-120 linux-hwe-5.4-headers-5.4.0-121 linux-hwe-5.4-headers-5.4.0-122 linux-hwe-5.4-headers-5.4.0-124 linux-hwe-5.4-headers-5.4.0-125 linux-hwe-5.4-headers-5.4.0-126
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  tmux
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 248 kB of archives.
After this operation, 647 kB of additional disk space will be used.
Get:1 http://mirrors.yun-idc.com/ubuntu bionic-updates/main amd64 tmux amd64 2.6-3ubuntu0.2 [248 kB]
Fetched 248 kB in 1s (322 kB/s)
Selecting previously unselected package tmux.
(Reading database ... 330894 files and directories currently installed.)
Preparing to unpack .../tmux_2.6-3ubuntu0.2_amd64.deb ...
Unpacking tmux (2.6-3ubuntu0.2) ...
Setting up tmux (2.6-3ubuntu0.2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
安装好tmux后重新执行bitbake -c menuconfig busybox 问题解决!
yzy@v2x:~/workspace/Yocto/NIO_SA_981D_v2.0$ bitbake -c menuconfig busybox
WARNING: You have included the meta-gnome layer, but 'x11' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-gnome README for details on enabling meta-gnome support.
WARNING: Host distribution "ubuntu-18.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |##################################################################################################################################################################| Time: 0:00:00
Loaded 3486 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.38.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "imx8qxpmek"
DISTRO               = "fsl-imx-wayland"
DISTRO_VERSION       = "4.14-sumo"
TUNE_FEATURES        = "aarch64"
TARGET_FPU           = ""
meta                 
meta-poky            = "HEAD:5ddf7fff992b065ee512878d2fe65f3e35d818cf"
meta-oe              
meta-multimedia      = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-freescale       = "HEAD:86772601e7f6ea188dfaf64097edafc05e15aef3"
meta-freescale-3rdparty = "HEAD:82037216280a39957fb4272581637abec734ad50"
meta-freescale-distro = "HEAD:f7e2216e93aff14ac32728a13637a48df436b7f4"
meta-bsp             
meta-sdk             = "HEAD:c2602efbe743dbe5e7907646694d772144b56b2d"
meta-browser         = "HEAD:75640e14e325479c076b6272b646be7a239c18aa"
meta-gnome           
meta-networking      
meta-python          
meta-filesystems     = "HEAD:8760facba1bceb299b3613b8955621ddaa3d4c3f"
meta-qt5             = "HEAD:d4e7f73d04e8448d326b6f89908701e304e37d65"

Initialising tasks: 100% |#############################################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
Currently  1 running tasks (282 of 282)  99% |###################################################################################################################################################### |
0: busybox-1.27.2-r0 do_menuconfig - 0s (pid 19786)
Trying to run: tmux att -t devshell-19786
no sessions
NOTE: Tasks Summary: Attempted 282 tasks of which 281 didn't need to be rerun and all succeeded.

Summary: There were 2 WARNING messages shown.
  • 5
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值