gpt4 book ai didi

docker - 在 Docker 中运行 Yocto, "make menuconfig"失败

转载 作者:行者123 更新时间:2023-12-02 18:49:10 25 4
gpt4 key购买 nike

在 Docker 容器中运行 Yocto,我无法执行“make menuconfig”

$ MACHINE=varsomam33 bitbake -c menuconfig linux-ti-variscite

ERROR: No valid terminal found, unable to open devshell
ERROR: Function failed: do_menuconfig

最佳答案

    Solution: gnu "screen" command

Bitbake tries to spawn a number of terminal programs, most of which fail
because A) they're not installed or B) they require X Windows. We can't
execute X terminals in the docker command-line (no X support).

So the most viable terminal is gnu screen.

In my ubuntu docker container:
$ sudo apt-get install screen
$ tty // Shows "not a tty", we're trying to fix that

Get in the docker containter as root (something like: docker exec -it $(docker ps -q) /bin/bash )
# agetty tty // This will present you with a login prompt, login as your regular yocto user
$ tty // Should show a valid tty
$ screen // Start a screen session
$ cd build // Got to Yocto build dir
$ source conf/setenv
$ MACHINE=varsomam33 bitbake -c menuconfig linux-ti-variscite // Will spawn a new "screen" terminal, using ncurses for menuconfig

关于docker - 在 Docker 中运行 Yocto, "make menuconfig"失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42231866/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com