我正在尝试使用fbi为Raspbian Stretch提供启动画面。基于一些教程,我在这里找到了我的情况:
/etc/system的/system/splash screen.service
[Unit]
Description=Splash screen
DefaultDependencies=no
After=local-fs.target
[Service]
ExecStart=/usr/bin/fbi -T 1 -d /dev/fb0 --noverbose /opt/logo.png
[Install]
WantedBy=sysinit.target
启用(检查sysinit.target.wants下的符号链接)。
/boot/充满动力呢.txt
dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=ee397c53-02 rootfstype=ext4 elevator=deadline rootwait quiet logo.nologo loglevel=1 fsck.mode=skip noswap ro consoleblank=0
p
/boot/config.txt
hdmi_drive=2
dtparam=i2c_arm=on
dtparam=spi=on
dtparam=audio=on
dtparam=i2c1=on
dtoverlay=i2c-rtc,ds1307
disable_splash=1
从提示符执行完全相同的命令(fbi -T 1 -d /dev/fb0 --noverbose /opt/logo.png
)会导致按预期显示图像。
在启动消息中,我找不到任何错误。任何想法?
我终于开始工作了!这就是我所做的(基本上是从https://yingtongli.me/blog/2016/12/21/splash.html复制的,有一些小改动让它对我起作用)。
apt install fbi
/etc/systemd/system/splashscreen.service
:
[Unit]
Description=Splash screen
DefaultDependencies=no
After=local-fs.target
[Service]
ExecStart=/usr/bin/fbi --noverbose -a /opt/splash.png
StandardInput=tty
StandardOutput=tty
[Install]
WantedBy=sysinit.target
我做的唯一不同于上面链接的文章是从-d
命令中删除/usr/bin/fbi
标志(该命令最初是/usr/bin/fbi -d /dev/fb0 --noverbose -a /opt/splash.png
)。我猜fb0
是错误的设备,只是意味着fbi
将使用当前的显示设备并使其正确。/opt/splash.png
。systemctl enable splashscreen
我还在试图弄清楚如何摆脱其余的启动文本,但这是朝着正确方向迈出的一步。