yocto启动画面未出现 [英] yocto splash screen not appearing

查看:117
本文介绍了yocto启动画面未出现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作yocto映像,该映像是使用syslinux从usb棒启动的.我想隐藏很多启动输出.通过阅读 yocto文档似乎添加启动屏幕应将其隐藏.我已经将splash添加到了IMAGE_FEATURES,但是没有出现启动屏幕,并且syslinux引导输出仍然可见.知道我做错了什么吗?也欢迎提供其他有关如何隐藏该引导输出的建议.

I'm making a yocto image which I'm booting from a usb stick using syslinux. There's a lot of boot output that I'd like to hide. From reading the yocto docs it looks like adding a splash screen should hide this. I have added splash to the IMAGE_FEATURES, but the splash screen doesn't appear, and the syslinux boot output is still visible. Any idea what I may be doing wrong? Other suggestions on how to hide that boot output also welcome.

推荐答案

要将初始屏幕添加到图像中,请在您的local.conf中添加

To add splash screen into the image, in your local.conf, add

IMAGE_INSTALL_append = " psplash"

psplash配方位于/poky/meta/recipes-core/psplash中.

The psplash recipe is in /poky/meta/recipes-core/psplash.

另一个选择是创建core-image-full-cmdline,其中将带有psplash.

Another option is to create core-image-full-cmdline which will have psplash in it.

编辑:如果要修改初始屏幕,请git clone git://git.yoctoproject.org/psplash

Edit: If you want to modify the psplash screen, git clone git://git.yoctoproject.org/psplash

以相同的屏幕尺寸显示您的.png图像

have a .png image of yours with the same screen dimension

转到psplash目录并找到make-image-header.sh

go to the psplash directory and find make-image-header.sh

$./make-image-heaer.sh <your-image>.png POKY_IMG

请注意,我使用POKY_IMG是因为我想替换poky/meta/recipes-core/psplash/files/psplash-poky-img.h

Note that I used POKY_IMG is because I want to replace the newly created psplash files in poky/meta/recipes-core/psplash/files/psplash-poky-img.h

poky/meta-yocto/recipes-core/psplash中还有另一个闪屏.这是psplash_git.bbappend,它将覆盖/poky/meta/recipes-core/psplash中的一个.

There is also another psplash in poky/meta-yocto/recipes-core/psplash. This one is psplash_git.bbappend which will override the one in /poky/meta/recipes-core/psplash.

psplash_git.bbappend中,将my-splash-img.h添加到文件目录后,可以添加SPLASH_IMAGES = "file://my-splash-img.h;outsuffic=default"来选择初始图像.

In psplash_git.bbappend, after you have added your my-splash-img.h to the file directory, you could add SPLASH_IMAGES = "file://my-splash-img.h;outsuffic=default" for it to choose your splash image.

要更改背景,条形等的颜色,您将需要转到${WORKDIR}/psplash/git/psplash-colors.h.颜色为十六进制.完成后,创建一个补丁文件以供下次编译使用.

To change color of the background, bar, etc. you will need to go to ${WORKDIR}/psplash/git/psplash-colors.h. The color is in hex. After you have done, create a patch file to use it for next time compile.

这篇关于yocto启动画面未出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆