【Linux】psplash制作Linux开机动画

1. 下载psplash软件

  • 下载psplash源码到ubuntu中:
下载地址:https://git.yoctoproject.org/psplash/commit/
  • 安装依赖环境
 sudo apt-get install libgdk-pixbuf2.0-dev

2. 准备图片

  • 开机动画静态图片:psplash-poky.png
  • 开机动画进度条图片:psplash-bar.png

3. 图片转换成.h文件

./make-image-header.sh psplash-poky.png POKY		
./make-image-header.sh psplash-bar.png BAR

4. 配置交叉编译环境

  • 加载交叉编译环境
#举例,飞凌的板子
. /opt/fsl-imx-x11/4.1.15-2.0.0/environment-setup-cortexa7hf-neon-poky-linux-gnueabi	

#这一步如果报错看下一条
./configure --host=arm-linux	
  • 报错处理
#报错的话,命令行运行这一条(参考https://www.cnblogs.com/Rainingday/p/12616235.html)
autoreconf -vif

5. 制作autogen.sh脚本

  • 新建autogen.sh输入以下内容:
#!/bin/bash
aclocal
autoheader
automake --add-missing
autoconf
  • 添加可执行权限
chmod +x autogen.sh
  • 运行
./autogen.sh

6. 编译

# 生成psplash与psplash-write
make	

7. 将编译好的文件拷贝到板子中

  • psplashpsplash-write拷贝到文件系统的根文件系统/usr/bin/目录下.

8. 参考

https://baijiahao.baidu.com/s?id=1684503238170422110&wfr=spider&for=pc
https://www.cnblogs.com/Rainingday/p/12616235.html

你可能感兴趣的:(Linux,linux,运维,服务器)