Yocto BitBake将tmux包添加到映像
我正在尝试将tmux包添加到使用BitBake构建的映像中 众所周知,tmux的配方是:Yocto BitBake将tmux包添加到映像,yocto,bitbake,Yocto,Bitbake,我正在尝试将tmux包添加到使用BitBake构建的映像中 众所周知,tmux的配方是: user@ubuntu:/opt/user/build$ bitbake-layers show-recipes | grep -A 1 tmux tmux: meta-oe 2.1 将此行添加到my conf/local.conf: IMAGE\u INSTALL\u append=tmux 清理并构建映像: bitbake -c cleansstate phytec-he
user@ubuntu:/opt/user/build$ bitbake-layers show-recipes | grep -A 1 tmux
tmux:
meta-oe 2.1
将此行添加到my conf/local.conf:
IMAGE\u INSTALL\u append=tmux
清理并构建映像:
bitbake -c cleansstate phytec-headless-image
bitbake -c clean phytec-headless-image
bitbake phytec-headless-image
生成的输出:
Build Configuration:
BB_VERSION = "1.36.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal-4.8"
TARGET_SYS = "arm-phytec-linux-gnueabi"
MACHINE = "phyboard-mira-imx6-9"
DISTRO = "yogurt"
DISTRO_VERSION = "BSP-Yocto-i.MX6-PD18.1.2"
TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard cortexa9"
TARGET_FPU = "hard"
meta
meta-poky = "HEAD:5f660914cd7eec8117efccdf1eb29c466b4e74f7"
meta-oe
meta-networking
meta-python
meta-multimedia = "HEAD:eae996301d9c097bcbeb8046f08041dc82bb62f8"
meta-gstreamer1.0 = "HEAD:802a5db727edf0ec1d142122241c857bffab8667"
meta-phytec = "HEAD:fcc5c4c755fd273b951ac4726b795ca5a9e9a5ed"
meta-rauc = "HEAD:e9c3928d6c24bd58c613bd8334066021946d6347"
meta-qt5 = "HEAD:e6fb3850d43f857e87f7c53fc7df5933fef98cbd"
meta-yogurt = "HEAD:608387f14f29509af5d029347ab2049764b453d2"
将图像复制到SD卡,它将正常引导。但没有tmux:
root@phyboard-mira-imx6-3:~# tmux
-sh: tmux: command not found
root@phyboard-mira-imx6-3:~# find / -name tmux
root@phyboard-mira-imx6-3:~#
关于为什么不将tmux添加到映像中的指导或提示,我们非常感谢。问题是我以为正在闪烁的板是从NAND启动的,而不是我正在使用的SD卡。它有一个小的硬件开关来选择从哪里启动,所以我从来没有真正启动过我认为包含tmux的映像
如Parthiban所述,您可以验证IMAGE\u INSTALL\u append中包含的二进制文件是否确实包含在内,请查看IMAGE/*/rootfs。检查当前Yocto设置中是否存在特定的软件包 bitbake-s|grep 请参见尝试使用图像\u安装\u追加+=。但在刷新映像之前,您可以在`tmp/work/phyboard-mira-imx6-9/phytec headless image/*/rootfs中检查rootfs build中是否存在tmux。因此,您可以确保在闪烁之前将其安装在目标RFS中。