我试着用fbi为Raspbian的拉伸提供一个闪屏。根据一些教程,我在这里发现了我的情况:
/etc/systemd/system/spash幕.system
[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/cmdline.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=0P
/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)可以按预期显示图像。
在引导消息中,我找不到任何错误。有什么想法吗?
发布于 2017-10-08 07:26:02
我终于成功了!下面是我所做的工作(本质上是从https://yingtongli.me/blog/2016/12/21/splash.html中复制的,其中有一些小的更改使它对我起作用)。
apt install fbi/etc/systemd/system/splashscreen.service:
单元Description=Splash screen DefaultDependencies=no After=local-fs.target Service =/usr/bin/fbi-noverbose -a /opt/spash.png StandardInput=tty StandardOutput=tty StandardOutput=tty 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我仍在努力弄清楚如何摆脱引导文本的其余部分,但这是朝着正确方向迈出的一步。
https://stackoverflow.com/questions/46143476
复制相似问题