我正在尝试将tmux
软件包添加到使用BitBake构建的镜像中。
BitBake已知tmux的配方:
user@ubuntu:/opt/user/build$ bitbake-layers show-recipes | grep -A 1 tmux
tmux:
meta-oe 2.1
我在conf/local.conf文件中添加了以下一行:
IMAGE_INSTALL_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添加到镜像中的指导或提示。
IMAGE_INSTALL_append +=
。但是,在闪存镜像之前,您可以检查rootfs
构建中tmp/work/phyboard-mira-imx6-9/phytec-headless-image/*/rootfs
中是否存在tmux
。这样,您可以确保在闪存之前将其安装到目标 RFS 中。 - undefined